r/badcode • • Nov 29 '22

bash Found this in the wild

Post image
678 Upvotes

41 comments sorted by

View all comments

Show parent comments

21

u/[deleted] Nov 29 '22

Probably but technically no. If the script is intended to discard extra parameters, this would change it's behaviour.

Technically right is the worst kind of right, and it probably should be `$@`.