skywind3000 / skywind3000/z.lua

z.lua init fail: attempt to concatenate a nil value (local 'path')

Open
#204 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.