Check rlwrap for -q support before enabling it.

This commit is contained in:
Phil Hagelberg 2011-04-13 18:15:22 -07:00
parent 06c605d1c2
commit ab6293d4c6

7
bin/lein Normal file → Executable file
View file

@ -174,7 +174,12 @@ else
CYGWIN_JLINE=y
fi
else
RLWRAP="$RLWRAP -m -q '\"'"
# Test to see if rlwrap supports custom quote chars
rlwrap -m -q '"' echo "hi" > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "dash q"
RLWRAP="$RLWRAP -m -q '\"'"
fi
fi
fi