Subject: bin/21486: ksh doesn't properly complete files with # in them
To: None <gnats-bugs@gnats.netbsd.org>
From: Soren Jacobsen <soren@bob.blef.org>
List: netbsd-bugs
Date: 05/06/2003 15:47:46
>Number:         21486
>Category:       bin
>Synopsis:       ksh doesn't properly complete files with # in them
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 06 22:48:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Soren Jacobsen
>Release:        NetBSD 1.6.1
>Organization:
>Environment:
System: NetBSD bob 1.6.1 NetBSD 1.6.1 (BOB) #0: Sat Apr 26 22:41:24 PDT 2003 soren@bob:/media/src-1.6.1/sys/arch/i386/compile/BOB i386
Architecture: i386
Machine: i386
>Description:
When completing a file name, ksh fails to backquote #.
>How-To-Repeat:
Try to complete a file such as #netbsd.log, watch it complete as
#netbsd.log instead of \#netbsd.log.
>Fix:
Despite the above environment/release, this is against current:

Index: edit.c
===================================================================
RCS file: /cvsroot/src/bin/ksh/edit.c,v
retrieving revision 1.9
diff -r1.9 edit.c
1110c1110
< 		if (strchr("\\$(){}*&;|<>\"'`", s[add]) || strchr(ifs, s[add])) {
---
> 		if (strchr("\\$(){}*&;|<>\"'`#", s[add]) || strchr(ifs, s[add])) {
>Release-Note:
>Audit-Trail:
>Unformatted: