System V questions

Wm E Davidsen Jr davidsen at crdos1.crd.ge.COM
Wed Jan 3 01:49:34 AEST 1990


In article <21916 at adm.BRL.MIL> herman%nrl.decnet at ccf3.nrl.navy.mil (NRL::HERMAN) writes:

  Answers here apply to Korn shell (ksh) only.

|  i) How can I get the prompt to show me the current directory.

  PS1='$PWD> '
       ^^^^ Working directory (must be in ', not ")
| 
|  ii) Is there something available in System V which is equivalent to the 
| 	'alias' command available in BSD UNIX.  That is, can one define 
| 	symbols in a way similar to the way #define defines symbols in C.

  ksh has alias, as well as shell functions
-- 
bill davidsen	(davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon



More information about the Comp.unix.questions mailing list