#!/bin/sh if [ $# -lt 1 ]; then cat< gcc \"$INPUT\" -o \"$FILE\" $GCC_OPTS" ## Zsh compatibility. We need it otherwise word splitting of parameter GCC_OPTS ## will not work. STATUS="$(set -o | grep 'shwordsplit' | awk '{print $2}')" [ "$STATUS" = "off" ] && set -o shwordsplit gcc "$INPUT" -o "$FILE" $GCC_OPTS ## Restore Zsh previous options. This will not turn off shwordsplit if it ## was on before calling the function. [ "$STATUS" = "off" ] && set +o shwordsplit echo "==> $FILE" "$FILE" rm "$FILE"