skywind3000 / skywind3000/z.lua

在git bash中报错

Open
#199 2 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

vicfg $ (master) eval "$(lua.exe ~/z.lua --init bash)"
bash: @echo: command not found
bash: setlocal: command not found
bash: syntax error near unexpected token `('

在git bash中执行以上命令报错,请看一下,谢谢

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.exe ~/z.lua --init bash in Git Bash and inspect the generated output around @echo, setlocal, and the parenthesized syntax. Trace the --init bash entry point in z.lua and compare its output with what Git Bash expects. Done means initialization runs without these errors and the resulting command works in Git Bash.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, lua
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.