home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!deshaw.com!christos
- From: christos@deshaw.com (Christos Zoulas)
- Subject: Re: Action of `echo */'
- Message-ID: <BxzqtF.r3@deshaw.com>
- Sender: usenet@deshaw.com
- Nntp-Posting-Host: prefect
- Organization: D. E. Shaw & Co.
- References: <1eg04jINN9go@sprocket.csv.warwick.ac.uk> <1992Nov19.163705.15795@eua.ericsson.se>
- Date: Fri, 20 Nov 1992 01:29:38 GMT
- Lines: 36
-
- In article <1992Nov19.163705.15795@eua.ericsson.se> per@erix.ericsson.se (Per Hedeland) writes:
- >In article <1eg04jINN9go@sprocket.csv.warwick.ac.uk>, cudcv@csv.warwick.ac.uk (Rob McMahon) writes:
- >|> SunOS 4.1.3, tcsh 6.02.00, bash 1.12.1.
- >...
- >|> Aagh! Say what ? I'm sure this used to work, in sh, csh, and tcsh.
- >|> Somewhere along the line it's all gone horribly wrong.
- >
- >It's a bug, er... fix introduced in SunOS 4.1.3. It's in the release
- >manual, section 6.6 "POSIX Bugs Fixed", "Kernel":
- >
- >1039505 Trailing / in pathname should be ignored.
- >
- >I actually thought it was an improvement, since now 'rm -r dir<tab>' in
- >tcsh didn't fail to remove the directory due to the appended '/', but I
- >have since come to see the error of my ways...
- >
- >I have no idea what POSIX says on the issue, but wouldn't treating
- >'directory/' as equivalent to 'directory' (rather than 'directory/.',
- >which is the pre-4.1.3 behaviour), while treating 'file/' as
- >nonexistent, make everybody happy?
- >
-
- The solution is to compile tcsh adding:
-
- #define NAMEI_BUG
-
- in config.h...
-
- I consider the POSIX behavior to be a bug, not a feature!
- I agree 100% with Per that trailing slashed should be ignored in directories,
- but not in files....
-
- Tcsh-6.03 which will be released *very* soon now will have this as the
- default for sunos-4.1.3 and SVR4.
-
- christos
-