aboutsummaryrefslogtreecommitdiffstats
path: root/test_.lua
diff options
context:
space:
mode:
authordvs12024-10-28 10:30:16 +1000
committerdvs12024-10-28 10:30:16 +1000
commit4edd85aa8156150f1fa7a3026a922b49366b642d (patch)
treeb2beaa4eb8a4396a9688d33ebed744b01145ca02 /test_.lua
parentAllow -abc style, expand to -a -b -c, and can put -- in front of any option. (diff)
downloadJackOnAllDevices-4edd85aa8156150f1fa7a3026a922b49366b642d.zip
JackOnAllDevices-4edd85aa8156150f1fa7a3026a922b49366b642d.tar.gz
JackOnAllDevices-4edd85aa8156150f1fa7a3026a922b49366b642d.tar.bz2
JackOnAllDevices-4edd85aa8156150f1fa7a3026a922b49366b642d.tar.xz
Consistantly use single quotes for Lua strings, unless otherwise needed.
Old habits die hard. lol
Diffstat (limited to '')
-rwxr-xr-xtest_.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test_.lua b/test_.lua
index 452f4c9..a589a00 100755
--- a/test_.lua
+++ b/test_.lua
@@ -41,8 +41,8 @@ local options =
41 _.killEmAll{'jmcore', 'qjackctl'} 41 _.killEmAll{'jmcore', 'qjackctl'}
42 -- Catia is python, and no easy way to kill it. 42 -- Catia is python, and no easy way to kill it.
43 -- Also it keeps jackdbus alive, no matter how hard you kill it. 43 -- Also it keeps jackdbus alive, no matter how hard you kill it.
44 __"pkill -TERM -u $USER -f catia":Do() 44 __'pkill -TERM -u $USER -f catia':Do()
45 __"sleep 2":Do() 45 __'sleep 2':Do()
46 _.killEmAll{'jackdbus', 'a2jmidid'} 46 _.killEmAll{'jackdbus', 'a2jmidid'}
47]=] 47]=]
48 end 48 end
@@ -51,10 +51,10 @@ local options =
51options['restart'] = options['start'] 51options['restart'] = options['start']
52options['force-reload'] = options['start'] 52options['force-reload'] = options['start']
53 53
54print("start = " .. options.start.value) 54print('start = ' .. options.start.value)
55_.parse(arg, options, 'test_') 55_.parse(arg, options, 'test_')
56print("start = " .. options.start.value) 56print('start = ' .. options.start.value)
57print("stop = " .. options.stop.value) 57print('stop = ' .. options.stop.value)
58 58
59 59
60 60
@@ -112,7 +112,7 @@ print(__[[#!/usr/bin/tcc -run
112print('') 112print('')
113 113
114__[[#!/usr/bin/env luajit 114__[[#!/usr/bin/env luajit
115 print('Hello ' .. "world " .. [=[from]=] .. " Lua.") 115 print('Hello ' .. "world " .. [=[from]=] .. ' Lua.')
116]]:log():show():Do() 116]]:log():show():Do()
117print('') 117print('')
118 118