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

Oil Idiom for ${MAYBE_SET:-} #886

Open
andychu opened this issue Jan 10, 2021 · 0 comments
Open

Oil Idiom for ${MAYBE_SET:-} #886

andychu opened this issue Jan 10, 2021 · 0 comments

Comments

@andychu
Copy link
Contributor

andychu commented Jan 10, 2021

https://oilshell.zulipchat.com/#narrow/stream/121540-oil-discuss/topic/Experience.20using.20oil

  • You can do test -v MAYBE_SET
  • and test -z ${MAYBE_SET:-}

It might be worthwhile to have something like

  • $[MAYBE_SET or '']
  • $[MAYBE_SET ? '']

I don't think we're using the question mark for anything

related to #865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant