内に含ま
その他のドキュメント
サポート リソース
| PDF 文書ファイルをダウンロードする
NAME
- alias, unalias - shell built-in functions to create your own pseudonym or shorthand for a command or series of commands
SYNOPSIS
csh
-
alias [ name [ def ] ]
-
unalias pattern
ksh
- .. alias [ -tx ] [ name[ =value ] ] . . .
-
unalias name. . .
DESCRIPTION
csh
-
alias assigns def to the alias name. def is a list of words that may contain escaped historysubstitution metasyntax. name is not allowed to be alias or unalias. If def is omitted, the alias name is displayed along with its current definition. If both name and def are omitted, all aliases are displayed.
-
unalias discards aliases that match (filename substitution) pattern. All aliases may be removed by `unalias * '.
ksh
-
alias with no arguments prints the list of aliases in the form name=value on standard output. An alias is defined for each name whose value is given. A trailing space in value causes the next word to be checked for alias substitution. The -t flag is used to set and list tracked aliases. The value of a tracked alias is the full pathname corresponding to the given name. The value becomes undefined when the value of PATH is reset but the aliases remained tracked. Without the -t flag, for each name in the argument list for which no value is given, the name and value of the alias is printed. The -x flag is used to set or print exported aliases. An exported alias is defined for scripts invoked by name. The exit status is non-zero if a name is given, but no value, and no alias has been defined for the name.
- The aliases given by the list of names may be removed from the alias list with unalias.
- On this man page, ksh(1) commands that are preceded by one or two . (daggers) are treated specially in the following ways:
-
- Variable assignment lists preceding the command remain in effect when the command completes.
- I/O redirections are processed after variable assignments.
- Errors cause a script that contains them to abort.
- Words, following a command preceded by .. that are in the format of a variable assignment, are expanded with the same rules as a variable assignment. This means that tilde substitution is performed after the = sign and word splitting and file name generation are not performed.
SEE ALSO
-
csh(1), ksh(1), shell_builtins(1),
|
|