Avoid C++-style comments.
[midnight-commander.git] / contrib / mc-wrapper.csh.in
blobfa715f728bd861b45c3f5747b58c9422c1f3b132
1 set MC_USER="`id | sed 's/[^(]*(//;s/).*//'`"
3 if ($?TMPDIR) then
4         setenv MC_PWD_FILE $TMPDIR/mc-$MC_USER/mc.pwd.$$
5 else
6         setenv MC_PWD_FILE /tmp/mc-$MC_USER/mc.pwd.$$
7 endif
9 @bindir@/mc -P "$MC_PWD_FILE" $*
11 if (-r "$MC_PWD_FILE") then
12         setenv MC_PWD "`cat '$MC_PWD_FILE'`"
13         if ( -d "$MC_PWD" ) then
14                 cd "$MC_PWD"
15         endif
16         unsetenv MC_PWD
17 endif
19 rm -f "$MC_PWD_FILE"
20 unsetenv MC_PWD_FILE