mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
awful: better eval()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
85dbc8fd01
commit
28c16dd888
1 changed files with 2 additions and 2 deletions
|
@ -450,8 +450,8 @@ local function spawn(cmd)
|
|||
return os.execute(cmd .. "&")
|
||||
end
|
||||
|
||||
local function eval(cmd)
|
||||
assert(loadstring(cmd))()
|
||||
local function eval(s)
|
||||
return assert(loadstring("return" ..s))()
|
||||
end
|
||||
|
||||
local function menu_completion_bash(command, cur_pos, ncomp)
|
||||
|
|
Loading…
Reference in a new issue