Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

od - command option differences (CrCh151)

CMD Impacts

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

UNIX Command Optionsod:-a UNIX Command Optionsod:-D UNIX Command Optionsod:-f UNIX Command Optionsod:-I UNIX Command Optionsod:-l UNIX Command Optionsod:-p UNIX Command Optionsod:-s
UNIX Command Optionsod:-B UNIX Command Optionsod:-e UNIX Command Optionsod:-H UNIX Command Optionsod:-i UNIX Command Optionsod:-O UNIX Command Optionsod:-Q UNIX Command Optionsod:-X
UNIX Command Optionsod:-C UNIX Command Optionsod:-F UNIX Command Optionsod:-h UNIX Command Optionsod:-L UNIX Command Optionsod:-P UNIX Command Optionsod:-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
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.