Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)
Morard Jean-Louis <jean-louis.morard@rtc.ch> wrote:
> #!/bin/bash
>
> ALL=""
> cat /tmp/text | while read LINE
> do
> ALL="$LINE $ALL"
> echo $ALL
> done
> echo "ALL = $ALL"
This is covered in the bash FAQ, entry E4.
> But it causes problems with portability from a standard ksh script
> on solaris.
ksh seems to be the odd one out - /bin/sh on Solaris, NetBSD, FreeBSD,
and OpenBSD all behave the same as bash.
> Is there any environment variable to set so that it works correctly?
No.
paul