mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-18 05:39:49 +00:00
fixed: random number _ZL_RANDOM is empty in fish shell
This commit is contained in:
3
z.lua
3
z.lua
@@ -1480,7 +1480,8 @@ function _zlua
|
||||
l e x t r c s i h/help A-add C-complete -- $argv
|
||||
|
||||
if test -n "$_flag_add"
|
||||
env _ZL_RANDOM="$RANDOM" "$ZLUA_LUAEXE" "$ZLUA_SCRIPT" --add $argv
|
||||
set _ZL_RANDOM (random)
|
||||
eval "$ZLUA_LUAEXE" "$ZLUA_SCRIPT" --add $argv
|
||||
return
|
||||
else if test -n "$_flag_complete"
|
||||
_z_lua_impl --complete $argv
|
||||
|
||||
Reference in New Issue
Block a user