[net.bugs] killer file

p500vax:pat (04/01/83)

The following commands mysteriously cause the shell to hang when "source"d
by the 4.1a BSD csh.  

alias cd		'cd \!^;set prompt=#$cwd:t"-> "'
alias pushd		'pushd \!^;set prompt=#$cwd:t"-> "'
alias popd		'popd;set prompt=#$cwd:t"-> "'
alias pd		pushd
alias ppd		popd
cd .

poo (04/07/83)

I tried sourcing the csh script on our 4.1 system, and could not get
the csh to hang.  The effect I noticed was not a hanging shell, but rather
a shell with prompt set to ''.  The '#' gets interpreted as a comment
sign, as the single quotes are stripped off in installing the alias.
You probably want to escape the '#' by prefixing it with a '\'.
Also, you might want to use !* rather than !^, since 'cd' with no arguments
(i.e., cd $HOME) will probably give you a 'bad ! arg selector' error, or
something like that.
			-- princeton!poo (Ethan Jacobson)