home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3549 < prev    next >
Encoding:
Text File  |  1992-08-20  |  2.5 KB  |  58 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!munnari.oz.au!metro!physiol.su.OZ.AU!john
  3. From: john@physiol.su.OZ.AU (John Mackin)
  4. Subject: Re: recursive mkdir
  5. Message-ID: <1992Aug20.052006.536@physiol.su.OZ.AU>
  6. Summary: Sequent busted the shell
  7. Reply-To: John Mackin <john@civil.su.oz.au>
  8. Organization: Department of Physiology, University of Sydney, Australia
  9. References: <glaze.093@glaze> <1992Aug18.033048.7574@physiol.su.OZ.AU> <1992Aug18.161744.27823@u.washington.edu>
  10. Date: Thu, 20 Aug 1992 05:20:06 GMT
  11. Lines: 45
  12.  
  13. In article <1992Aug18.161744.27823@u.washington.edu>,
  14.     donn@carson.u.washington.edu (Donn Cave) writes:
  15.  
  16. > The script you posted fails under DYNIX 3.1, on a Sequent Symmetry: [...]
  17. > This is basically a BSD 4.2 system, and the shell is so old that not only
  18. > does it lack shell functions, it also behaves a bit different with separator
  19. > characters.  My recollection is that it specifically exempts "/" from the
  20. > separator characters when expanding expressions, for some reason.
  21. >
  22. > | IFS="/$IFS"
  23.  
  24. Donn,
  25.  
  26. I won't come out and flatly say `I don't believe you,' but I don't
  27. believe you :).
  28.  
  29. I don't doubt that the script does fail on the system you mention in
  30. the way you say.  What I _don't_ believe is that any real, un-hacked
  31. Bourne sh ever worked like that.  You see, my native machines these
  32. days are DECstations running Ultrix.  Their /bin/sh is an extremely
  33. primitive version as well, also straight out of 4.2BSD.  It works fine
  34. with that sh.
  35.  
  36. Not being the kind of guy who is easily satisfied, I decided I would
  37. _really_ check this out.  You might be surprised to learn that there
  38. are still PDP-11s running Seventh Edition up and working on this
  39. campus.  Furthermore, I have an account on one (smiles shyly).  I
  40. just logged in there and checked this, and I can assure you that
  41. a V7 sh on a PDP-11 does NOT treat / in IFS specially.  [Boyd:
  42. it was psych44.]
  43.  
  44. This allegation caused me some concern, since I make it my business to know
  45. the history of the commands, especially crucial ones like sh, and know
  46. what is portable and what isn't.  I'm very pleased to have found in this
  47. case that I did have the history correctly in mind.  What I didn't know
  48. here is that Sequent broke the version of sh that they shipped with DYNIX
  49. 3.1.  I'm not too upset about that, having never logged in to a
  50. Sequent Symmetry.
  51.  
  52. Moral: the script _is_ properly portable.  Complaints to your vendor. :)
  53.  
  54. -- 
  55. John Mackin <john@civil.su.oz.au>
  56. `Flood pinging the broadcast address should only be done under very
  57.  controlled conditions.'  -Mike Muuss
  58.