awesome-client: use readline and no backslash
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
4f1eac6fa5
commit
b38ebbeac1
|
@ -3,10 +3,15 @@
|
||||||
# rlwrap provides readline to stuff which doesn't know readline by itself
|
# rlwrap provides readline to stuff which doesn't know readline by itself
|
||||||
RLWRAP=`which rlwrap 2>/dev/null`
|
RLWRAP=`which rlwrap 2>/dev/null`
|
||||||
|
|
||||||
if [ "$RLWRAP" != "" ] && [ "$A_RERUN" = "" ]
|
if [ "$RLWRAP" != "" ]
|
||||||
|
then
|
||||||
|
if [ "$A_RERUN" = "" ]
|
||||||
then
|
then
|
||||||
A_RERUN="no" exec $RLWRAP $0
|
A_RERUN="no" exec $RLWRAP $0
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
USE_READLINE="-e"
|
||||||
|
fi
|
||||||
|
|
||||||
DBUS_SEND=dbus-send
|
DBUS_SEND=dbus-send
|
||||||
|
|
||||||
|
@ -25,7 +30,7 @@ a_dbus_send()
|
||||||
$DBUS_METHOD string:"$1" | tail -n +2
|
$DBUS_METHOD string:"$1" | tail -n +2
|
||||||
}
|
}
|
||||||
|
|
||||||
while read -p "awesome# " line
|
while read ${USE_READLINE} -r -p "awesome# " line
|
||||||
do
|
do
|
||||||
a_dbus_send "$line"
|
a_dbus_send "$line"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue