From mboxrd@z Thu Jan 1 00:00:00 1970 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes From: "Bart Schaefer" Message-Id: <990126102304.ZM24322@candle.brasslantern.com> Date: Tue, 26 Jan 1999 10:23:04 -0800 In-Reply-To: <199901261547.QAA19696@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH: suggestion for new condition" (Jan 26, 4:47pm) References: <199901261547.QAA19696@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (4.0b.820 20aug96) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: suggestion for new condition MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailing-List: 5030 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