[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sub shell mit pipes
From: |
Paul Jarc |
Subject: |
Re: Sub shell mit pipes |
Date: |
Wed, 11 Aug 2004 11:36:35 -0400 |
User-agent: |
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
- Sub shell mit pipes, Morard Jean-Louis, 2004/08/11
- Re: Sub shell mit pipes,
Paul Jarc <=
- Re: Sub shell mit pipes, Enrique Perez-Terron, 2004/08/11
- Re: Sub shell mit pipes, Paul Jarc, 2004/08/11
- Re: Sub shell mit pipes, Chet Ramey, 2004/08/11
- Re: Sub shell mit pipes, Enrique Perez-Terron, 2004/08/11
- Re: Sub shell mit pipes, Chet Ramey, 2004/08/11
- Re: Sub shell mit pipes, Enrique Perez-Terron, 2004/08/11
- Re: Sub shell mit pipes, Paul Jarc, 2004/08/12
- Re: Sub shell mit pipes, Enrique Perez-Terron, 2004/08/12