* 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>
* lib/Makefile.in (LIBFILES_CONST): Added mc.hint.it from

View File

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

View File

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

View File

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