Subject: pkg/25908: shells/bash2 doesn't understand glob characters on Interix
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: pkgsrc-bugs
Date: 06/13/2004 02:25:33
>Number:         25908
>Category:       pkg
>Synopsis:       shells/bash2 doesn't understand glob characters on Interix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 12 17:25:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hiramatsu Yoshifumi
>Release:        SFU 3.5
>Organization:
	
>Environment:
	
	
System: Interix nile 3.5 SP-8.0.1969.1 x86 AMD Athlon/Duron
Architecture: i386
Machine: i386
>Description:
bash2 doesn't interpret '*' and '?' as globbing characters on Interix.

bash-2.05b$ ls *
ls: *: No such file or directory
bash-2.05b$ ls ?
ls: ?: No such file or directory

>How-To-Repeat:
/usr/pkgsrc/shells/bash2
bmake install
/usr/pkg/bin/bash
ls *

>Fix:
workaround used in interop systems' tool warehouse.

diff -buNr bash2.orig/Makefile bash2/Makefile
--- bash2.orig/Makefile	Fri Jun 11 06:14:53 2004
+++ bash2/Makefile	Fri Jun 11 06:16:16 2004
@@ -30,6 +30,10 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+.if ${OPSYS} == "Interix"
+CFLAGS+=		-DUSE_POSIX_GLOB_LIBRARY
+.endif
+
 .if defined(BASH_STATIC)
 .  if !empty(BASH_STATIC:M[yY][eE][sS])
 CONFIGURE_ARGS+=	--enable-static-link

>Release-Note:
>Audit-Trail:
>Unformatted: