Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why is this happening in zsh?
On Thu, 15 Mar 2012, Kyle Partridge wrote:
> So I alias these type of commands to use `noglob`.
> Does this solution make sense?
>
> Ex:
> alias find="noglob find"
This depends on what you really want to do and whether you alias
such command for a spcific case (good) or generally (bad).
Personally I prefer zsh's 'calling a missing * expansion an error',
because I normally tell the shell exactly what to do:
- eighter I write a simple * and 'globbing nothing' then IS an error
- or I use quoting, so I KNOW that the program called, will get the '*'
On the command line I mostly quote stars like: find ... -name \*foo\*
By doing this I keep the possibillity to do both in one comand,
like:
find some/tree/*/branches -name leaf\* -print
And the errormessage of the zsh keeps me from accidentally working
with real '*' in filenames or empty parameters, which can have VERY
strange results in daily work as a sysadmin :-)
Stucki
--
Christoph von Stuckrad * * |nickname |Mail <stucki@xxxxxxxxxxxxxxx> \
Freie Universitaet Berlin |/_*|'stucki' |Tel(Mo.,Mi.):+49 30 838-75 459|
Mathematik & Informatik EDV |\ *|if online| (Di,Do,Fr):+49 30 77 39 6600|
Takustr. 9 / 14195 Berlin * * |on IRCnet|Fax(home): +49 30 77 39 6601/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author