🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1265

Re: Bug in csh

#1265
From: Chris Torek
Date: Thu, 24 Nov 1988 14:08
46 lines
1173 bytes
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
Technical Details
Message-ID: <14715@mimsy.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!uwvax!tank!mimsy!chris
References: <428@kl-cs.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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