-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
It's very frequent in scripts to enable set
flags to avoid common pitfalls and make them more robust and safer:
#!/bin/sh
set -Cefu
# ...
At explainshell it can be clearly seen at a glance what each of these flags do:
Of these, -C
doesn't exist in fish
, and -e
, -f
, -u
all have different meanings.
It'd be cool to filter them out from the output entirely.
My only concern would be set -- x y z
constructs, that set elements to the builtin pseudo-array.
Metadata
Metadata
Assignees
Labels
No labels