Subject: bin/24753: ksh complete does not add / to ..
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/12/2004 14:01:30
>Number:         24753
>Category:       bin
>Synopsis:       ksh complete does not add / to ..
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 12 12:10:00 UTC 2004
>Originator:     Arto Huusko
>Release:        NetBSD 1.6ZF
System: NetBSD 1.6ZF NetBSD 1.6ZF (MAAILMA) #2: Mon Dec 1 21:44:24 EET 2003 arto@lady:/data/netbsd/current/alpha/obj/sys/arch/alpha/compile/MAAILMA alpha
Architecture: alpha
Machine: alpha
	When using ksh's file "complete-list" function in emacs mode,
	ksh does not recognize ".." as a directory: no "/" is automatically
	added to it. Instead the terminal just beeps.

	Same thing happens also with "complete" and "complete-file".

	This is annoying, because the slash needs to be written
	separately when traversing several directories upwards
	(at least with finnish kbd map where it is hard to write the
	slash: shift+7).
	Bind "complete-list" to some key, such as ^I, write "cd .." and
	hit the bound key. Terminal beeps, "/" does not appear after "..".
	Unknown. I tried looking through -current ksh sources, and
	as far as I can see, eval.c:globit() should add "/" after "..",
	since I should think S_ISDIR() check would evaluate to true
	for stat of "..".

	Perhaps the problem is that ksh refuses to glob ".." in the
	first place.