GNU bug report logs - #23737
wrong rm -i prompt

Previous Next

Package: coreutils;

Reported by: "Lemke, Michael ST/HZA-ZIC2" <lemkemch <at> schaeffler.com>

Date: Thu, 9 Jun 2016 18:46:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23737 in the body.
You can then email your comments to 23737 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#23737; Package coreutils. (Thu, 09 Jun 2016 18:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Lemke, Michael ST/HZA-ZIC2" <lemkemch <at> schaeffler.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 09 Jun 2016 18:46:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Lemke, Michael  ST/HZA-ZIC2" <lemkemch <at> schaeffler.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: wrong rm -i prompt
Date: Thu, 9 Jun 2016 17:11:03 +0000
With coreutils 8.25 on Cygwin I get this;

P01104393> rm -i a\    b
rm: remove regular empty file 'a'$'\t''b'?

What is this?  The filename is 'a	b' and not the nonsense rm outputs.
There is a tab character between a and b.


P01104393> rm --version
rm (GNU coreutils) 8.25
Packaged by Cygwin (8.25-3)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, Richard M. Stallman,
and Jim Meyering.






Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Thu, 09 Jun 2016 19:16:02 GMT) Full text and rfc822 format available.

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Thu, 09 Jun 2016 19:16:02 GMT) Full text and rfc822 format available.

Notification sent to "Lemke, Michael ST/HZA-ZIC2" <lemkemch <at> schaeffler.com>:
bug acknowledged by developer. (Thu, 09 Jun 2016 19:16:03 GMT) Full text and rfc822 format available.

Message #12 received at 23737-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: "Lemke, Michael ST/HZA-ZIC2" <lemkemch <at> schaeffler.com>,
 23737-done <at> debbugs.gnu.org
Subject: Re: bug#23737: wrong rm -i prompt
Date: Thu, 9 Jun 2016 13:15:24 -0600
[Message part 1 (text/plain, inline)]
tag 23737 notabug
thanks

On 06/09/2016 11:11 AM, Lemke, Michael  ST/HZA-ZIC2 wrote:
> With coreutils 8.25 on Cygwin I get this;
> 
> P01104393> rm -i a\    b
> rm: remove regular empty file 'a'$'\t''b'?
> 
> What is this?  The filename is 'a	b' and not the nonsense rm outputs.
> There is a tab character between a and b.

Yes, and the string 'a'$'\t''b' is one way (of many) to write that
literal string escaped in such a way that you can copy and paste it back
into the shell to refer to the same file (assuming you have a shell new
enough to support $'' quoting).

This was an intentional behavior change in 8.25, hinted at in the NEWS file:

  ls now quotes file names unambiguously and appropriate for use in a shell,
  when outputting to a terminal.
...
  All utilities now quote user supplied arguments in error strings,
  which avoids confusing error messages in the presence of '\r' chars etc.


although there has been discussion on this list about tweaking the
heuristics to possibly get nicer looking quoting while still being
unambiguous.

If you don't like the default, you can set QUOTING_STYLE in your
environment to go with a different quoting style.

> 
> P01104393> rm --version
> rm (GNU coreutils) 8.25
> Packaged by Cygwin (8.25-3)

And since you are using Cygwin, you should also be reading the cygwin
release announcements prior to blindly upgrading, where it was
explicitly mentioned that this upstream behavior change was intentional
and not a bug:
https://cygwin.com/ml/cygwin-announce/2016-04/msg00024.html

As such, I'm closing this in the coreutils bug database.

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

[signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 08 Jul 2016 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.