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.
See also: POSIX.1-2017: §2.15 Special Built-In Utilities
It's very frequent in scripts to enable
setflags to avoid common pitfalls and make them more robust and safer:At explainshell it can be clearly seen at a glance what each of these flags do:
Of these,
-Cdoesn't exist infish, and-e,-f,-uall have different meanings.It'd be cool to filter them out from the output entirely.
My only concern would be
set -- x y zconstructs, that set elements to the builtin pseudo-array.See also: POSIX.1-2017: §2.15 Special Built-In Utilities