10 # rlwrap provides readline to stuff which doesn't know readline by itself
11 RLWRAP
=$
(which rlwrap
2>/dev
/null
)
12 if [ "$RLWRAP" != "" ]
14 if [ "$A_RERUN" = "" ]
16 A_RERUN
="no" exec $RLWRAP $0
27 READ_OPTIONS
="$READ_OPTIONS -p awesome# "
33 which ${DBUS_SEND} > /dev
/null
36 echo "E: Unable to find" ${DBUS_SEND}
41 DBUS_DEST
=org.naquadah.awesome.awful
42 DBUS_METHOD
=${DBUS_DEST}.Remote.Eval
46 $DBUS_SEND --dest=$DBUS_DEST --type=method_call
--print-reply $DBUS_PATH \
47 $DBUS_METHOD string
:"$1" |
tail -n +2
52 while read ${READ_OPTIONS} line