Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 19:25:15 -0800 (PST)
From:      Andriy Gapon <avg@icyb.net.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/36685: annoying warnings from mc with tcsh in home dir
Message-ID:  <200204030325.g333PFQ05661@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         36685
>Category:       ports
>Synopsis:       annoying warnings from mc with tcsh in home dir
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 02 19:30:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andriy Gapon
>Release:        FreeBSD 4.5
>Organization:
>Environment:
FreeBSD edge.icyb.net 4.5-RELEASE-p1 FreeBSD 4.5-RELEASE-p1 #0: Mon Feb 25 23:52:47 EST 2002     avg@edge.icyb.net:/sys-devel/obj/sys-devel/src/sys/EDGE  i386

>Description:
source of problem lies in special handling of user's home directory by tcsh: if symlinks is unset, cwd is set to /home/<homedirname> even if the latter is actually a link to /usr/home/<homedirname> and you cd to that.

501/home/avg
p4:edge-22:10>cd /usr/home/avg/
502/home/avg
p4:edge-22:10>echo $cwd
/home/avg
503/home/avg
p4:edge-22:10>cd /
504/
p4:edge-22:11>cd usr
505/usr
p4:edge-22:11>cd home
506/usr/home
p4:edge-22:11>cd avg
507/home/avg
p4:edge-22:11>echo $cwd
/home/avg

so if user changes to his dir through directory hierarchy, a name of dir expected by MC (and confirmed with call to getwd()) will differ from current work dir name reported by subshell (which is determined via cwd) and will result in annoying warning messages. 
>How-To-Repeat:
have MC with subshell enabled and have tcsh as your shell
have a standard FreeBSD location of your home dir in /usr/home and have a coventional link /home --> /usr/home
in one of the panels cd to /
using MC's "GUI" cd to /usr, /usr/home, /usr/home/<your_home_dir>

MC should produce warning about being unable to cd

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204030325.g333PFQ05661>