From: Dan Jacobson <jidanni@dman.ddts.net>
Subject: *shell*: messed with PS1 and echo rm became rm
Date: 09 Jul 2002 09:05:23 +0800 [thread overview]
Message-ID: <87znx1iucs.fsf@jidanni.org> (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
next reply other threads:[~2002-07-09 1:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-09 1:05 Dan Jacobson [this message]
2002-07-09 7:45 ` *shell*: messed with PS1 and echo rm became rm Miles Bader
2002-07-10 5:57 ` Dan Jacobson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87znx1iucs.fsf@jidanni.org \
--to=jidanni@dman.ddts.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).