Subject: bin/30735: sh: cd: .//foo failed
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <lha@netbsd.org>
List: netbsd-bugs
Date: 07/12/2005 08:52:01
>Number:         30735
>Category:       bin
>Synopsis:       sh: cd: .//foo failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 12 08:52:01 +0000 2005
>Originator:     Love
>Release:        NetBSD 3.99.7
>Organization:
	
>Environment:
	
	
System: NetBSD nutcracker.it.su.se 3.99.7 NetBSD 3.99.7 (NUTCRACKER) #139: Wed Jun 29 02:21:42 CEST 2005 lha@nutcracker.it.su.se:/sources/netbsd/current/src/sys/arch/i386/compile/NUTCRACKER i386
Architecture: i386
Machine: i386
>Description:

cd is strange when given a prefix of .// before the commonent

#!/bin/sh
test -d foo || mkdir foo
(cd  ./foo || echo cd  ./foo failed )
(cd .//foo || echo cd .//foo failed )

	
>How-To-Repeat:

: lha@nutcracker ; sh -x /tmp/foo.sh 
+ test -d foo
+ mkdir foo
+ cd ./foo
+ cd .//foo
cd: can't cd to .//foo
+ echo cd .//foo failed
cd .//foo failed
	
>Fix:
	

>Unformatted: