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