MPE/iX Shell and Utilities Reference Manual, Vol 2
sort(1) MPE/iX Shell and Utilities sort(1)
ENVIRONMENT VARIABLES
sort uses the following environment variable:
TMPDIR
contains the path name of the directory to be used for temporary files.
FILES
sort uses the following file:
/tmp/stm∗
temporary files used for merging and –o option. You can specify a different direc-
tory for temporary files using the
TMPDIR
environment variable. For further infor-
mation, see environ(3).
DIAGNOSTICS
Possible exit status values are:
0 Successful completion. Also returned if –c is specified and the file is in correctly sorted
order.
1 Returned if you specified –c and the file is not correctly sorted. Also returned to indi-
cate a non-unique record if you specified –cu.
2 An error occurred.
Messages
Message: -position "endpos" must follow +position
Cause: You specified a –endpos option either before or without a +startpos option.
Action: Reverse the order of the – and + options on the command line, or provide the
missing +startpos option.
Message: Badly formed sort key position "pos"
Cause: You specified a sort key position pos that did not have a valid syntax.
Action: Check the Sorting Keys subsection of this man page for a description of the syn-
tax for sort key positions.
Message: input file "filename": system error
Cause: See syserror(3).
Action: See syserror(3).
Message: insufficient memory for buffers
Cause: There were not enough free system resources for sort to allocate its buffers.
Action: Free up more resources.
Commands and Utilities 1-563