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

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

[debbugs-tracker] bug#18537: closed (Problem if folder name includes jus


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#18537: closed (Problem if folder name includes just '-')
Date: Tue, 23 Sep 2014 17:55:03 +0000

Your message dated Tue, 23 Sep 2014 11:54:51 -0600
with message-id <address@hidden>
and subject line Re: bug#18537: Problem if folder name includes just '-'
has caused the debbugs.gnu.org bug report #18537,
regarding Problem if folder name includes just '-'
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
18537: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18537
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Problem if folder name includes just '-' Date: Tue, 23 Sep 2014 12:49:12 +0200 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1
Hello,

may I just not find the solution, but I can not solve the following
problem, so I guess there is no solution jet.

I tried to move a folder resp. files in a folder by the mv command.

Example: mv ------------------------ NewName

The Problem is mv responses 'unknown option' for the folder name. Also
mv ------------------------/* NewName
mv \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- NewName
mv \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-/* NewName
does not work.

In meantime I solved the problem by changing the source folder name. But
this is a (very specific) problem.

Best regards
Benedikt



--- End Message ---
--- Begin Message --- Subject: Re: bug#18537: Problem if folder name includes just '-' Date: Tue, 23 Sep 2014 11:54:51 -0600 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0
tag 18537 notabug
thanks

On 09/23/2014 04:49 AM, address@hidden wrote:
> Hello,
> 
> may I just not find the solution, but I can not solve the following
> problem, so I guess there is no solution jet.
> 
> I tried to move a folder resp. files in a folder by the mv command.
> 
> Example: mv ------------------------ NewName

POSIX requires, and most applications support, the use of '--' to mark
the end of options, forcing the next argument beginning with '-' to be
treated as a literal name rather than an option:

mv -- ------------------ NewName

Also, you can ALWAYS turn a relative pathname into one anchored by a
substring that does not begin with '-':

mv ./------------------ NewName.

This is a FAQ:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#How-do-I-remove-files-that-start-with-a-dash_003f

Therefore, I'm closing this as not a bug, although you may feel free to
ask further questions.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

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