home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4795 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.7 KB  |  49 lines

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