one more thing for spaces
@@ -61,7 +61,7 @@ batfish() {
if [ "$BATFISH_PRINT_CMDLINE" = "yes" ]; then
echo "$BATFISH $BATFISH_COMMON_ARGS $@" >&2
fi
- $BATFISH $BATFISH_COMMON_ARGS "$@"
+ "$BATFISH" $BATFISH_COMMON_ARGS "$@"
}
export -f batfish
@@ -86,7 +86,7 @@ export -f batfish_answer_example_cp
batfish_build() {
bash -c '_batfish_build "$@"' _batfish_build "$@" || return 1
if [ "$BATFISH_COMPLETION_FILE" -ot "$BATFISH_PATH/out/batfish.jar" -a -e "$BATFISH_PATH/out/batfish.jar" ]; then
- echo -n "Generating bash completion file.."
+ echo -n "Generating bash completion file (after batfish_build) ..."
BATFISH_PRINT_CMDLINE=no batfish -help | grep -o '^ *-[a-zA-Z0-9]*' | tr -d ' ' | tr '\n' ' ' > "$BATFISH_COMPLETION_FILE"
echo "OK"
fi
@@ -103,7 +103,7 @@ export -f _batfish_build
batfish_build_all() {
bash -c '_batfish_build_all "$@"' _batfish_build_all "$@" || return 1
if [ "$BATFISH_COMPLETION_FILE" -ot "$BATFISH_PATH/out/batfish.jar" -a -e "$BATFISH_PATH/out/batfish.jar" ]; then
- echo -n "Generating bash completion file.."
+ echo -n "Generating bash completion file (after batfish_build_all) ..."
BATFISH_PRINT_CMDLINE=no batfish -help | grep -o '^ *-[a-zA-Z0-9]*' | tr -d ' ' | tr '\n' ' ' > "$BATFISH_COMPLETION_FILE"
echo "OK"
fi
