[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
*shell*: messed with PS1 and echo rm became rm
From: |
Dan Jacobson |
Subject: |
*shell*: messed with PS1 and echo rm became rm |
Date: |
09 Jul 2002 09:05:23 +0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Since you are interested in wasting your energies in debugging obscure
corners of emacs, here in *shell* i did:
07:06 ~# cd /etc/init.d/
07:09 init.d# ./fetchmail
Usage: /etc/init.d/fetchmail {start|stop|restart|force-reload|awaken|debug-run}
07:09 1 init.d# ./fetchmail debug-run
bash: debug-run: command not found *******
07:10 127 init.d# $PWD/fetchmail debug-run
/etc/init.d/fetchmail: Initiating debug run of system-wide fetchmail service...
the only problem occurred where I put the ******* and might have been
caused by the $?=1 popping up in my prompt.
Because my
PROMPT_COMMAND='
z=" $?"
z=${z# 0}
case $PWD in
$HOME) pwd=\~;;
*) pwd=${PWD##*/};;
esac'
PS1="$my_color_on\A\$z \$pwd\\$""$my_color_off "
Anyway, you've got more important things to fix, but i suppose i
better watch out now as "echo rm importaint_file" will become "rm
importaint_file".
--
http://jidanni.org/ Taiwan(04)25854780
- *shell*: messed with PS1 and echo rm became rm,
Dan Jacobson <=