[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: return value ignored sometimes when returning from within a loop
From: |
Paul Jarc |
Subject: |
Re: return value ignored sometimes when returning from within a loop |
Date: |
Wed, 07 May 2003 14:21:25 -0400 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Edward Welbourne <eddy@opera.no> wrote:
>> This is covered in the bash FAQ, entry E4.
>
> and where is the bash FAQ ?
It's posted here regularly. If you want to find it on the web, you
can Google for "bash faq".
>From what I've heard, the GNU webmaster wasn't very helpful about
updating the official GNU page, at least the last time it was tried.
> It isn't mentioned in the man page, nor can I find it in the info
Chet could fix that.
> Having seen various other variants on the theme, I can now guess that
> what's happening is: use of I/O redirection causes while...do...done
> to happen in a subshell
Well, the pipe causes it. Redirections to/from files wouldn't have
the same symptom with bash, although they would with some other
shells.
paul