Check rlwrap for -q support before enabling it.
This commit is contained in:
parent
06c605d1c2
commit
ab6293d4c6
1 changed files with 6 additions and 1 deletions
7
bin/lein
Normal file → Executable file
7
bin/lein
Normal file → Executable 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue