alias problem

Another 481 student ghe at jacobs.cs.orst.edu
Tue Jan 17 15:31:15 AEST 1989


The following is part of my .cshrc file. But when I say 'cd dir_name', it
comes back saying 'cwd: command not found'. But if I say 'cwd dir_name', it
works fine. Can you see any problem here? I am on a BSD4.3 system. I have
these aliases work perfect on other BSD4.3 machine and SysV machine.
if ( $?prompt ) then
#
# aliases
#
	alias cwd 'chdir \!*; set DS[3]=$DS[2]; set DS[2]=$DS[1]; set DS[1]=`pwd`'
	alias bd 'cwd $DS[2]; setprompt; sd'
	alias bbd 'cwd $DS[3]; setprompt; sd'
	alias cd 'cwd \!*; setprompt; sd'
	alias setprompt 'set prompt = "jacobs"\["$DS[1]:t"\]%\ '
	alias sd 'echo $DS'
endif
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
USMAIL:   Guangliang He            *   INTERNET: ghe at PHYSICS.ORST.EDU
          Department of Physics    *             ghe at jacobs.CS.ORST.EDU
          Oregon State University  *



More information about the Comp.unix.questions mailing list