Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Something like noglob to inhibit brace expansion?
- X-seq: zsh-users 6648
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Something like noglob to inhibit brace expansion?
- Date: Sun, 5 Oct 2003 16:21:21 +0000
- In-reply-to: <m3wubkmv0y.fsf@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <m3wubkmv0y.fsf@xxxxxxxxxx>
On Oct 4, 7:40pm, Lloyd Zusman wrote:
}
} % pr {a,b,c,*}
} a b c *
}
} What I'd like to see is {a,b,c,*}
}
} Does anyone know of any tricks to get this functionality within
} an alias?
It's a little ugly, but:
alias pr='setopt noglob ignorebraces && _pr'
_pr() { print $*; setopt glob braceexpand }
You can get a little fancier if you want to preserve the exit status of
'print', but you get the idea.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author