Hi, Strictly POSIX compliant head/tail now requires -n 1 instead of -1 as argument. Ciao, Marcus Changelog: Change all head -1 to head -n 1 to be more POSIXly compliant. Index: programs/winelauncher.in =================================================================== RCS file: /home/wine/wine/programs/winelauncher.in,v retrieving revision 1.2 diff -u -r1.2 winelauncher.in --- programs/winelauncher.in 5 Jul 2002 21:18:41 -0000 1.2 +++ programs/winelauncher.in 1 Sep 2003 08:38:48 -0000 @@ -148,30 +148,30 @@ #------------------------------------------------------------------------------ WINE_BIN_NAME=wine.bin if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then - WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1` + WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1` fi if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then - WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1` + WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1` fi if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then WINE_BIN_NAME=wine if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then - WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1` + WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1` fi if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then - WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1` + WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1` fi fi if [ ! -r $WINELIB/libwine.so ] ; then - WINELIB=`find $argv0_dir -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -1` + WINELIB=`find $argv0_dir -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -n 1` fi if [ ! -r $WINELIB/libwine.so ] ; then - WINELIB=`find $argv0_dir/../ -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -1` + WINELIB=`find $argv0_dir/../ -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -n 1` fi if [ -x $WINEBIN/wineserver ] ; then
Attachment:
pgp00176.pgp
Description: PGP signature