Date: Tue, 05 Jun 2012 10:40:45 -0500 From: Tim Daneliuk <tundra@tundraware.com> To: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Possible /bin/sh Bug? Message-ID: <4FCE287D.3090501@tundraware.com>
next in thread | raw e-mail | index | archive | help
Given this script: #!/bin/sh foo="" while read line do foo="$foo -e" done echo $foo Say I respond 3 times, I'd expect to see: -e -e -e Instead, I get: -e -e Linux appears to do the right thing here, so this seems like it is a bug ... or am I missing something? -- ----------------------------------------------------------------------- Tim Daneliuk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FCE287D.3090501>