[2722] in Athena Bugs
Unglobbing bug (probably in all versions of /bin/csh)
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Mon Aug 7 15:28:46 1989
Date: Mon, 7 Aug 89 15:28:16 -0400
From: Theodore Ts'o <tytso@ATHENA.MIT.EDU>
To: testers@ATHENA.MIT.EDU, bugs@ATHENA.MIT.EDU
Reply-To: tytso@ATHENA.MIT.EDU
The shell's unglobbing mechanism (what translates /mit/user to ~)
doesn't quite to do the right thing all the time....
Repeat by: (replace tytso with your username)
<tytso@thor> {/mit/tytso-afs}
21% mkdir /mit/tytsofoo
<tytso@thor> {/mit/tytso-afs}
22% cd /mit/tytsofoo
<tytso@thor> {/mit/tytsofoo}
23% dirs
~foo
<tytso@thor> {/mit/tytsofoo}
24% set cdpath = (/mit)
<tytso@thor> {/mit/tytsofoo}
25% cd tytsofoo
~foo
This is probably indigenous to the Berkeley csh, so we may want to
let Berkeley know about it, after confirming it on a reference BSD 4.3
csh. The fix is an obvious two line addition to dtildeptr(), in
sh.dir.c
- Ted