skywind3000 / skywind3000/z.lua
z.lua init fail: attempt to concatenate a nil value (local 'path')
Open
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 3.1k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
z.lua init fail
mark@snode3:~/.z.lua$ lua ~/.z.lua/z.lua --init bash
ZLUA_SCRIPT="/home/mark/.z.lua/z.lua"
lua: /home/mark/.z.lua/z.lua:514: attempt to concatenate a nil value (local 'path')
stack traceback:
/home/mark/.z.lua/z.lua:514: in function </home/mark/.z.lua/z.lua:496>
(...tail calls...)
/home/mark/.z.lua/z.lua:2347: in function 'z_shell_init'
/home/mark/.z.lua/z.lua:2010: in function 'main'
/home/mark/.z.lua/z.lua:2856: in main chunk
[C]: in ?
mark@snode3:~/.z.lua$ lua -v
Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
but it works fine on another machine, lua on that machine is also Lua 5.3.3.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing lua ~/.z.lua/z.lua --init bash with Lua 5.3.3 and inspect z.lua around lines 496-514, where the nil path is concatenated. Compare the failing machine with the machine where initialization works, then verify that bash initialization completes without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, lua
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100