7beac31fbc
The addattr didn't quite match its help text, wrt the kinds of values one can use for type codes. Aside from the list of named types (which isn't actually quite complete compared to the choices in the source) the help said one can enter "numeric values", and gives both hex and decimal examples. However, trying a hex value didn't work -- only decimal numbers were accepted. This turned out to be because the sscanf format option is "%u" (actually B_SCNu32) which only handles decimal. It has to be B_SCNi32 (which means it would be allowed to enter a negative value -- just not very sensible...) The other example entry given is " 'ABCD' ", which apparently is meant to indicate that one can enter 'FourCC' direct type-code representations, but of course that wouldn't work as shown because the shell strips off the quotes. Escaping the quotes -- \'ABCD\' -- or adding a second layer -- "'ABCD'" -- does work but is not obvious. (I can't think of any other command line that requires such a convention.) I have added another option: "-c ABCD". The current way can still work, but the new option should be fairly evident to anyone. Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com> Fixes #12562. |
||
---|---|---|
.. | ||
add-ons | ||
apps | ||
bin | ||
build | ||
data | ||
kits | ||
libs | ||
preferences | ||
servers | ||
system | ||
tests | ||
tools | ||
Jamfile |