HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

k
ksh(1) ksh(1)
u Undo the last text modifying command.
U Undo all the text modifying commands performed on the line.
[count]v Returns the command fc -e ${VISUAL:-${EDITOR:-vi}}
count in the
input buffer. If count is omitted, the current line is used.
^L Line feed and print current line. Has effect only in control mode.
^J (New line) Execute the current line, regardless of mode.
^M (Return) Execute the current line, regardless of mode.
# Equivalent to I# followed by Return. Sends the line after inserting a
# in front
of the line and after each newline. Useful for inserting the current command line
in the history list without executing it.
= List the filenames that match the current word if an asterisk were appended to it.
@letter The user’s alias list is searched for an alias by the name
_letter and if an alias of
this name is defined, its value is inserted on the input queue for processing.
EXTERNAL INFLUENCES
Environment Variables
LC_COLLATE determines the collating sequence used in evaluating pattern matching notation for file
name generation.
LC_CTYPE determines the classification of characters as letters, and the characters matched by character
class expressions in pattern matching notation.
If LC_COLLATE or LC_CTYPE is not specified in the environment or is set to the empty string, the value
of LANG is used as a default for each unspecified or empty variable. If LANG
is not specified or is set to the
empty string, a default of "C" (see lang(5)) is used instead of
LANG. If any internationalization variable
contains an invalid setting,
ksh behaves as if all internationalization variables are set to "C". See
environ(5).
KSH_QUOTEMC switches the processing of quoted metacharacters in "
[[ string = pattern ]]" con-
structs. If
KSH_QUOTEMC=true
is defined in the environment, then any part of pattern can be quoted to
cause it to be matched as a string. This usage follows the conventions of dtksh(1). If
KSH_QUOTEMC is
not defined in the environment, then processing follows the traditional Korn shell conventions.
International Code Set Support
Single-byte character code sets are supported.
RETURN VALUE
Errors detected by the shell, such as syntax errors, cause the shell to return a nonzero exit status. Other-
wise, the shell returns the exit status of the last command executed (also see the
exit
command above).
If the shell is being used non-interactively, execution of the shell file is abandoned. Runtime errors
detected by the shell are reported by printing the command or function name and the error condition. If
the line number on which the error occurred is greater than one, the line number is also printed in brackets
(
[]) after the command or function name.
WARNINGS
File descriptors 10 and 54 through 60 are used internally by the Korn Shell. Applications using these and
forking a subshell should not depend upon them surviving in the subshell or its descendants.
If a command which is a tracked alias is executed, and a command with the same name is installed in a
directory in the search path before the directory where the original command was found, the shell contin-
ues to load and execute the original command. Use the -t option of the alias command to correct this
situation.
If you move the current directory or one above it, pwd may not give the correct response. Use the cd
command with a full path name to correct this situation.
Some very old shell scripts contain a caret (ˆ) as a synonym for the pipe character (|). Note however,
ksh does not recognize the caret as a pipe character.
If a command is piped into a shell command, all variables set in the shell command are lost when the com-
mand completes.
HP-UX 11i Version 3: February 2007 23 Hewlett-Packard Company 511