bug 4838106 /usr/ucb/df -i -t nfs fails strangely >From the bug: "% /usr/ucb/df -i -t nfs fails strangely:
df: more than one FSType specified Usage: df [-F FSType] [-abeghklntVv] [-o FSType-specific_options] [directory | block_device | resource] But I only specified one FStype!" =================== This is a somewhat interesting bug to me for a few reasons: 1) The user is confused about what they did wrong, because apparently they don't know their own options. -i expands to: "-F ufs -o i", as /usr/ucb/df is just a wrapper for /usr/sbin/df. 2) We could tell the user that -i cannot be combined with -F or -t, but this really wouldn't help them understand what was happening. So, I think the right fix to this one isn't to tell them they can't combine certain options, but rather to change "df" to print out the command line arguments that it's going to run /usr/sbin/df with in an obvious way, so that the user can see: "Oh hey, one of the options I passed expanded to -F ufs -o i, no wonder I'm getting that error!". Otherwise one has to constantly special case the various options that cannot be combined together. While I can understand the other viewpoint. Which is the "right" way? Thoughts? Agree / Disagree? -- Shawn Walker, Software and Systems Analyst [EMAIL PROTECTED] - http://binarycrusader.blogspot.com/ _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org https://opensolaris.org:444/mailman/listinfo/opensolaris-code