bug-bash
[Top][All Lists]
Advanced

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

bash-3.0 bug in tab-completion


From: Tim Waugh
Subject: bash-3.0 bug in tab-completion
Date: Mon, 13 Sep 2004 13:13:17 +0100
User-agent: Mutt/1.4.1i

bash-3.0 patchlevel 13 on Fedora Core rawhide (bash-3.0-9):

$ mkdir /tmp/arena
$ cd /tmp/arena
$ touch $(echo -ne '\1\$')
$ rm ./[TAB]

results in:

$ rm ./^A^A\\\$
rm: cannot remove `./\001\001\\$': No such file or directory

This seems to be due to this code fragment in sh_backslash_quote():

  case CTLESC: case CTLNUL:               /* internal quoting characters */
    *r++ = CTLESC;                        /* could be '\\'? */
    *r++ = c;
    break;

Tim.
*/

Attachment: pgpbLZx64k1Ac.pgp
Description: PGP signature


reply via email to

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