home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3487 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!ucbvax!mtxinu!sybase!hsc
  2. From: hsc@sybase.com (Howard Cohen)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: How do I get .login to pause ?
  5. Message-ID: <22412@sybase.sybase.com>
  6. Date: 14 Aug 92 00:38:06 GMT
  7. References: <1992Aug5.204941.29470@athena.cs.uga.edu> <1992Aug6.182435.6147@almserv.uucp> <1992Aug6.195643.4702@prl.dec.com> <Bss2xD.GKE@root.co.uk>
  8. Sender: news@Sybase.COM
  9. Organization: Sybase, Inc.
  10. Lines: 21
  11.  
  12. In article <Bss2xD.GKE@root.co.uk> gwc@root.co.uk (Geoff Clare) writes:
  13. >In <1992Aug6.195643.4702@prl.dec.com> boyd@prl.dec.com (Boyd Roberts) writes:
  14. >
  15. >>Sigh.  line(1) is not portable, neither is `echo -n'.  Use:
  16. >
  17. >>    echo "Press RETURN to continue..." | tr -d '\012'
  18. >>    read x
  19. >
  20. >If it comes to that, '\012' is not portable either.  Use:
  21.  
  22. What?!?  What Unix machines won't this work on?  I have a hard time believing
  23. that this isn't portable, but I do agree its ugly.
  24.  
  25. Still, I must admit, I like your other two suggestions (quoting a newline, and
  26. an autodetect for the echo argument. Both are clever.
  27.  
  28.     Howard
  29. -------------------------------------------------------------------------------
  30.   Howard "I wood if I could" Cohen
  31.   hsc@sybase.com  {pacbell,pyramid,sun,{uunet,ucbvax}!mtxinu}!sybase!hsc
  32.   Sybase, Inc.    6475 Christie Avenue, Emeryville, CA 94608, 510-596-3406 
  33.