bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dired: no way to escape a * in the ! command


From: Dan Jacobson
Subject: dired: no way to escape a * in the ! command
Date: 30 May 2001 02:37:45 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

there is no way to escape a * in the ! command.
I wanted to do sed 's/ *//' to delete blanks without having the
filename come in for *

I tried \ \\ ..... no docs tell what to do

C'mon, certainly you must provide a way to pass an '*'.  I'm willing
to use any amount of quoting characters.

currently to produce:
this is a asterisk: * and this is the filename on this line: bla

one must use
! echo -e this is a asterisk: \\052 and this is the filename on this line:

By the way using the ! command
set -x;sed -e /a/d
one can see that no quoting is done, however once one throws in some
special characters, the entire word where special characters are used
gets quoted:
+ sed -e '/a\052r/!d' filename
I think emacs should only quote the special characters at most, not the whole
string.  By the way, this of course doesn't get * to sed.

Anyways to get a * thru to the sed command from dired's ! command,
must one use $(echo -e \052) etc. etc. or something? Anyways if emacs
doesn't plan on adding a way, it at least should document a workaround.

By the way, I used dired-x-submit-report to send report on to
`dired-x-maintainer' at address `dired-x-help-address'.  However,
smtp; 550 <dodd@roebling.poly.edu>... User unknown
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]