Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Do file descriptors survive to subshell?
- X-seq: zsh-users 21908
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Do file descriptors survive to subshell?
- Date: Wed, 14 Sep 2016 10:53:52 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=KxsvwtO9fO0hCDad8s1qkoHMyD4LcF737uYnSV3k0t0=; b=0XuCfPoolPaz+GtYh11AZrUtyuuwRlzR5HppVF3rQ2+j+72RkQ04CY45WNwUg1D68W 97GOnrkOc+9R5IZ/xMbEQ/izTYSBrQ20omEmqWiM7xBdX66gTkuOtE1QeguC3WPVH3S+ 0OjAPTfwcLHK5C/dEuu7u3EIF3Fy1YbPls31yAYV1ETwXVDoIDq1/PknhlVYFkT9onI6 bk64MROpu4BRpkBwQasYpLDt4vWDC7fhFyRlplU10zXPRDaS/kXXiqWCMJ5A3+kuPvKa DTz1bSs9KTM5e70kMhLzWIfnxUWbqyhRX5y3BbWfJQICUB/A6zODLPAmqhzbiPdUu17o DVlA==
- In-reply-to: <CAKc7PVBcj=uV-9iv_2QHLBmQLwZ8J7-VC+5FuO8qb4vEywTdHw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20160912160148eucas1p1c7f423821260c611c9b34fbe47bfcf86@eucas1p1.samsung.com> <CAKc7PVBMgptkuPOmrcevDwsOrcWzeqO03G8xfr-aGoDade2EQg@mail.gmail.com> <20160912171959.2516a91e@pwslap01u.europe.root.pri> <CAKc7PVCXG-4D4cJ_Hb849pawBtgx3mE3Rx71JSvjeY2gty8bAg@mail.gmail.com> <160912112451.ZM25357@torch.brasslantern.com> <CAKc7PVBcj=uV-9iv_2QHLBmQLwZ8J7-VC+5FuO8qb4vEywTdHw@mail.gmail.com>
On Sep 13, 10:54am, Sebastian Gniazdowski wrote:
}
} That's quite regretful, how to check if a read descriptor is valid?
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.
[...]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author