mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
10c8184839
* vfs/extfs/uzip.in: Better handling of zip-archives that contain files which contain spaces. 1999-09-22 Norbert Warmuth <nwarmuth@privat.circular.de> * lib/mc.sh.in, mc.csh.in: renamed from mc.sh resp. mc.csh. Adapt path to the mc binary according to @prefix@. * lib/Makefile.in (srcdir): mc.sh and mc.csh are now created by configure. Install mc.sh and mc.csh in $(suppbindir). * doc/mc.1.in, mc.sgml: Updated the mc function definition for bash and zsh. Suggest to source mc.sh or mc.csh instead of adding verbatim copies of the included function definitions. * mcfn_install.in: Comment out definitions of the mc functions. Source mc.sh instead of adding an outdated mc function definition. * configure.in: output mc.sh and mc.csh
11 lines
168 B
Bash
11 lines
168 B
Bash
mc ()
|
|
{
|
|
mkdir -p ~/.mc/tmp 2> /dev/null
|
|
chmod 700 ~/.mc/tmp
|
|
MC=~/.mc/tmp/mc-$$
|
|
@prefix@/bin/mc -P "$@" > "$MC"
|
|
cd "`cat $MC`"
|
|
rm "$MC"
|
|
unset MC;
|
|
}
|