mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-05 11:01:13 +02:00
Andrei, 27644, ish: check for #! without a fork
This commit is contained in:
parent
84fb892f0a
commit
2ff698ce1d
2 changed files with 12 additions and 4 deletions
|
@ -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>
|
||||
|
||||
* unposted: Etc/FAQ.yo: update with notes on
|
||||
|
@ -12657,5 +12662,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.4877 $
|
||||
* $Revision: 1.4878 $
|
||||
*****************************************************
|
||||
|
|
|
@ -46,8 +46,11 @@ for file in $allfuncs; do
|
|||
fi
|
||||
test -d $instdir || /bin/sh $sdir_top/mkinstalldirs $instdir || exit 1
|
||||
$INSTALL_DATA $sdir_top/$file $instdir || exit 1
|
||||
if sed -ne '1p' $sdir_top/$file | grep '^#!' >/dev/null; then
|
||||
chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'`
|
||||
fi
|
||||
read line < $sdir_top/$file
|
||||
case "$line" in
|
||||
'#!'*)
|
||||
chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'`
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue