1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00

Andrei, 27644, ish: check for #! without a fork

This commit is contained in:
Peter Stephenson 2010-02-02 14:55:36 +00:00
parent 84fb892f0a
commit 2ff698ce1d
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2010-02-02 Peter Stephenson <pws@csr.com>
* based on Andrei, 27644: Config/installfns.zsh: check for
#! line without a fork.
2010-02-01 Peter Stephenson <pws@csr.com> 2010-02-01 Peter Stephenson <pws@csr.com>
* unposted: Etc/FAQ.yo: update with notes on * unposted: Etc/FAQ.yo: update with notes on
@ -12657,5 +12662,5 @@
***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4877 $ * $Revision: 1.4878 $
***************************************************** *****************************************************

View file

@ -46,8 +46,11 @@ for file in $allfuncs; do
fi fi
test -d $instdir || /bin/sh $sdir_top/mkinstalldirs $instdir || exit 1 test -d $instdir || /bin/sh $sdir_top/mkinstalldirs $instdir || exit 1
$INSTALL_DATA $sdir_top/$file $instdir || exit 1 $INSTALL_DATA $sdir_top/$file $instdir || exit 1
if sed -ne '1p' $sdir_top/$file | grep '^#!' >/dev/null; then read line < $sdir_top/$file
chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'` case "$line" in
fi '#!'*)
chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'`
;;
esac
fi fi
done done