home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / bash / bug / 500 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.2 KB  |  44 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!att.com!Dan_Jacobson
  3. From: Dan_Jacobson@att.com
  4. Subject: builtin test -w unaware of group permissions
  5. Message-ID: <1992Jul24Fr201034a.Dan_Jacobson@ATT.COM>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sat, 25 Jul 1992 00:10:00 GMT
  10. Approved: bug-bash@prep.ai.mit.edu
  11. Lines: 31
  12.  
  13. It seems Bash's builtin "test" command didn't know that I could write
  14. a file based on group permissions, whereas all the other "test"
  15. commands I could find worked OK.
  16.  
  17. SunOS Release 4.1.2  BASH_VERSION=1.12.1
  18. bash$ ls -lg music.cal
  19. -rw-rw-r--  1 pwyc     rnd          4284 Jul 24 16:35 music.cal
  20. bash$ id
  21. uid=47941(danj1) gid=47941(danj1) groups=47941(danj1),34718(rnd)
  22. bash$ touch music.cal
  23. bash$ ls -lg music.cal
  24. -rw-rw-r--  1 pwyc     rnd          4284 Jul 24 18:54 music.cal
  25. bash$ test -w music.cal && echo writeable
  26. bash$ /bin/test -w music.cal && echo writeable
  27. writeable
  28. bash$ type test
  29. test is a shell builtin
  30. bash$ ksh
  31. $ type test
  32. test is a shell builtin
  33. $ test -w music.cal && echo ksh says writeable
  34. ksh says writeable
  35. $ sh
  36. $ test -w music.cal&& echo sh too
  37. sh too
  38. $ type test
  39. test is a shell builtin
  40. $ csh
  41. ihspa% if (-w music.cal) echo ooooo
  42. ooooo
  43.  
  44.