perl-5.22
Last change
on this file since 21d4867 was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
File size:
389 bytes
|
Line | |
---|
1 | set MC_USER="`id | sed 's/[^(]*(//;s/).*//'`" |
---|
2 | |
---|
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 |
---|
8 | |
---|
9 | /usr/bin/mc -P "$MC_PWD_FILE" $* |
---|
10 | |
---|
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 |
---|
18 | |
---|
19 | rm -f "$MC_PWD_FILE" |
---|
20 | unsetenv MC_PWD_FILE |
---|
Note: See
TracBrowser
for help on using the repository browser.