From fa1518e567e2e37383a480b8173b7c69dff5670e Mon Sep 17 00:00:00 2001 From: "Stephen A. Wood" <saw@jlab.org> Date: Tue, 24 Jun 2014 15:00:09 -0400 Subject: [PATCH] Escape the cd command for people that have weird aliases of cd. --- setup.csh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.csh b/setup.csh index d7df18c..110956b 100644 --- a/setup.csh +++ b/setup.csh @@ -4,7 +4,7 @@ set called=($_) if ("$called" != "") then set scriptdir=$called[2] set MYDIR=`dirname $scriptdir` - set MYDIR=`cd $MYDIR && pwd` # ensure absolute path + set MYDIR=`c\d $MYDIR && pwd` # ensure absolute path else set scriptdir=$1 set MYDIR=$scriptdir -- GitLab