dylanaraps / pure-sh-bible

📖 A collection of pure POSIX sh alternatives to external processes.
MIT License
6.45k stars 281 forks source link

Add section: Filter the argument list #29

Open chambln opened 3 years ago

chambln commented 3 years ago

Yeah, by ‘arguments list’ I mean $@. Not sure how else to phrase it—maybe positional parameters?

cmplstofB commented 3 years ago

@chambln According to this document, you are correct. POSIX refers to $@ as "positional parameters" (and also "special parameters").

chambln commented 3 years ago

OK, so the question is whether or not to use POSIX terminology where possible. I actually wrote 'positional parameters' first but changed it to 'arguments list' because that phrase is used elsewhere in the book. I think it is important to be consistent so if we change it to positional parameters here then we should change it elsewhere too.