Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing POSIX (?) syntax #40

Closed
ghost opened this issue Mar 27, 2022 · 2 comments
Closed

Missing POSIX (?) syntax #40

ghost opened this issue Mar 27, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 27, 2022

Running Homebrew's shellenv script (necessary to use packages installed via Homebrew) by running

eval "$(/opt/homebrew/bin/brew shellenv)"

results in an error:

nsh: parse error:  --> 4:56
  |
4 | export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}";␊
  |                                                        ^---
  |
  = expected param_op

Which corresponds to line 48 in the aforementioned script.

Is this POSIX-compliant syntax? If so, an implementation for this seems to be missing.

@nuta
Copy link
Owner

nuta commented Mar 29, 2022

That's included in the POSIX spec. Will be fixed in nsh's (work-in-progress) next-gen parser.

@ghost
Copy link
Author

ghost commented Mar 31, 2022

That's included in the POSIX spec. Will be fixed in nsh's (work-in-progress) next-gen parser.

Is there a way to try this WIP version out? I checked out the seiya branch, but the only executable I seem to find is the one in src/nsh, and it looks pretty much empty.

@ghost ghost closed this as completed Jun 2, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant