Branch: Tag:

2012-09-27

2012-09-27 12:44:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Start: Start pike in a consistent way. Fixes [bug 6516 (#6516)] #14.

Start pike with eval "\"$pike\" $PIKEARGS $DEFINES..." in all places.
Previously there were a few places that used $PIKE and many that did
not use eval. This could cause quoting-level problems. [bug 6516 (#6516)] #14.

Rev: server/start:1.249

1:   #!/bin/sh   # - # $Id: start,v 1.248 2012/09/27 10:04:49 grubba Exp $ + # $Id: start,v 1.249 2012/09/27 12:44:12 grubba Exp $      ### If --silent-start is given as the first argument,   ### nothing will be printed to stdout by the script.
222:    rm -rf "$VARDIR/test_config"*    DIR="$VARDIR/test_config"    if [ -f "$SELF_TEST_DIR/scripts/setup.pike" ] ; then -  $PIKE $DEFINES "$SELF_TEST_DIR/scripts/setup.pike" "$SELF_TEST_DIR" "$VARDIR" +  eval "\"$pike\" $PIKEARGS $DEFINES \"$SELF_TEST_DIR/scripts/setup.pike\" \"$SELF_TEST_DIR\" \"$VARDIR\""    fi    once=${once:-1}    debug=1
849:    if kill -0 "$1"; then return 0; fi;       # Check that the cause for the failure is that the process doesn't exist. -  "$PIKE" $DEFINES -e 'return !kill('"$1"', 0) && (errno() == System.ESRCH);'; +  eval "\"$pike\" $PIKEARGS $DEFINES -e 'return !kill('\"$1\"', 0) && (errno() == System.ESRCH);'";    return;   }