Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to set an option for a single command
- X-seq: zsh-users 412
- From: Richard Coleman <coleman@xxxxxxxxxxxxxxx>
- To: jarausch@xxxxxxxxxxxxxxxxxxx (Helmut Jarausch)
- Subject: Re: How to set an option for a single command
- Date: Thu, 19 Sep 1996 07:43:20 -0400
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: Your message of "Thu, 19 Sep 1996 10:40:56 +0200." <199609190840.KAA09238@xxxxxxxxxxxxxxxxxxx>
> please tell if there is a possibility to set an option like NULL_GLOB (-G)
> for single command only.
>
> I only came up to starting a subshell
>
> zsh -G -c "rm *.o *.a"
>
> Thanks for any hints,
> Helmut Jarausch.
Add the modifier (N) to end of glob pattern. Check
out zshexpn man page for the whole list of modifiers.
rm *.o(N) *.a(N)
rc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author