From muir@idiom.com  Sat Jan 14 03:21:41 1995
Received: from idiom.com (idiom.com [140.174.82.4]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id DAA10877 for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Jan 1995 03:21:35 -0800
Received: (from muir@localhost) by idiom.com (8.6.9/8.6.9) id DAA19145; Sat, 14 Jan 1995 03:21:31 -0800
Message-Id: <199501141121.DAA19145@idiom.com>
Date: Sat, 14 Jan 1995 03:21:31 -0800
From: David Muir Sharnoff <muir@idiom.com>
Reply-To: muir@idiom.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: /bin/csh and /usr/local/bin/tcsh choke on my cd alias
X-Send-Pr-Version: 3.2

>Number:         113
>Category:       bin
>Synopsis:       /bin/csh and /usr/local/bin/tcsh choke on my nasty cd alias
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 14 03:30:02 1995
>Closed-Date:    Tue Jun 20 14:36:34 PDT 1995
>Last-Modified:
>Originator:     David Muir Sharnoff
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
Idiom Consulting
>Environment:

>Description:

	I have a really nast alias for cd.  I never had much trouble
	with its portability before.

>How-To-Repeat:

	/bin/csh -f
	% source A
	Bad : modifier in $ (m).
	% 

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	A
#
echo x - A
sed 's/^X//' >A << 'END-of-A'
X
Xset prom=idiom _unp
X
Xalias promptLocalP 'unset IsLocal; if (-d "\!:1" ) set IsLocal'
Xalias prompt 'set prompt = $_unp$prom:t:\!:1\<\!\>\ ; if ('\''\!:1'\'' =~ [A-Za-z_]* && '\''\!:1'\'' !~ *-* && '\''\!:1'\'' !~ *[.@=+%\#^,:\$]* && '\''\!:1'\'' !~ ???????????????????* ) eval promptSetV \!:1'
Xalias promptSetV 'eval if \(! $?\!:1 \) eval promptDoSetV \!:1 ; eval if \("$\!:1" != "$cwd" \|\| $?EMACS \) echo "$cwd"'
Xalias promptDoSetV 'if (! $?IsLocal) echo $cwd ; set \!:1 = $cwd '
X
Xeval prompt $cwd:t /
END-of-A
exit


>Fix:
	
	My fix was to compile the NetBSD version of csh which doesn't
	have this problem.  I don't know what else is different so I 
	didn't replace /bin/csh with the NetBSD csh.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Tue Jun 20 14:36:34 PDT 1995 
State-Changed-Why:  
Now works with both /bin/csh and /usr/local/bin/tcsh 
>Unformatted:



