blob: bc60ead09b6e41c050490cf1a6422158f3bcc51e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/bash
XDOTOOL=$(which xdotool)
if [ $? == 1 ]; then
XDOTOOL=:
fi
./xlnch <<EOF 2>/dev/null &
# comment
#^ blank line
# wrong key
aaa:description:command
# no description
b::command
# no command
c:no_command:
# no `:`
this is a wrong config line
# special characters
Ö × ĥ Ħ ﻰ ﻱ ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 7 8 : ; < = > ? @ B C H IY Z [ \ ] ^ _ ` v w x y z { | } ~ 。 「 」 、 ・ ヲ ァ ィ ゥ ェタ チ ツ
EOF
PID=$!
sleep .1
$XDOTOOL key q
wait $PID
echo $?
|