Bug in csh
Chris Torek
chris at mimsy.UUCP
Fri Nov 25 00:08:40 AEST 1988
In article <428 at kl-cs.UUCP> jonathan at 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 at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list