home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6515 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  2.4 KB

  1. Path: sparky!uunet!mcsun!uknet!daresbury!doc.ic.ac.uk!cc.ic.ac.uk!carrion.cc.ic.ac.uk!vulture
  2. From: vulture@carrion.cc.ic.ac.uk (Thomas Sippel - Dau)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: /bin/test bug?
  5. Message-ID: <1992Aug27.152832.6727@cc.ic.ac.uk>
  6. Date: 27 Aug 92 14:28:32 GMT
  7. References: <4360@equinox.unr.edu>
  8. Reply-To: cmaae47@cc.ic.ac.uk
  9. Organization: Imperial College of Science, Technology and Medicine
  10. Lines: 56
  11. Nntp-Posting-Host: cscgc
  12.  
  13. In article <4360@equinox.unr.edu>, jeffw@pyramid.unr.edu (Jeffrey M Wolff) writes:
  14.  -- I was trying to understand the /bin/test command and the behavior under
  15.  -- ultrix 4.2 is different than when used with sun or a/ux. 
  16. .....
  17.  --     test '-s' = '-s'
  18.  -- Ultrix returns 1 and Sun and A/UX both return 0 which is what I expected.
  19.  
  20. on our machines here I got:
  21. peridot$                             # a DECstation, I use the Korn shell
  22. peridot$ test -s = -s && print hurray
  23. hurray
  24. peridot$ test -s = -t && print hurray
  25. peridot$ /bin/test -s = -s && print hurray
  26. peridot$ /bin/test -s = -t && print hurray
  27. peridot$  
  28. peridot$ csh
  29. peridot% test -s = -s && echo yaboo  
  30. peridot% test -s = -t && echo yaboo
  31. peridot% /bin/test -s = -s && echo yaboo
  32. peridot% /bin/test -s = -t && echo yaboo
  33. peridot% test x-s = x-t && echo yaboo
  34. peridot% test x-s = x-s && echo yaboo
  35. yaboo
  36. peridot% uname -a
  37. ULTRIX gecdd 4.2 0 RISC
  38. peridot% exit
  39. peridot% peridot$  
  40. peridot$ 
  41.  
  42. carrion$                             # a personal Iris, I use the Korn shell
  43. carrion$ test -s = -s && print hurray
  44. hurray
  45. carrion$ test -s = -t && print hurray
  46. carrion$ /bin/test -s = -s && print hurray
  47. carrion$ /bin/test -s = -t && print hurray
  48. carrion$ csh
  49. carrion 1% test -s = -s && echo yaboo
  50. carrion 2% test -s = -t && echo yaboo
  51. carrion 3% /bin/test -s = -s && echo yaboo
  52. carrion 4% /bin/test -s = -t && echo yaboo
  53. carrion 5% exit
  54. carrion 6% carrion$       
  55. carrion$ uname -a
  56. IRIX carrion 4.0.1 11150233 IP6
  57. carrion$
  58.  
  59. Behaviour seems to be the same, not that I particularly like it, but there
  60. you go. Or should I say: "Korn shell wins again ?"
  61.  
  62.                                      Thomas
  63. -- 
  64. *** This is the operative statement, all previous statements are inoperative.
  65. *   email: cmaae47 @ cc.ic.ac.uk (Thomas Sippel - Dau) (uk.ac.ic.cc on Janet)
  66. *   voice: +44 71 589 5111 x4937 or 4934 (day), or +44 71 823 9497 (fax)
  67. *   snail: Imperial College of Science, Technology and Medicine
  68. *   The Center for Computing Services, Kensington SW7 2BX, Great Britain
  69.