Subject: bin/22846: ksh does not complete names with square brackets properly
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jmmv@menta.net>
List: netbsd-bugs
Date: 09/18/2003 17:54:42
>Number: 22846
>Category: bin
>Synopsis: ksh does not complete names with square brackets properly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 18 15:55:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Julio M. Merino Vidal
>Release: NetBSD 1.6ZC
>Organization:
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/
>Environment:
System: NetBSD dawn.local 1.6ZC NetBSD 1.6ZC (DAWN) #2: Wed Sep 17 12:06:13 CEST 2003 jmmv@dawn.local:/home/NetBSD/obj/home/NetBSD/src/sys/arch/i386/compile/DAWN i386
Architecture: i386
Machine: i386
>Description:
ksh does not complete names with square brackets in them properly.
This only happens when two files in the same directory have "similar"
names, that is, they share a prefix which can be completed in two
different ways.
>How-To-Repeat:
$ touch a.[b].1
$ touch a.[b].2
$ ls aTAB
(see how it completes the name until a.[b]. and stops there).
$ ls a.\[b\]TAB
(this fails too).
$ rm a.\[b\].2
$ ls aTAB
(and see how it completes the name properly).
>Fix:
I tried adding [] to the list of characters to be escaped, and while
ksh will add the backslash, completion will fail.
>Release-Note:
>Audit-Trail:
>Unformatted: