[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Funny Bash behavior

From: Chet Ramey
Subject: Re: Funny Bash behavior
Date: Wed, 17 Mar 2004 14:47:39 -0500

> I've cc'd the bug-autoconf list as well as the bug-bash list - this
> isn't precisely an Autoconf question, but I thought the Autoconf folks
> might also have the experience to answer my question:
> Running Linux 2.4.20 (actually 2.4.20-28 from RedHat) and bash 2.05b,
> the following sort of setup:
> touch script
> chmod a+x script
> cat >script <<EOF
> #! /bin/sh
> echo "example text"
> echo ...
> echo "some other text"
> echo "some other text"
> echo "some other text"
> echo "some other text"
> echo "some other text"
> cat >/dev/null
> ./script </dev/null
> Causes Bash to report about half the time an error that the parser
> reached an early EOF while looking for a closing quote and sometimes
> errors like "bash: ho: command not found".  If I put a "sleep 1" command
> in between the cat and the ./script, I no longer see failures but this
> sounds like I am just drawing out the race condition.

This sounds vaguely familiar; I think I fixed a bug with similar symptoms
after bash-2.05b was released.

It involved buffered input when reading a script and input redirection.


``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]