Help! Csh is eating my brain....
    tweten at AMES-NAS.ARPA 
    tweten at AMES-NAS.ARPA
       
    Fri Oct 25 06:59:43 AEST 1985
    
    
  
From: pdg at ihdev.UUCP (P. D. Guthrie)
	>		alias readandset 'echo -n \!:1 ; set \!:2 = $< ' 
	Why doesn't ksh have something like  this?  I hate having to use
	fc and mess around with its output - and that's soooo inefficient!
I'm not a ksher, so I can't answer directly, but System V.2 sh has just the
thing, shell functions:
	readandset () { echo "$1\c"; read $2; }
To my eye, at least, it even looks better!
    
    
More information about the Comp.unix
mailing list