[Top][All Lists]

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

Re: "read < <(:); echo $?" prints 0 when job control is disabled (should

From: Chet Ramey
Subject: Re: "read < <(:); echo $?" prints 0 when job control is disabled (should be 1?)
Date: Mon, 11 Jan 2016 10:53:33 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 1/9/16 8:16 PM, Alastair Hughes wrote:
> When job control is enabled:
>   $ read < <(:); echo $?
>   1
> When job control is disabled:
>   $ read < <(:); echo $?
>   0

When you say "job control is disabled", do you mean the shell is compiled
without job control support?

I get an exit status of 1 with the current devel code when running a non-
interactive shell, or running an interactive shell after executing
`set +o monitor'.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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