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

Re: Mint Technical Questions.........



>Joris.Welkenhuysen@uz.kuleuven.ac.be (Joris Welkenhuysen) writes:
>
>|> There is a bug in bash 1.14.2 that makes shell scripts block when you use
>long
>|> here-documents (you know : <<! ... !).  The problem is that a signal gets
>lost
>|> and the shell waits forever for the death of the process that takes the
>here-
>|> document as input. Because of the blocking fork, this is guaranteed to
>happen
>|> on MiNT, on a regular Unix box this is very rare because the parent shell
>|> normally has enough time to setup the signal intercept routine after the
>fork.
>
>Here-documents don't need any subprocesses, the text is just put in a
>temporary file, which is then used as standard input.  It works
>flawlessly for me.  Could you please give an example where bash fails?
>
If my memory serves me right, the problem occurs when you have variable
substitutions
in your here-document. Any way, I had the problem executing `configure'
scripts for the
GNU text-utils or some other GNU package. What I did to solve it was moving
one or two
`signal()' calls.

Joris