unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: dired mode subshell doesn't handle strange names properly
Date: Fri, 03 May 2002 17:49:49 -0400	[thread overview]
Message-ID: <m3offwewa4.fsf@multivac.cwru.edu> (raw)
In-Reply-To: 200205032119.g43LJB423209@vortex-dev6.red.iplanet.com

toby.h.ferguson@sun.com (Toby H Ferguson) wrote:
> I created a directory called '-Djava' - I listed it using dired, but
> when I went to do a 'dired-do-shell-command' on it (the command being
> rm -rf), the command failed with the following output:
>
> rm: illegal option -- D
> rm: illegal option -- j
> rm: illegal option -- a
> rm: illegal option -- v
> rm: illegal option -- a
> usage: rm [-fiRr] file ...
>
> This can be fixed by ensuring that the arguments are followed by '--'
> - but I don't know if this is general.

It would be better to add "./" to the beginning of the filename, just
in case rm doesn't understand "--".

> In general the filename strings out to be marked as not to be
> interpreted at the underlying shell level.

The shell isn't involved in this problem.  It's all in rm's argument
parsing.


paul

      reply	other threads:[~2002-05-03 21:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-03 21:19 dired mode subshell doesn't handle strange names properly Toby H Ferguson
2002-05-03 21:49 ` Paul Jarc [this message]

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=m3offwewa4.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.edu \
    /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).