critical impact:
od - command option differences (CrCh151)
Problem description
Some Tru64 UNIX od functionality does not exist on HP-UX.
The following od command options are available on Tru64 UNIX but not HP-UX:
- -a displays bytes as characters and displays them with their ASCII names. If the p character is also specified, bytes with even parity are underlined. The P character causes bytes with odd parity to be underlined. Otherwise, parity is ignored.
- -B displays short words as octal values.
- -C displays any extended characters as standard printable ASCII characters using the appropriate character escape string.
- -D displays long words as unsigned decimal values.
- -e displays long words as double-precision, floating-point.
- -f displays long words as single-precision, floating-point.
- -F displays long words as double-precision, floating-point.
- -h displays short words as unsigned hexadecimal values.
- -H displays long words as unsigned hexadecimal values.
- -i displays short words as signed decimal values.
- -I, -l, -L, and -S display long words as signed decimal values.
- -O displays long words as unsigned octal values.
- -p indicates even parity on -a conversion.
- -P indicates odd parity on -a conversion.
- -Q displays quadwords as hexadecimal values.
- -s[number] looks for strings of ASCII graphic characters, terminated with a null byte. The number argument specifies the minimum length string to be recognized. By default, the minimum length is 3 characters. Allowable characters are those between blank (040) and tilde (0176), as well as backspace, tab, linefeed, formfeed, and carriage-return (010 through 015, except 013).
- -s displays, if the environment variable CMD_ENV is set to svr4, signed words (32-bit or Tru64 UNIX short words) as signed decimal values.
If the environment variable CMD_ENV is set to xpg4, then the action is the same as using the -i option.
- -X displays long words as unsigned hexadecimal values.
Identifiers
 od:-a |
 od:-D |
 od:-f |
 od:-I |
 od:-l |
 od:-p |
 od:-s |
 od:-B |
 od:-e |
 od:-H |
 od:-i |
 od:-O |
 od:-Q |
 od:-X |
 od:-C |
 od:-F |
 od:-h |
 od:-L |
 od:-P |
 od:-S |
|
See also
Solution description
Review your code and the applicable manpages to determine how to resolve this issue.
If your code has a dependency on the -D, -H, -I, -l, -L, -S, -O, and -X options, use the -t type_string option.
See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| CMD |
Script |
any HP-UX 11i version |
critical |
changed |
|