home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!daresbury!doc.ic.ac.uk!cc.ic.ac.uk!carrion.cc.ic.ac.uk!vulture
- From: vulture@carrion.cc.ic.ac.uk (Thomas Sippel - Dau)
- Newsgroups: comp.unix.ultrix
- Subject: Re: /bin/test bug?
- Message-ID: <1992Aug27.152832.6727@cc.ic.ac.uk>
- Date: 27 Aug 92 14:28:32 GMT
- References: <4360@equinox.unr.edu>
- Reply-To: cmaae47@cc.ic.ac.uk
- Organization: Imperial College of Science, Technology and Medicine
- Lines: 56
- Nntp-Posting-Host: cscgc
-
- In article <4360@equinox.unr.edu>, jeffw@pyramid.unr.edu (Jeffrey M Wolff) writes:
- -- I was trying to understand the /bin/test command and the behavior under
- -- ultrix 4.2 is different than when used with sun or a/ux.
- .....
- -- test '-s' = '-s'
- -- Ultrix returns 1 and Sun and A/UX both return 0 which is what I expected.
-
- on our machines here I got:
- peridot$ # a DECstation, I use the Korn shell
- peridot$ test -s = -s && print hurray
- hurray
- peridot$ test -s = -t && print hurray
- peridot$ /bin/test -s = -s && print hurray
- peridot$ /bin/test -s = -t && print hurray
- peridot$
- peridot$ csh
- peridot% test -s = -s && echo yaboo
- peridot% test -s = -t && echo yaboo
- peridot% /bin/test -s = -s && echo yaboo
- peridot% /bin/test -s = -t && echo yaboo
- peridot% test x-s = x-t && echo yaboo
- peridot% test x-s = x-s && echo yaboo
- yaboo
- peridot% uname -a
- ULTRIX gecdd 4.2 0 RISC
- peridot% exit
- peridot% peridot$
- peridot$
-
- carrion$ # a personal Iris, I use the Korn shell
- carrion$ test -s = -s && print hurray
- hurray
- carrion$ test -s = -t && print hurray
- carrion$ /bin/test -s = -s && print hurray
- carrion$ /bin/test -s = -t && print hurray
- carrion$ csh
- carrion 1% test -s = -s && echo yaboo
- carrion 2% test -s = -t && echo yaboo
- carrion 3% /bin/test -s = -s && echo yaboo
- carrion 4% /bin/test -s = -t && echo yaboo
- carrion 5% exit
- carrion 6% carrion$
- carrion$ uname -a
- IRIX carrion 4.0.1 11150233 IP6
- carrion$
-
- Behaviour seems to be the same, not that I particularly like it, but there
- you go. Or should I say: "Korn shell wins again ?"
-
- Thomas
- --
- *** This is the operative statement, all previous statements are inoperative.
- * email: cmaae47 @ cc.ic.ac.uk (Thomas Sippel - Dau) (uk.ac.ic.cc on Janet)
- * voice: +44 71 589 5111 x4937 or 4934 (day), or +44 71 823 9497 (fax)
- * snail: Imperial College of Science, Technology and Medicine
- * The Center for Computing Services, Kensington SW7 2BX, Great Britain
-