-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Implement test -v
and test -k
#537
Comments
Did you encounter a script that uses these? Or were you just testing? All this stuff should be eventually implemented, but unless it adds something here [1] it wouldn't be at the top of my TODO list. My strategy now is to make Oil faster / usable / desirable and hopefully users will be motivated to fill out all the corners :) Patches are accepted :) [1] https://github.com/oilshell/oil/wiki/Shell-Programs-That-Run-Under-OSH |
I have Keeping this low-priority is absolutely fine with me! I expect |
In case you're interested, here are some other errors from trying to source my Bash setup: https://github.com/BatmanAoD/PublicPaste/blob/master/OshWithPubConfig.log As you can see at the bottom, it fails to source most of my setup, so I'm sure there's quite a bit more that's missing. |
OK thanks, that looks about what I'd expect.
|
That's unfortunate; that's probably the only feature of the ones listed that I would actually miss if I transitioned away from Bash, because I use negative matching in my shell from time to time. |
|
I discovered
test -v
isn't implemented, and couldn't find an existing issue for it.Here's a table of the "primary expressions" that Bash's
test
supports:http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html#tab_07_01
Of the unary primary expresions (such as
-v VAR
),-v
is the only one that prints an error saying that it isn't implemented, buttest -k foo
prints:The text was updated successfully, but these errors were encountered: