🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

csh $x:r bug

#1331
From: Michael Golan
Date: Tue, 31 Jan 1989 18:25
24 lines
935 bytes
Hi there ! This is my first posting to this group so I am not sure I am doing
it right. 

/bin/csh bug:
the following code (in an interactive cshell) tells it all:

%set x=a.b
%setenv Y c.d
%echo ${x:r}
result -- "a" as it should be

%echo ${Y:r}
resul  -- Varialbe syntax.   ??!!

% 
-- now the funny part: when you hit return again, you get:

c.d: command not found

i.e. csh put the $Y into the internal input buffer !

Michael Golan
mg@princeton.edu
Technical Details
Message-ID: <14544@princeton.Princeton.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!njin!princeton!notecnirp!mg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!njin!princeton!notecnirp!mg
From: mg@notecnirp.Princeton.EDU (Michael Golan)
Newsgroups: comp.bugs.4bsd
Subject: csh $x:r bug
Message-ID: <14544@princeton.Princeton.EDU>
Date: 31 Jan 89 18:25:32 GMT
Sender: news@princeton.Princeton.EDU
Reply-To: mg@princeton.Princeton.EDU (Michael Golan)
Distribution: usa
Organization: Dept. of Computer Science, Princeton University
Lines: 24