HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

s
sh-posix(1) sh-posix(1)
space if the file is not a directory.
Other Edit Commands
[count]ymotion
y[count]motion
Yank current character through character that motion would move the cursor to and
put them into the delete buffer. The text and cursor are unchanged.
Y Yank from current position to end of line. Equivalent to
y$.
u Undo the last text-modifying command.
U Undo all the text-modifying commands performed on the line.
[count]v Execute the command fc -e ${VISUAL:-${EDITOR:-vi}}
count in the input
buffer. If count is omitted, the current line is used. This executes an editor with the
current line as the input "file". When you exit from the editor, the result is executed.
^L Line feed and print current line.
^J Execute the current line, regardless of mode. (newline)
^M Execute the current line, regardless of mode. (return)
# Insert a # at the beginning of the current line and after each embedded newline, and
execute the line. Useful for inserting the current command line in the history list
without executing it.
= List the file names that match the current word if an asterisk were appended to it.
@letter Search your alias list for an alias with the name _letter (underscore letter). If an alias
of this name is defined, its value is executed as a command sequence on the current
line. This provides a simple macro capability.
EXTERNAL INFLUENCES
Environment Variables
LC_COLLATE determines the collating sequence used in evaluating pattern matching notation for file
name generation. If it is not defined or is empty, it defaults to the value of
LANG.
LC_CTYPE determines the classification of characters as letters, and the characters matched by character
class expressions in pattern matching notation. If it is not defined or is empty, it defaults to the value of
LANG.
If LANG is not defined or is empty, it defaults to C (see lang(5)).
If any internationalization variable contains an invalid value, they all default to
C (see environ(5)).
If
UNIX95 is defined, shell arithmetic evaluators let command, $((...)) and ((
...)) recognizes
interger constants beginning with
0 and 0x (or 0X) as octal and hexadecimal numbers.
International Code Set Support
Single- and multibyte 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. See also the exit special command.
If the shell is being used noninteractively, the 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
Some file descriptors are used internally by the POSIX shell. For HP-UX releases 10.10 and beyond, file
descriptors 24 through 30 are reserved. HP-UX releases 10.00 and 10.01 reserve descriptors 54 through 60.
Applications using these and forking a subshell should not depend upon them surviving in the subshell or
its descendants.
If a command that 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 will con-
tinue 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 com-
mand with a full path name to correct this situation.
Section 1916 Hewlett-Packard Company 25 HP-UX 11i Version 1: September 2005