Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: detect pipe
On 2021-01-28 11:08:58 +0100, Vincent Lefevre wrote:
> On 2021-01-27 20:57:36 -0800, Ray Andrews wrote:
> > test1 ()
> > {
> > if [[ -p /dev/fd/0 ]]; then
>
> The semicolon after ]] is invalid. I get an error
>
> zsh: parse error near `then'
Actually the issue is nbsp characters in the posted code!
I can't reproduce the issue. Ray, is this due to the alias or to
the noglob? i.e. what do you get with the following?
echo "Now is the time for all good men" | noglob test1 'the time'
I was wondering whether the noglob could introduce a small timing
difference where the LHS command would terminate earlier.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author