all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* *shell*: messed with PS1 and echo rm became rm
@ 2002-07-09  1:05 Dan Jacobson
  2002-07-09  7:45 ` Miles Bader
  2002-07-10  5:57 ` Dan Jacobson
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Jacobson @ 2002-07-09  1:05 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-10  5:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-09  1:05 *shell*: messed with PS1 and echo rm became rm Dan Jacobson
2002-07-09  7:45 ` Miles Bader
2002-07-10  5:57 ` Dan Jacobson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.