[plug] switches for if, etc.

James Devenish devenish at guild.uwa.edu.au
Fri May 7 14:04:38 WST 2004


In message <BAY2-F14U67oQJDPjea00005f88 at hotmail.com>
on Fri, May 07, 2004 at 02:00:23PM +0800, John Knight wrote:
> Is there a good, comprehensive listing of all these switches which get's 

s/these switches which get's/the switches that get/
;-)

> used with if in bash? ie. -d, -z, etc?

Perhaps you are referring to a construct such as this:

    if [ -z blah ]; then

All this does is run the programme named [. Yes, there is a programme
named [. To find out the switches, use `man [` (or `man test`). Also,
you may find that tab-completion is available (it is in zsh, at least).





More information about the plug mailing list