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

Re: PATCH: suggestion for new condition



On Jan 26,  4:47pm, Sven Wischnowsky wrote:
} Subject: Re: PATCH: suggestion for new condition
}
} The patch below implements the `(t)' flag. `${(t)param}' will expand
} to a string describing the type of parameter. When param is unset, it
} will expand to `-'

Why?  Why not have it expand to nothing?  In any case "-" is a bad choice,
because in certain contexts it could be misinterpreted as an option.

Otherwise I think ${(t)param} is a useful addition.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author