Possible /bin/sh Bug?
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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 5 之 5 篇):