* lib/mc.sh.in: Use $HOME instead of '~' because the tilde

is not expanded in all shells.
* doc/mc.sgml: Updated the example script to reflect the above
changes.
* doc/mc.in.1: Likewise.
This commit is contained in:
Pavel Roskin 2000-09-21 21:17:28 +00:00
parent ed3fbae2ed
commit 15535f33a2
4 changed files with 17 additions and 9 deletions

View File

@ -1,3 +1,11 @@
2000-09-21 Pavel Roskin <proski@gnu.org>
* lib/mc.sh.in: Use $HOME instead of '~' because the tilde
is not expanded in all shells.
* doc/mc.sgml: Updated the example script to reflect the above
changes.
* doc/mc.in.1: Likewise.
2000-09-19 Pavel Roskin <proski@gnu.org> 2000-09-19 Pavel Roskin <proski@gnu.org>
* lib/Makefile.in (LIBFILES_CONST): Added mc.hint.it from * lib/Makefile.in (LIBFILES_CONST): Added mc.hint.it from

View File

@ -65,9 +65,9 @@ bash and zsh users:
mc () mc ()
{ {
mkdir -p ~/.mc/tmp 2> /dev/null mkdir -p $HOME/.mc/tmp 2> /dev/null
chmod 700 ~/.mc/tmp chmod 700 $HOME/.mc/tmp
MC=~/.mc/tmp/mc-$$ MC=$HOME/.mc/tmp/mc-$$
@prefix@/bin/mc -P "$@" > "$MC" @prefix@/bin/mc -P "$@" > "$MC"
cd "`cat $MC`" cd "`cat $MC`"
rm "$MC" rm "$MC"

View File

@ -90,9 +90,9 @@ bash and zsh users:
<tscreen><verb> <tscreen><verb>
mc () mc ()
&lcub; &lcub;
mkdir -p ~/.mc/tmp 2> /dev/null mkdir -p $HOME/.mc/tmp 2> /dev/null
chmod 700 ~/.mc/tmp chmod 700 $HOME/.mc/tmp
MC=~/.mc/tmp/mc$$-"$RANDOM" MC=$HOME/.mc/tmp/mc$$-"$RANDOM"
@prefix@/bin/mc -P "$@" > "$MC" @prefix@/bin/mc -P "$@" > "$MC"
cd "`cat $MC`" cd "`cat $MC`"
rm "$MC" rm "$MC"

View File

@ -1,8 +1,8 @@
mc () mc ()
{ {
mkdir -p ~/.mc/tmp 2> /dev/null mkdir -p $HOME/.mc/tmp 2> /dev/null
chmod 700 ~/.mc/tmp chmod 700 $HOME/.mc/tmp
MC=~/.mc/tmp/mc-$$ MC=$HOME/.mc/tmp/mc-$$
@prefix@/bin/mc -P "$@" > "$MC" @prefix@/bin/mc -P "$@" > "$MC"
cd "`cat $MC`" cd "`cat $MC`"
rm "$MC" rm "$MC"