Path: utzoo!attcan!uunet!lll-winken!ames!ucsd!rutgers!orstcs!jacobs.cs.orst.edu!ghe From: ghe@jacobs.cs.orst.edu (Another 481 student) Newsgroups: comp.unix.questions Subject: alias problem Keywords: csh, alias, cd, cwd Message-ID: <8295@orstcs.CS.ORST.EDU> Date: 17 Jan 89 05:31:15 GMT Sender: usenet@orstcs.CS.ORST.EDU Reply-To: ghe@jacobs.cs.orst.edu (Another 481 student) Organization: Oregon State University - CS - Corvallis Oregon Lines: 19 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@PHYSICS.ORST.EDU Department of Physics * ghe@jacobs.CS.ORST.EDU Oregon State University *