You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
(Originally opened for Args (-> xparq/Args#30), but the test scripts now live here, so taking over...)
The text was updated successfully, but these errors were encountered: