mirror of
https://github.com/zsh-users/zsh
synced 2024-09-20 00:11:39 +00:00
23702: fix installing executable scripts
23703: getenv() should be zgetenv()
This commit is contained in:
parent
303a089a8e
commit
ab3c63ff9b
|
@ -1,3 +1,10 @@
|
|||
2007-07-26 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 23703: Src/init.c: getenv() should be zgetenv().
|
||||
|
||||
* 23702: Config/installfns.sh: use chmod to change permissions
|
||||
since installing as a programme may try to strip the script.
|
||||
|
||||
2007-07-25 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 23697: configure.ac: use -rdynamic where it seems to be
|
||||
|
|
|
@ -45,10 +45,9 @@ for file in $allfuncs; do
|
|||
esac
|
||||
fi
|
||||
test -d $instdir || /bin/sh $sdir_top/mkinstalldirs $instdir || exit 1
|
||||
$INSTALL_DATA $sdir_top/$file $instdir || exit 1
|
||||
if test -x $sdir_top/$file; then
|
||||
$INSTALL_PROGRAM $sdir_top/$file $instdir || exit 1
|
||||
else
|
||||
$INSTALL_DATA $sdir_top/$file $instdir || exit 1
|
||||
chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'`
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -832,7 +832,7 @@ setupvals(void)
|
|||
if (emulation == EMULATE_ZSH)
|
||||
ptr = home;
|
||||
else
|
||||
ptr = getenv("HOME");
|
||||
ptr = zgetenv("HOME");
|
||||
if (ptr && ispwd(ptr))
|
||||
pwd = ztrdup(ptr);
|
||||
else if ((ptr = zgetenv("PWD")) && (strlen(ptr) < PATH_MAX) &&
|
||||
|
|
Loading…
Reference in a new issue