]> git.pld-linux.org Git - packages/awesome.git/blame - awesome-client-bashizm.patch
- 3.3.3
[packages/awesome.git] / awesome-client-bashizm.patch
CommitLineData
66965aef 1diff --git a/utils/awesome-client b/utils/awesome-client
2index a125869..e99faf3 100755
3--- a/utils/awesome-client
4+++ b/utils/awesome-client
5@@ -1,7 +1,8 @@
6 #!/bin/sh
7
8 # rlwrap provides readline to stuff which doesn't know readline by itself
9-RLWRAP=`which rlwrap 2>/dev/null`
10+RLWRAP=$(which rlwrap 2>/dev/null)
11+READ_OPTIONS="-r"
12
13 if [ "$RLWRAP" != "" ]
14 then
15@@ -10,7 +11,15 @@ then
16 A_RERUN="no" exec $RLWRAP $0
17 fi
18 else
19- USE_READLINE="-e"
20+ if [ "$BASH" ]
21+ then
22+ READ_PARAMETERS=" -e"
23+ fi
24+fi
25+
26+if [ $BASH ]
27+then
28+ READ_OPTIONS="$READ_OPTIONS -p awesome# "
29 fi
30
31 DBUS_SEND=dbus-send
32@@ -32,7 +41,7 @@ a_dbus_send()
33 $DBUS_METHOD string:"$1" | tail -n +2
34 }
35
36-while read ${USE_READLINE} -r -p "awesome# " line
29ac317d 37+while read ${USE_READLINE} ${READ_OPTIONS} line
66965aef 38 do
39 a_dbus_send "$line"
40 done
This page took 0.112941 seconds and 4 git commands to generate.