Path: utzoo!attcan!uunet!husc6!uwvax!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.bugs.4bsd Subject: Re: Bug in csh Message-ID: <14715@mimsy.UUCP> Date: 24 Nov 88 14:08:40 GMT References: <428@kl-cs.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 46 In article <428@kl-cs.UUCP> jonathan@cs.keele.ac.uk (Jonathan Knight) writes: >Bug: The csh dirs command is documented as producing an > abbreviated output form using ~ unless the -l option > is used. However if `dirs` is used the full path name > is returned without the -l option. This is not the case. >Example: > % dirs > ~ > % echo `dirs` > /fs/cs/jonathan > > echo `dirs` should have produced ~. But % echo ~ would produce /fs/cs/jonathan and not ~ The text returned from backquote expansion is re-globbed unless quoted (or `noglob' is set). After % set noglob the commands % echo ~ % echo `dirs` % unset noglob % echo "`dirs`" all produce ~ -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris