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

Use niceties like $@, local, ...=(*) etc., and undo all the tedious rookie ${var} chickening... #30

Open
xparq opened this issue Feb 2, 2023 · 1 comment

Comments

@xparq
Copy link
Owner

xparq commented Feb 2, 2023

(Originally opened for Args (-> xparq/Args#30), but the test scripts now live here, so taking over...)

@xparq
Copy link
Owner Author

xparq commented Feb 2, 2023

Original comments copied over from xparq/Args#30:

I mean, now that I actually looked at the ash manpage, I can be sure that $var is just fine. :) (Yyyep, it would have taken less effort to look it up upfront than all the repeatedly mistyped { and }...)

Also: non-subshell cmd grouping with {...; ...; } (mind the trailing ;!), e.g. for nicer oneliners, or common redir:

{ cmd1; cmd2; } > out

But check if it would survive an .../sh shebang in a real POSIX env (like WSL)!

@xparq xparq changed the title Scripts: use niceties like $@, local, ...=(*) etc., and undo all the tedious rookie ${var} chickening... Use niceties like $@, local, ...=(*) etc., and undo all the tedious rookie ${var} chickening... Feb 2, 2023
xparq added a commit that referenced this issue Feb 2, 2023
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