di silently succeeds with malformed $DI_ARGS
advanced disk information utility
Brought to you by:
bll123
As discovered in previous issue #3 I had a malformed DI_ARGS
value for many years, unsuspected despite multiple daily usage. Specifically, it contained a -x
comma-separated list followed by what was intended to be a -f
format specifier string, only without the -f
.
-x fdesc,tmpfs,devtmpfs,rootfs,squashfs,autofs,fuse.portal,fuse.snapfuse sMbuv1t
This should fail gracefully, I think, or at least output a warning to stderr
. What do you think?
DI_ARGS="-y" ./di
prints an error message, but extra stuff that is not recognizable as an argument is ignored as these types of arguments (if specified on the command line) are processed by the main program as pathnames. I think I see a way to resolve this.
Fixed in version 4.52