Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Do file descriptors survive to subshell?



On 14 September 2016 at 19:53, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Under "Conditional Expressions":
>
> [...]
>
> -r FILE
>      true if FILE exists and is readable by current process.
>
> [...]
>
> In each of the above expressions, if FILE is of the form `/dev/fd/N',
> where N is an integer, then the test applied to the open file whose
> descriptor number is N, even if the underlying system does not support
> the /dev/fd directory.
>
> [...]
>

Should have just read about all the tests, thanks

Best regards,
Sebastian Gniazdowski



Messages sorted by: Reverse Date, Date, Thread, Author