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

Re: How to set an option for a single command



> 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