System V questions

Chet Ramey chet at cwns1.CWRU.EDU
Wed Jan 3 03:28:08 AEST 1990


In article <21917 at adm.BRL.MIL> mwood!attcc!hpn at att.att.com writes:
>About getting the prompt to show your current working directory,  try this:
>
>PS1='${PWD##}'

Try getting the Korn Shell or bash (the Gnu Bourne-Again SHell) before 
expecting this to work.

>About the alias, try this:
>alias dir=ls -l

Again, get bash first.  They try
alias dir="ls -l"

The quotes are required for any alias containing white space.  This is what
bash does with the unquoted form:

cwns1$ alias dir=ls -l
alias: -l not found

>Or try 'man alias'

Misleading.  On my systems, `man alias' is equivalent to `man csh'.

Chet Ramey




-- 
Chet Ramey
Network Services Group				"Help! Help! I'm being
Case Western Reserve University			 repressed!"
chet at ins.CWRU.Edu			



More information about the Comp.unix.questions mailing list