haiku/src
Pete Goodeve 7beac31fbc addattr: Fix some deficiencies.
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.
2016-01-27 19:38:09 -05:00
..
add-ons BMailProtocol: Removed delete/append methods. 2016-01-26 16:01:03 +01:00
apps Build: Add architecture rule for libshared.a. 2016-01-15 21:12:24 -05:00
bin addattr: Fix some deficiencies. 2016-01-27 19:38:09 -05:00
build Add __clang__ to a few #ifdefs 2015-11-07 23:02:53 +01:00
data Update pci.ids from pciids.sourceforge.net 2016-01-21 05:20:24 +01:00
kits BMailProtocol: Removed delete/append methods. 2016-01-26 16:01:03 +01:00
libs Convert various more things to using Set*UIColor. 2016-01-04 07:29:14 -05:00
preferences Build: Add architecture rule for libshared.a. 2016-01-15 21:12:24 -05:00
servers Remove unused code. 2016-01-24 11:22:52 +01:00
system Kernel POSIX: add stpcpy. 2015-12-29 10:24:06 +01:00
tests Build: adjust Jamfiles in unittests for libshared.a change. 2016-01-16 15:44:26 +13:00
tools unittests: link libcppunit.so to the unittests directory 2016-01-17 09:29:37 +01:00
Jamfile Interface Guidelines: migrate to docs/, use DocBookCSS. 2015-02-12 17:08:04 -05:00