This is about a (possible) bug in SFRAC 4.0MP1 on Solaris 8.
I have a filesystem that I need to mount using Mount agent. This requires FsckOpt to be set to either `-n' or `-y'. Problem is, this does not work from the command line: I am getting a syntax error (help is displayed), apparently because `-y' is treated as a switch for `hares' rather than a value for `FsckOpt'. I tried three different shells (sh, ksh, tcsh) and a number of tricks, with the following results:
hares -modify mymnt FsckOpt -y
hares -modify mymnt FsckOpt '-y'
hares -modify mymnt FsckOpt "-y"
hares -modify mymnt FsckOpt \-y
All of the above results in a syntax error.
hares -modify mymnt FsckOpt \\-y
hares -modify mymnt FsckOpt '\-y'
hares -modify mymnt FsckOpt "\-y"
All of the above results in the value being set to \-y
As a workaround, I did
hares -modify mymnt FsckOpt " -y"
(with an extra space in front), which is harmless.
Seems like a parsing bug.
Regards,
Andy