-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Please support the yash3 posix shell written in rust with the repo at https://github.com/magicant/yash-rs. #3499
Comments
that line is inside a |
BASH_SOURCE doesn't seem to be set when I run it in my environemnt:
I run yash3 inside the zellij terminal multiplexer on top of bash. Mabe that has something to do with it? |
That means it is set, to |
There is a |
The following is confusing me:
|
Isn't |
commands don't "go to other shells" generally. in this case, can you try |
|
is there a chance that's a bug in yash3 with the |
|
|
so, on the yash3 readme, it says:
that implies that you can't yet source nvm.sh, and run commands. |
I'll post a bug report at the yash3 repo, the developer is very active and he might chime in. |
Hi Most existing shells, including bash, parse the brackets My recommended solution is to wrap the bashism in single quotes with the eval command as in: |
What does POSIX say about that syntax validation behavior? If nothing, then "what existing shells do" is what I'd say is reasonable to support and to implement (obv if it says to do one or the other, then "posix-compliant" requires doing that thing). Using eval isn't a reasonable ask - we only have 3 instances of it at the moment, and I look at those as warts that need to be excised. |
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_08_01
|
Alrighty - that "may" is doing a lot of work there, but you answered my question. Is there another way to do this without using eval? |
Bash assumes the first element when expanding an array without an index, so |
Awesome! As soon as I get tests passing on master, I'll push up that fix and release it. |
I was trying to run nvm in the yash3 shell and it doesn't work, even though the nvm script is advertised as being posix compliant.
I installed yash3 from crates.io and nvm with the suggested install script at https://github.com/nvm-sh/nvm/blob/master/README.md piped into bash.
Question: if I uninstall nvm and reinstall by running the install script in yash3 should it conclude in a valid installation?
Feel free to bug me below in the comments about how I may help make yash3 support happen.
The text was updated successfully, but these errors were encountered: