home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Shells / zsh-3.0.5-MIHS / docs / zsh.info-2 < prev    next >
Encoding:
GNU Info File  |  1997-06-23  |  45.0 KB  |  1,291 lines

  1. This is Info file zsh.info, produced by Makeinfo-1.64 from the input
  2. file ../../zsh-3.0.4/Doc/zsh.texi.
  3.  
  4. This is a texinfo version of the man page for the Z Shell, originally by
  5. Paul Falstad.  It was converted from the `zsh.1' file distributed with
  6. zsh v2.5.0 by Jonathan Hardwick, `jch@cs.cmu.edu' and updated/modified
  7. by Clive Messer, `clive@epos.demon.co.uk' to its present state.
  8.  
  9.    Permission is granted to make and distribute verbatim copies of this
  10. manual provided the copyright notice and this permission notice are
  11. preserved on all copies.
  12.  
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided also
  15. that the entire resulting derived work is distributed under the terms
  16. of a permission notice identical to this one.
  17.  
  18.    Permission is granted to copy and distribute translations of this
  19. manual into another language, under the above conditions for modified
  20. versions.
  21.  
  22. 
  23. File: zsh.info,  Node: Modifiers,  Prev: Word Designators,  Up: History Expansion
  24.  
  25. Modifiers
  26. ---------
  27.  
  28. After the optional word designator, you can add a sequence of one or
  29. more of the following modifiers, each preceded by a `:'.  These
  30. modifiers also work on the result of filename and parameter expansion.
  31.  
  32. `h'
  33.      Remove a trailing pathname component,  leaving the head.
  34.  
  35. `r'
  36.      Remove a trailing suffix of the form `.xxx', leaving the basename.
  37.  
  38. `e'
  39.      Remove all but the suffix.
  40.  
  41. `t'
  42.      Remove all leading pathname components, leaving the tail.
  43.  
  44. `&'
  45.      Repeat the previous substitution.
  46.  
  47. `g'
  48.      Apply the change to the first occurrence of a match in each word,
  49.      by prefixing the above (for example, `g&').
  50.  
  51. `p'
  52.      Print the new command but do not execute it.
  53.  
  54. `q'
  55.      Quote the substituted words, escaping further substitutions.
  56.  
  57. `x'
  58.      Like `q', but break into words at each blank.
  59.  
  60. `l'
  61.      Convert the words to all lowercase.
  62.  
  63. `u'
  64.      Convert the words to all uppercase.
  65.  
  66. `f'
  67.      Repeats the immediately (without a colon) following modifier until
  68.      the resulting word doesn't change any more.  This and the
  69.      following  `F', `w' and `W' modifier only work with parameter and
  70.      filename expansion.
  71.  
  72. `F:EXPR:'
  73.      Like `f', but repeats only `n' times if the expression EXPR
  74.      evaluates to `n'. Any character can be used instead of the `:', if
  75.      any of `(', `[', or `{' is used as the opening delimiter the
  76.      second one has to be `)', `]', or `}' respectively.
  77.  
  78. `w'
  79.      Makes the immediately following modifier work on each word in the
  80.      string.
  81.  
  82. `W:SEP:'
  83.      Like `w' but words are considered to be the parts of the string
  84.      that are separated by SEP.  Any character can be used instead of
  85.      the `:', opening parentheses are handled specially, see above.
  86.  
  87. `s/L/R[/]'
  88.      Substitute R for L.
  89.  
  90. Unless preceded by a `g', the substitution is done only  for the first
  91. string that matches `l'.
  92.  
  93. The left-hand side of substitutions are not regular expressions, but
  94. character strings.  Any character can be used as the delimiter in place
  95. of `/'.  A backslash quotes the delimiter character.  The character
  96. `&', in the right hand side, is replaced by the text from the
  97. left-hand-side.  The `&' can be quoted with a backslash.   A null `l'
  98. uses the previous string either from a `l' or from a contextual scan
  99. string `s' from `!?s'.  You can omit the rightmost delimiter if a
  100. newline immediately follows `r'; the right-most `?' in a context scan
  101. can similarly be omitted.
  102.  
  103. By default, a history reference with no event specification refers to
  104. the same line as the last history reference on that command line,
  105. unless it is the first history reference in a command.  In that case, a
  106. history reference with no event specification always refers to the
  107. previous command.   However, if the option `CSH_JUNKIE_HISTORY' is set,
  108. then history reference with no event specification will always refer to
  109. the previous command.  For example, `!!:1' will always refer to the
  110. first word of the previous command and `!!$' will always refer to the
  111. last word of the previous command.  And with `CSH_JUNKIE_HISTORY' set,
  112. then `!:1' and `!$' will function in the same manner as `!!:1' and
  113. `!!$', respectively.   However, if `CSH_JUNKIE_HISTORY' is unset, then
  114. `!:1' and `!$' will refer to the first and last words respectively, of
  115. the last command referenced on the current command line.  However, if
  116. they are the first history reference on the command line, then they
  117. refer to the previous command.
  118.  
  119. The character sequence `^FOO^BAR' repeats the last command, replacing
  120. the string FOO with the string BAR.
  121.  
  122. If the shell encounters the character sequence `!"' in the input, the
  123. history mechanism is temporarily disabled until the current list is
  124. fully parsed.  The `!"' is removed from the input, and any subsequent
  125. `!' characters have no special significance.
  126.  
  127. A less convenient but more comprehensible form of command history
  128. support is provided by the `fc' builtin (*note Shell Builtin
  129. Commands::.).
  130.  
  131. 
  132. File: zsh.info,  Node: Redirection,  Next: Command Execution,  Prev: Expansion,  Up: Top
  133.  
  134. Redirection
  135. ***********
  136.  
  137. Before a command is executed, its input and output may be redirected.
  138. The following may appear anywhere in a simple command or may precede or
  139. follow a complex command.  Substitution occurs before WORD or DIGIT is
  140. used except as noted below.  If the result of substitution on WORD
  141. produces more than one filename, redirection occurs for each separate
  142. filename in turn.
  143.  
  144. `<WORD'
  145.      Open file WORD as standard input.
  146.  
  147. `<>WORD'
  148.      Open file WORD for reading and writing as standard input.  If the
  149.      file does not exist then it is created.
  150.  
  151. `>WORD'
  152.      Open file WORD as standard output.  If the file does not exist
  153.      then it is created.  If the file exists, and the `CLOBBER' option
  154.      is unset, this causes an error; otherwise, it is truncated to zero
  155.      length.
  156.  
  157. `>|WORD'
  158. `>!WORD'
  159.      Same as `>', except that the file is truncated to zero length if it
  160.      exists, even if `CLOBBER' is unset.
  161.  
  162. `>>WORD'
  163.      Open file WORD as standard output.  If the file exists then output
  164.      is appended to it.  If the file does not exist, and the `CLOBBER'
  165.      option is unset, this causes an error; otherwise, the file is
  166.      created.
  167.  
  168. `>>|WORD'
  169. `>>!WORD'
  170.      Same as `>>', except that the file is created if it does not exist,
  171.      even if `CLOBBER' is unset.
  172.  
  173. `<<[-]WORD'
  174.      The shell input is read up to a line that is the same as WORD, or
  175.      to an end-of-file.  No parameter substitution, command
  176.      substitution or filename generation is performed on WORD.  The
  177.      resulting document, called a "here-document", becomes the standard
  178.      input.  If any character of WORD is quoted with single or double
  179.      quotes or a `\', no interpretation is placed upon the characters
  180.      of the document.  Otherwise, parameter and command substitution
  181.      occurs, `\' followed by a newline is removed, and `\' must be used
  182.      to quote the characters `\', `$', ``', and the first character of
  183.      WORD.  If `<<-' is used, then all leading tabs are stripped from
  184.      WORD and from the document.
  185.  
  186. `<<<WORD'
  187.      Perform shell expansion on WORD and pass the result to standard
  188.      input.
  189.  
  190. `<&DIGIT'
  191.      The standard input is duplicated from file descriptor DIGIT (see
  192.      `dup(2)').  Similarly for standard output using `>&DIGIT'.
  193.  
  194. `>&WORD'
  195.      Same as `>WORD 2>&1'.
  196.  
  197. `>>&WORD'
  198.      Same as `>>WORD 2>&1'.
  199.  
  200. `<&-'
  201.      Close the standard input.
  202.  
  203. `>&-'
  204.      Close the standard output.
  205.  
  206. `<&p'
  207.      The input from the coprocess is moved to the standard input.
  208.  
  209. `>&p'
  210.      The output to the coprocess is moved to the standard output.
  211.  
  212. If one of the above is preceded by a digit, then the file descriptor
  213. referred to is that specified by the digit (instead of the default 0 or
  214. 1).  The order in which redirections are specified is significant.  The
  215. shell evaluates each redirection in terms of the (FILE DESCRIPTOR,
  216. FILE) association at the time of evaluation.  For example:
  217.  
  218.    `... 1>FNAME 2>&1'
  219.  
  220. first associates file descriptor 1 with file FNAME.  It then associates
  221. file descriptor 2 with the file associated with file descriptor 1 (that
  222. is, FNAME).  If the order of redirections were reversed, file
  223. descriptor 2 would be associated with the terminal (assuming file
  224. descriptor 1 had been) and then file descriptor 1 would be associated
  225. with file FNAME.
  226.  
  227. If the user tries to open a file descriptor for writing more than once,
  228. the shell opens the file descriptor as a pipe to a process that copies
  229. its input to all the specified outputs, similar to `tee(1)', provided
  230. the `MULTIOS' option is set.  Thus:
  231.  
  232.    `date >foo >bar'
  233.  
  234. writes the date to two files, named `foo' and `bar'.  Note that a pipe
  235. is an implicit indirection; thus
  236.  
  237.    `date >foo | cat'
  238.  
  239. writes the date to the file `foo', and also pipes it to `cat'.
  240.  
  241. If the `MULTIOS' option is set, the word after a redirection operator
  242. is also subjected to filename generation (globbing).  Thus
  243.  
  244.    `: > *'
  245.  
  246. will truncate all files in the current directory, assuming there's at
  247. least one.  (Without the `MULTIOS' option, it would create an empty
  248. file called `*'.)
  249.  
  250. If the user tries to open a file descriptor for reading more than once,
  251. the shell opens the file descriptor as a pipe to a process that copies
  252. all the specified inputs to its output in the order specified, similar
  253. to `cat(1)', provided the `MULTIOS' option is set.  Thus
  254.  
  255.    `sort <foo <fubar'
  256.  
  257. or even
  258.  
  259.    `sort <f{oo,ubar}'
  260.  
  261. is equivalent to `cat foo fubar | sort'.  Similarly, you can do
  262.  
  263.    `echo exit 0 >> *.sh'
  264.  
  265.    Note that a pipe is an implicit indirection; thus
  266.  
  267.    `cat bar | sort <foo'
  268.  
  269. is equivalent to `cat bar foo | sort' (note the order of the inputs).
  270.  
  271. If the `MULTIOS' option is unset, each redirection replaces the previous
  272. redirection for that file descriptor.  However, all files redirected to
  273. are actually opened, so
  274.  
  275.    `echo foo > bar > baz'
  276.  
  277.    when `MULTIOS' is unset will truncate `bar', and write `foo' into
  278. `baz'.
  279.  
  280. If a simple command consists of one or more redirection operators and
  281. zero or more parameter assignments, but no command name, the command
  282. `cat' is assumed.  Thus
  283.  
  284.    `< file'
  285.  
  286. prints the contents of `file'.
  287.  
  288. If a command is followed by `&' and job control is not active, then the
  289. default standard input for the command is the empty file `/dev/null'.
  290. Otherwise, the environment for the execution of a command contains the
  291. file descriptors of the invoking shell as modified by input/output
  292. specifications.
  293.  
  294. 
  295. File: zsh.info,  Node: Command Execution,  Next: Functions,  Prev: Redirection,  Up: Top
  296.  
  297. Command Execution
  298. *****************
  299.  
  300. If a command name contains no slashes, the shell attempts to locate it.
  301. If there exists a shell function by that name, the function is invoked
  302. as described below (*note Functions::.).  If there exists a shell
  303. builtin by that name, the builtin is invoked.
  304.  
  305. Otherwise, the shell searches each element of `path' for a directory
  306. containing an executable file by that name.  If the search is
  307. unsuccessful, the shell prints an error message and returns a nonzero
  308. exit status.
  309.  
  310. If execution fails because the file is not in executable format, and the
  311. file is not a directory, it is assumed to be a shell script.  `/bin/sh'
  312. is spawned to execute it.  If the program is a file beginning with
  313. `#!', the remainder of the first line specifies an interpreter for the
  314. program.  The shell will execute the specified interpreter on operating
  315. systems that do not handle this executable format in the kernel.
  316.  
  317. 
  318. File: zsh.info,  Node: Functions,  Next: Jobs & Signals,  Prev: Command Execution,  Up: Top
  319.  
  320. Functions
  321. *********
  322.  
  323. The `function' reserved word is used to define shell functions.  Shell
  324. functions are read in and stored internally.  Alias names are resolved
  325. when the function is read.  Functions are executed like commands with
  326. the arguments passed as positional parameters.
  327.  
  328. Functions execute in the same process as the caller and share all files
  329. and the present working directory with the caller.  A trap on `EXIT'
  330. set inside a function is executed after the function completes in the
  331. environment of the caller.
  332.  
  333. The `return' builtin is used to return from function calls.
  334.  
  335. Function identifiers can be listed with the `functions' builtin.
  336. Functions can be undefined with the `unfunction' builtin.
  337.  
  338. The following functions, if defined, have special meaning to the shell:
  339.  
  340. `chpwd'
  341.      Executed whenever the current working directory is changed.
  342.  
  343. `precmd'
  344.      Executed before each prompt.
  345.  
  346. `periodic'
  347.      If the parameter `PERIOD' is set, this function is executed every
  348.      `PERIOD' seconds, just before a prompt.
  349.  
  350. `TRAPXXX'
  351.      If defined and non-null, this function will be executed whenever
  352.      the shell catches a signal `SIGXXX', where XXX is a signal name as
  353.      specified for the `kill' builtin (*note Shell Builtin
  354.      Commands::.).  In addition, `TRAPZERR' is executed whenever a
  355.      command has a non-zero exit status, `TRAPDEBUG' is executed after
  356.      each command, and `TRAPEXIT' is executed when the shell exits, or
  357.      when the current function exits if defined inside a function.  If
  358.      a function of this form is defined and null, the shell and
  359.      processes spawned by it will ignore `SIGXXX'.
  360.  
  361. 
  362. File: zsh.info,  Node: Jobs & Signals,  Next: Arithmetic Evaluation,  Prev: Functions,  Up: Top
  363.  
  364. Jobs & Signals
  365. **************
  366.  
  367. If the `MONITOR' option is set, an interactive shell associates a "job"
  368. with each pipeline.  It keeps a table of current jobs, printed by the
  369. `jobs' command, and assigns them small integer numbers.  When a job is
  370. started asynchronously with `&', the shell prints a line which looks
  371. like:
  372.  
  373.    `[1] 1234'
  374.  
  375. indicating that the job which was started asynchronously was job number
  376. 1 and had one (top-level) process, whose process id was 1234.
  377.  
  378. If a job is started with `&|' or `&!', then that job is immediately
  379. disowned.  After startup, it does not have a place in the job table,
  380. and is not subject to the job control features described here.
  381.  
  382. If you are running a job and wish to do something else you may hit the
  383. key `^Z' (control-Z) which sends a `TSTP' signal to the current job.
  384. The shell will then normally indicate that the job has been
  385. "suspended", and print another prompt.  You can then manipulate the
  386. state of this job, putting it into the background with the `bg'
  387. command, or run some other commands and then eventually bring the job
  388. back into the foreground with the foreground command `fg'.  A `^Z'
  389. takes effect immediately and is like an interrupt in that pending
  390. output and unread input are discarded when it is typed.
  391.  
  392. A job being run in the background will suspend if it tries to read from
  393. the terminal.  Background jobs are normally allowed to produce output,
  394. but this can be disabled by giving the command `stty tostop'.  If you
  395. set this tty option, then background jobs will suspend when they try to
  396. produce output, like they do when they try to read input.
  397.  
  398. There are several ways to refer to jobs in the shell.  A job can be
  399. referred to by the process id of any process of the job or by one of the
  400. following:
  401.  
  402. `%NUMBER'
  403.      The job with the given number.
  404.  
  405. `%STRING'
  406.      Any job whose command line begins with STRING.
  407.  
  408. `%?STRING'
  409.      Any job whose command line contains STRING.
  410.  
  411. `%%'
  412.      Current job.
  413.  
  414. `%+'
  415.      Equivalent to `%%'.
  416.  
  417. `%-'
  418.      Previous job.
  419.  
  420. The shell learns immediately whenever a process changes state.  It
  421. normally informs you whenever a job becomes blocked so that no further
  422. progress is possible.  If `notify' is not set, it waits until just
  423. before it prints a prompt before it informs you.
  424.  
  425. When the monitor mode is on, each background job that completes triggers
  426. any trap set for `CHLD'.
  427.  
  428. When you try to leave the shell while jobs are running or suspended, you
  429. will be warned that `You have suspended (running) jobs'.  You may use
  430. the `jobs' command to see what they are.  If you do this or immediately
  431. try to exit again, the shell will not warn you a second time; the
  432. suspended jobs will be terminated, and the running jobs will be sent a
  433. `SIGHUP' signal.  To avoid having the shell terminate the running jobs,
  434. either use the `nohup(1)' command or the `disown' builtin (*note Shell
  435. Builtin Commands::.).
  436.  
  437. The `INT' and `QUIT' signals for an invoked command are ignored if the
  438. command is followed by `&' and the job `monitor' option is not active.
  439. Otherwise, signals have the values inherited by the shell from its
  440. parent (but *Note Functions::, for the `TRAPXXX' special functions).
  441.  
  442. 
  443. File: zsh.info,  Node: Arithmetic Evaluation,  Next: Conditional Expressions,  Prev: Jobs & Signals,  Up: Top
  444.  
  445. Arithmetic Evaluation
  446. *********************
  447.  
  448. An ability to perform integer arithmetic is provided with the builtin
  449. `let'.  Evaluations are performed using *long* arithmetic.  A leading
  450. `0x' or `0X' denotes hexadecimal.  Otherwise, numbers are of the form
  451. `[BASE#]N' where BASE is a decimal number between two and thirty-six
  452. representing the arithmetic base and N is a number in that base (for
  453. example, `16#ff' is 255 in hexadecimal).  If BASE is omitted then base
  454. 10 is used.  For backwards compatibility the form `[16]ff' is also
  455. accepted.
  456.  
  457. An arithmetic expression uses nearly the same syntax, precedence, and
  458. associativity of expressions in C.  The following operators are
  459. supported (listed in decreasing order of precedence):
  460.  
  461. `+ - ! ~ ++ --'
  462.      Unary plus/minus, logical NOT, complement, {pre,post}{in,de}crement
  463.  
  464. `<< >>'
  465.      Bitwise shift left, right.
  466.  
  467. `&'
  468.      Bitwise AND
  469.  
  470. `^'
  471.      Bitwise XOR
  472.  
  473. `|'
  474.      Bitwise OR
  475.  
  476. `**'
  477.      Exponentiation
  478.  
  479. `* / %'
  480.      Multiplication, division, modulus (remainder)
  481.  
  482. `+ -'
  483.      Addition, subtraction
  484.  
  485. `< > <= >='
  486.      Comparison
  487.  
  488. `== !='
  489.      Equality and inequality
  490.  
  491. `&&'
  492.      Logical AND
  493.  
  494. `|| ^^'
  495.      Logical OR, XOR
  496.  
  497. `? :'
  498.      Ternary operator
  499.  
  500. `= += -= *= /= %= &= ^= |= <<= >>= &&= ||= ^^= **='
  501.      Assignment
  502.  
  503. `,'
  504.      Comma operator
  505.  
  506. The operators `&&', `||', `&&=', and `||=' are short-circuiting, and
  507. only one of the latter two expressions in a ternary operator is
  508. evaluated.  Note the precedence of the bitwise AND, OR, and XOR
  509. operators.
  510.  
  511. An expression of the form `#\x' where `x' is any character gives the
  512. ASCII value of this character.  An expression of the form `#foo' gives
  513. the ASCII value of the first character of the value of the parameter
  514. `foo'.
  515.  
  516. Named parameters and subscripted arrays can be referenced by name
  517. within an arithmetic expression without using the parameter
  518. substitution syntax.
  519.  
  520. An internal integer representation of a named parameter can be specified
  521. with the `integer' builtin.  Arithmetic evaluation is performed on the
  522. value of each assignment to a named parameter declared integer in this
  523. manner.
  524.  
  525. Since many of the arithmetic operators require quoting, an alternative
  526. form of the `let' command is provided.  For any command which begins
  527. with a `((', all the characters until a matching `))' are treated as a
  528. quoted expression.  More precisely, `(( ... ))' is equivalent to `let
  529. "..."'.
  530.  
  531. 
  532. File: zsh.info,  Node: Conditional Expressions,  Next: Compatibility,  Prev: Arithmetic Evaluation,  Up: Top
  533.  
  534. Conditional Expressions
  535. ***********************
  536.  
  537. A "conditional expression" is used with the `[[' compound command to
  538. test attributes of files and to compare strings.  Each expression can
  539. be constructed from one or more of the following unary or binary
  540. expressions:
  541.  
  542. `-a FILE'
  543.      True if FILE exists.
  544.  
  545. `-b FILE'
  546.      True if FILE exists and is a block special file.
  547.  
  548. `-c FILE'
  549.      True if FILE exists and is a character special file.
  550.  
  551. `-d FILE'
  552.      True if FILE exists and is a directory.
  553.  
  554. `-e FILE'
  555.      True if FILE exists.
  556.  
  557. `-f FILE'
  558.      True if FILE exists and is an ordinary file.
  559.  
  560. `-g FILE'
  561.      True if FILE exists and has its setgid bit set.
  562.  
  563. `-h FILE'
  564.      True if FILE exists and is a symbolic link.
  565.  
  566. `-k FILE'
  567.      True if FILE exists and has its sticky bit set.
  568.  
  569. `-n STRING'
  570.      True if length of STRING is non-zero.
  571.  
  572. `-o OPTION'
  573.      True if option named OPTION is on.  OPTION may be a single
  574.      character, in which case it is a single letter option name.  *Note
  575.      Specifying Options::.
  576.  
  577. `-p FILE'
  578.      True if FILE exists and is a FIFO special file or a pipe.
  579.  
  580. `-r FILE'
  581.      True if FILE exists and is readable by the current process.
  582.  
  583. `-s FILE'
  584.      True if FILE exists and has size greater than zero.
  585.  
  586. `-t FD'
  587.      True if file descriptor number FD is open and associated with a
  588.      terminal device (note: FD is not optional).
  589.  
  590. `-u FILE'
  591.      True if FILE exists and has its setuid bit set.
  592.  
  593. `-w FILE'
  594.      True if FILE exists and is writable by current process.
  595.  
  596. `-x FILE'
  597.      True if FILE exists and is executable by current process.  If FILE
  598.      exists and is a directory, then the current process has permission
  599.      to search in the directory.
  600.  
  601. `-z STRING'
  602.      True if length of STRING is zero.
  603.  
  604. `-L FILE'
  605.      True if FILE exists and is a symbolic link.
  606.  
  607. `-O FILE'
  608.      True if FILE exists and is owned by the effective user id of this
  609.      process.
  610.  
  611. `-G FILE'
  612.      True if FILE exists and its group matches the effective group id
  613.      of this process.
  614.  
  615. `-S FILE'
  616.      True if FILE exists and is a socket.
  617.  
  618. `-N FILE'
  619.      True if FILE exists and its access time is not newer than its
  620.      modification time.
  621.  
  622. `FILE1 -nt FILE2'
  623.      True if FILE1 exists and is newer than FILE2.
  624.  
  625. `FILE1 -ot FILE2'
  626.      True if FILE1 exists and is older than FILE2.
  627.  
  628. `FILE1 -ef FILE2'
  629.      True if FILE1 and FILE2 exist and refer to the same file.
  630.  
  631. `STRING == PATTERN'
  632. `STRING = PATTERN'
  633.      True if STRING matches PATTERN.  The first form is the preferred
  634.      one.  The other form is for backward compatibility and should be
  635.      considered obsolete.
  636.  
  637. `STRING != PATTERN'
  638.      True if STRING does not match PATTERN.
  639.  
  640. `STRING1 < STRING2'
  641.      True if STRING1 comes before STRING2 based on ASCII value of their
  642.      characters.
  643.  
  644. `STRING1 > STRING2'
  645.      True if STRING1 comes after STRING2 based on ASCII value of their
  646.      characters.
  647.  
  648. `EXP1 -eq EXP2'
  649.      True if EXP1 is equal to EXP2.
  650.  
  651. `EXP1 -ne EXP2'
  652.      True if EXP1 is not equal to EXP2.
  653.  
  654. `EXP1 -lt EXP2'
  655.      True if EXP1 is less than EXP2.
  656.  
  657. `EXP1 -gt EXP2'
  658.      True if EXP1 is greater than EXP2.
  659.  
  660. `EXP1 -le EXP2'
  661.      True if EXP1 is less than or equal to EXP2.
  662.  
  663. `EXP1 -ge EXP2'
  664.      True if EXP1 is greater than or equal to EXP2.
  665.  
  666. `( EXP )'
  667.      True if EXP is true.
  668.  
  669. `! EXP'
  670.      True if EXP is false.
  671.  
  672. `EXP1 && EXP2'
  673.      True if EXP1 and EXP2 are both true.
  674.  
  675. `EXP1 || EXP2'
  676.      True if either EXP1 or EXP2 is true.
  677.  
  678. In each of the above expressions, if FILE is of the form `/dev/fd/N',
  679. where N is an integer, then the test is applied to the open file whose
  680. descriptor number is N, even if the underlying system does not support
  681. the `/dev/fd' directory.
  682.  
  683. 
  684. File: zsh.info,  Node: Compatibility,  Next: Zsh Line Editor,  Prev: Conditional Expressions,  Up: Top
  685.  
  686. Compatibility
  687. *************
  688.  
  689. `zsh' tries to emulate `sh' or `ksh' when it is invoked as `sh' or
  690. `ksh' respectively.  In this mode the following parameters are not
  691. special: `ARGC', `argv', `cdpath', `fignore', `fpath', `HISTCHARS',
  692. `mailpath', `MANPATH', `manpath', `path', `prompt', `PROMPT',
  693. `PROMPT2', `PROMPT3', `PROMPT4', `psvar', `status', `watch'.
  694.  
  695. The usual `zsh' startup/shutdown scripts are not executed.  Login shells
  696. source `/etc/profile' followed by `$HOME/.profile'.  If the `ENV'
  697. environment variable is set on invocation, `$ENV' is sourced after the
  698. profile scripts.  The value of `ENV' is subjected to "parameter
  699. expansion", "command substitution", and "arithmetic expansion" before
  700. being interpreted as a pathname.  Note that the `PRIVILEGED' option
  701. also affects the execution of startup files.  *Note Options::, for more
  702. details.
  703.  
  704. The following options are set if the shell is invoked as `sh' or `ksh':
  705. `NO_BAD_PATTERN', `NO_BANG_HIST', `NO_BG_NICE', `NO_EQUALS',
  706. `NO_FUNCTION_ARGZERO', `GLOB_SUBST', `NO_HUP', `INTERACTIVE_COMMENTS',
  707. `KSH_ARRAYS', `NO_MULTIOS', `NO_NOMATCH', `RM_STAR_SILENT',
  708. `POSIX_BUILTINS', `SH_FILE_EXPANSION', `SH_GLOB', `SH_OPTION_LETTERS',
  709. `SH_WORD_SPLIT'.  Additionally the `KSH_OPTION_PRINT', `LOCAL_OPTIONS',
  710. `PROMPT_SUBST' and `SINGLE_LINE_ZLE' options are set if `zsh' is
  711. invoked as `ksh' and the `IGNORE_BRACES' and `BSD_ECHO' options are set
  712. if `zsh' is invoked as `sh'.
  713.  
  714. 
  715. File: zsh.info,  Node: Zsh Line Editor,  Next: Parameters,  Prev: Compatibility,  Up: Top
  716.  
  717. Zsh Line Editor
  718. ***************
  719.  
  720. If the `ZLE' option is set (it is by default) and the shell input is
  721. attached to the terminal, the user is allowed to edit command lines.
  722.  
  723. There are two display modes.  The first, multi-line mode, is the
  724. default.  It only works if the `TERM' parameter is set to a valid
  725. terminal type that can move the cursor up.  The second, single line
  726. mode, is used if `TERM' is invalid or incapable of moving the cursor
  727. up, or if the `SINGLE_LINE_ZLE' option is set.  This mode is similar to
  728. ksh, and uses no termcap sequences.  If `TERM' is `emacs', the `ZLE'
  729. option will be unset by the shell.
  730.  
  731. Bindings
  732. ========
  733.  
  734. Command bindings may be set using the `bindkey' builtin.  There are two
  735. keymaps; the main keymap and the alternate keymap.  The alternate
  736. keymap is bound to vi command mode.  The main keymap is bound to emacs
  737. mode by default.  To bind the main keymap to vi insert mode, use
  738. `bindkey -v'.  However, if either of the `VISUAL' or `EDITOR'
  739. environment variables contains the string `vi' when the shell starts up
  740. the main keymap will be bound to vi insert mode by default.
  741.  
  742. The following is a list of all the key commands and their default
  743. bindings in emacs mode, vi command mode and vi insert mode.
  744.  
  745. * Menu:
  746.  
  747. * Movement::
  748. * History Control::
  749. * Modifying Text::
  750. * Arguments::
  751. * Completion::
  752. * Miscellaneous::
  753.  
  754. 
  755. File: zsh.info,  Node: Movement,  Next: History Control,  Up: Zsh Line Editor
  756.  
  757. Movement
  758. ========
  759.  
  760. `vi-backward-blank-word (unbound) (`B') (unbound)'
  761.      Move backward one word, where a word is defined as a series of
  762.      non-blank characters.
  763.  
  764. `backward-char (`^B' `ESC-[D') (unbound)'
  765.      Move backward one character.
  766.  
  767. `vi-backward-char (unbound) (`^H' `h' `^?') (unbound)'
  768.      Move backward one character, without changing lines.
  769.  
  770. `backward-word (`ESC-B' `ESC-b') (unbound) (unbound)'
  771.      Move to the beginning of the previous word.
  772.  
  773. `emacs-backward-word'
  774.      Move to the beginning of the previous word.
  775.  
  776. `vi-backward-word (unbound) (`b') (unbound)'
  777.      Move to the beginning of the previous word, vi-style.
  778.  
  779. `beginning-of-line (`^A') (unbound) (unbound)'
  780.      Move to the beginning of the line.  If already at the beginning of
  781.      the line, move to the beginning of the previous line, if any.
  782.  
  783. `vi-beginning-of-line'
  784.      Move to the beginning of the line, without changing lines.
  785.  
  786. `end-of-line (`^E') (unbound) (unbound)'
  787.      Move to the end of the line.  If already at the end of the line,
  788.      move to the end of the next line, if any.
  789.  
  790. `vi-end-of-line (unbound) (`$') (unbound)'
  791.      Move to the end of the line.  If an argument is given to this
  792.      command, the cursor will be moved to the end of the line (argument
  793.      - 1) lines down.
  794.  
  795. `vi-forward-blank-word (unbound) (`W') (unbound)'
  796.      Move forward one word, where a word is defined as a series of
  797.      non-blank characters.
  798.  
  799. `vi-forward-blank-word-end (unbound) (`E') (unbound)'
  800.      Move to the end of the current word, or, if at the end of the
  801.      current word, to the end of the next word, where a word is defined
  802.      as a series of non-blank characters.
  803.  
  804. `forward-char (`^F' `ESC-[C') (unbound) (unbound)'
  805.      Move forward one character.
  806.  
  807. `vi-forward-char (unbound) (SPACE `l') (unbound)'
  808.      Move forward one character.
  809.  
  810. `vi-find-next-char (`^X^F') (`f') (unbound)'
  811.      Read a character from the keyboard, and move to the next
  812.      occurrence of it in the line.
  813.  
  814. `vi-find-next-char-skip (unbound) (`t') (unbound)'
  815.      Read a character from the keyboard, and move to the position just
  816.      before the next occurrence of it in the line.
  817.  
  818. `vi-find-prev-char (unbound) (`F') (unbound)'
  819.      Read a character from the keyboard, and move to the previous
  820.      occurrence of it in the line.
  821.  
  822. `vi-find-prev-char-skip (unbound) (`T') (unbound)'
  823.      Read a character from the keyboard, and move to the position just
  824.      after the previous occurrence of it in the line.
  825.  
  826. `vi-first-non-blank (unbound) (`^') (unbound)'
  827.      Move to the first non-blank character in the line.
  828.  
  829. `vi-forward-word (unbound) (`w') (unbound)'
  830.      Move forward one word, vi-style.
  831.  
  832. `forward-word (`ESC-F' `ESC-f') (unbound) (unbound)'
  833.      Move to the beginning of the next word.  The editor's idea of a
  834.      word is specified with the `WORDCHARS' parameter.
  835.  
  836. `emacs-forward-word'
  837.      Move to the end of the next word.
  838.  
  839. `vi-forward-word-end (unbound) (`e') (unbound)'
  840.      Move to the end of the next word.
  841.  
  842. `vi-goto-column (`ESC-|') (`|') (unbound)'
  843.      Move to the column specified by the numeric argument.
  844.  
  845. `vi-goto-mark (unbound) (``') (unbound)'
  846.      Move to the specified mark.
  847.  
  848. `vi-goto-mark-line (unbound) (`'') (unbound)'
  849.      Move to the beginning of the line containing the specified mark.
  850.  
  851. `vi-repeat-find (unbound) (`;') (unbound)'
  852.      Repeat the last `vi-find' command.
  853.  
  854. `vi-rev-repeat-find (unbound) (`,') (unbound)'
  855.      Repeat the last `vi-find' command in the opposite direction.
  856.  
  857. 
  858. File: zsh.info,  Node: History Control,  Next: Modifying Text,  Prev: Movement,  Up: Zsh Line Editor
  859.  
  860. History Control
  861. ===============
  862.  
  863. `beginning-of-buffer-or-history (`ESC-<') (unbound) (unbound)'
  864.      Move to the beginning of the buffer, or if already there, move to
  865.      the first event in the history list.
  866.  
  867. `beginning-of-line-hist'
  868.      Move to the beginning of the line.  If already at the beginning of
  869.      the buffer, move to the previous history line.
  870.  
  871. `beginning-of-history'
  872.      Move to the first event in the history list.
  873.  
  874. `down-line-or-history (`^N' `ESC-[B') (`j') (unbound)'
  875.      Move down a line in the buffer, or if already at the bottom line,
  876.      move to the next event in the history list.
  877.  
  878. `vi-down-line-or-history (unbound) (`+') (unbound)'
  879.      Move down a line in the buffer, or if already at the bottom line,
  880.      move to the next event in the history list.  Then move to the
  881.      first non-blank character on the line.
  882.  
  883. `down-line-or-search'
  884.      Move down a line in the buffer, or if already at the bottom line,
  885.      search forward in the history for a line beginning with the first
  886.      word in the buffer.
  887.  
  888. `down-history (unbound) (`^N') (unbound)'
  889.      Move to the next event in the history list.
  890.  
  891. `history-beginning-search-backward'
  892.      Search backward in the history for a line beginning with the
  893.      current line up to the cursor.  This leaves the cursor in its
  894.      original position.
  895.  
  896. `end-of-buffer-or-history (`ESC->') (unbound) (unbound)'
  897.      Move to the end of the buffer, or if already there, move to the
  898.      last event in the history list.
  899.  
  900. `end-of-line-hist'
  901.      Move to the end of the line.  If already at the end of the buffer,
  902.      move to the next history line.
  903.  
  904. `end-of-history'
  905.      Move to the last event in the history list.
  906.  
  907. `vi-fetch-history (unbound) (`G') (unbound)'
  908.      Fetch the history line specified by the numeric argument.  This
  909.      defaults to the current history line (i.e. the one that isn't
  910.      history yet).
  911.  
  912. `history-incremental-search-backward (`^R' `^Xr') (unbound) (unbound)'
  913.      Search backward incrementally for a specified string.  The string
  914.      may begin with `^' to anchor the search to the beginning of the
  915.      line.  A restricted set of editing functions is available in the
  916.      mini-buffer.  An interrupt signal, as defined by the stty setting,
  917.      will stop the search and go back to the original line.  An
  918.      undefined key will have the same effect.  The supported functions
  919.      are: `backward-delete-char', `vi-backward-delete-character',
  920.      `clearscreen', `redisplay', `quoted-insert', `vi-quoted-insert',
  921.      `accept-and-hold', `accept-and-infer-next-history', `accept-line'
  922.      and `accept-line-and-down-history'; `magic-space' just inserts a
  923.      space.  `vi-cmd-mode' toggles between the main and alternate key
  924.      bindings; the main key bindings (insert mode) will be selected
  925.      initially.  Any string that is bound to an out-string (via
  926.      `bindkey -s') will behave as if out-string were typed directly.
  927.      Typing the binding of `history-incremental-search-backward' will
  928.      get the next occurrence of the contents of the mini-buffer.
  929.      Typing the binding of `history-incremental-search-forward' inverts
  930.      the sense of the search.  The direction of the search is indicated
  931.      in the mini-buffer.  Any single character that is not bound to one
  932.      of the above functions, or `self-insert' or `self-insert-unmeta'
  933.      will have the same effect but the function will be executed.
  934.  
  935. `history-incremental-search-forward (`^S' `^Xs') (unbound) (unbound)'
  936.      Search forward incrementally for a specified string.  The string
  937.      may begin with `^' to anchor the search to the beginning of the
  938.      line.  The functions available in the mini-buffer are the same as
  939.      for `history-incremental-search-backward'.
  940.  
  941. `history-search-backward (`ESC-P' `ESC-p') (unbound) (unbound)'
  942.      Search backward in the history for a line beginning with the first
  943.      word in the buffer.
  944.  
  945. `vi-history-search-backward (unbound) (`/') (unbound)'
  946.      Search backward in the history for a specified string.  The string
  947.      may begin with `^' to anchor the search to the beginning of the
  948.      line.  A restricted set of editing functions is available in the
  949.      mini-buffer.  An interrupt signal, as defined by the stty setting,
  950.      will stop the search.  The functions available in the mini-buffer
  951.      are: `accept-line', `vi-cmd-mode' (treated the same as
  952.      `acceptline'), `backward-delete-char', `vi-backward-delete-char',
  953.      `backward-kill-word', `vi-backward-kill-word', `clear-screen',
  954.      `redisplay', `magic-space' (treated as a space), `quoted-insert'
  955.      and `vi-quoted-insert'.  Any string that is not bound to an
  956.      out-string (via `bindkey -s') will behave as if out-string were
  957.      typed directly. Any other character that is not bound to
  958.      `self-insert' or `self-insert-unmeta' will beep and be ignored.  If
  959.      the function is called from vi command mode, the bindings of the
  960.      current insert mode will be used.
  961.  
  962. `history-search-forward (`ESC-N' `ESC-n') (unbound) (unbound)'
  963.      Search forward in the history for a line beginning with the first
  964.      word in the buffer.
  965.  
  966. `vi-history-search-forward (unbound) (`?') (unbound)'
  967.      Search forward in the history for a specified string.  The string
  968.      may begin with `^' to anchor the search to the beginning of the
  969.      line.  The functions available in the mini-buffer are the same as
  970.      for `vi-history-search-backward'.
  971.  
  972. `infer-next-history (`^X^N') (unbound) (unbound)'
  973.      Search in the history for a line matching the current one and
  974.      fetch the event following it.
  975.  
  976. `insert-last-word (`ESC-_' `ESC-.') (unbound) (unbound)'
  977.      Insert the last word from the previous history event at the cursor
  978.      position.  If a positive numeric argument is given, insert that
  979.      word from the end of the previous history event.  If the argument
  980.      is zero or negative insert that word from the left (zero inserts
  981.      the previous command word).
  982.  
  983. `vi-repeat-search (unbound) (`n') (unbound)'
  984.      Repeat the last vi history search.
  985.  
  986. `vi-rev-repeat-search (unbound) (`N') (unbound)'
  987.      Repeat the last vi history search, but in reverse.
  988.  
  989. `up-line-or-history (`^P' `ESC-[A') (`k') (unbound)'
  990.      Move up a line in the buffer, or if already at the top line, move
  991.      to the previous event in the history list.
  992.  
  993. `up-line-or-search'
  994.      Move up a line in the buffer, or if already at the top line, search
  995.      backward in the history for a line beginning with the first word
  996.      in the buffer.
  997.  
  998. `up-history (unbound) (`^P') (unbound)'
  999.      Move to the previous event in the history list.
  1000.  
  1001. `history-beginning-search-forward'
  1002.      Search forward in the history for a line beginning with the
  1003.      current line up to the cursor.  This leaves the cursor at its
  1004.      original position.
  1005.  
  1006. 
  1007. File: zsh.info,  Node: Modifying Text,  Next: Arguments,  Prev: History Control,  Up: Zsh Line Editor
  1008.  
  1009. Modifying Text
  1010. ==============
  1011.  
  1012. `vi-add-eol (unbound) (`A') (unbound)'
  1013.      Move to the end of the line and enter insert mode.
  1014.  
  1015. `vi-add-next (unbound) (`a') (unbound)'
  1016.      Enter insert mode after the current cursor position, without
  1017.      changing lines.
  1018.  
  1019. `backward-delete-char (`^H' `^?') (unbound) (unbound)'
  1020.      Delete the character behind the cursor.
  1021.  
  1022. `vi-backward-delete-char (unbound) (`X') (`^H')'
  1023.      Delete the character behind the cursor, without changing lines.
  1024.      If in insert mode this won't delete past the point where insert
  1025.      mode was last entered.
  1026.  
  1027. `backward-delete-word'
  1028.      Delete the word behind the cursor.
  1029.  
  1030. `backward-kill-line'
  1031.      Kill from the beginning of the line to the cursor position.
  1032.  
  1033. `backward-kill-word (`^W' `ESC-^H' `ESC-^?') (unbound) (unbound)'
  1034.      Kill the word behind the cursor.
  1035.  
  1036. `vi-backward-kill-word (unbound) (unbound) (`^W')'
  1037.      Kill the word behind the cursor, without going past the point
  1038.      where insert mode was last entered.
  1039.  
  1040. `capitalize-word (`ESC-C' `ESC-c') (unbound) (unbound)'
  1041.      Capitalize the current word and move past it.
  1042.  
  1043. `vi-change (unbound) (`c') (unbound)'
  1044.      Read a movement command from the keyboard, and kill from the cursor
  1045.      position to the endpoint of the movement.  Then enter insert mode.
  1046.      If the command is `vi-change', kill the current line.
  1047.  
  1048. `vi-change-eol (unbound) (`C') (unbound)'
  1049.      Kill to the end of the line and enter insert mode.
  1050.  
  1051. `vi-change-whole-line (unbound) (`S') (unbound)'
  1052.      Kill the current line and enter insert mode.
  1053.  
  1054. `copy-region-as-kill (`ESC-W' `ESC-w') (unbound) (unbound)'
  1055.      Copy the area from the cursor to the mark to the kill buffer.
  1056.  
  1057. `copy-prev-word (`ESC-^_') (unbound) (unbound)'
  1058.      Duplicate the word behind the cursor.
  1059.  
  1060. `vi-delete (unbound) (`d') (unbound)'
  1061.      Read a movement command from the keyboard, and kill from the cursor
  1062.      position to the endpoint of the movement.  If the command is
  1063.      `vi-delete', kill the current line.
  1064.  
  1065. `delete-char'
  1066.      Delete the character under the cursor.
  1067.  
  1068. `vi-delete-char (unbound) (`x') (unbound)'
  1069.      Delete the character under the cursor, without going past the end
  1070.      of the line.
  1071.  
  1072. `delete-word'
  1073.      Delete the current word.
  1074.  
  1075. `down-case-word (`ESC-L' `ESC-l') (unbound) (unbound)'
  1076.      Convert the current word to all lowercase and move past it.
  1077.  
  1078. `kill-word (`ESC-D' `ESC-d') (unbound) (unbound)'
  1079.      Kill the current word.
  1080.  
  1081. `gosmacs-transpose-chars'
  1082.      Exchange the two characters behind the cursor.
  1083.  
  1084. `vi-indent (unbound) (`>') (unbound)'
  1085.      Indent a number of lines.
  1086.  
  1087. `vi-insert (unbound) (`i') (unbound)'
  1088.      Enter insert mode.
  1089.  
  1090. `vi-insert-bol (unbound) (`I') (unbound)'
  1091.      Move to the beginning of the line and enter insert mode.
  1092.  
  1093. `vi-join (`^X^J') (`J') (unbound)'
  1094.      Join the current line with the next one.
  1095.  
  1096. `kill-line (`^K') (unbound) (unbound)'
  1097.      Kill from the cursor to the end of the line.
  1098.  
  1099. `vi-kill-line (unbound) (unbound) (`^U')'
  1100.      Kill from the cursor back to wherever insert mode was last entered.
  1101.  
  1102. `vi-kill-eol (unbound) (`D') (unbound)'
  1103.      Kill from the cursor to the end of the line.
  1104.  
  1105. `kill-region'
  1106.      Kill from the cursor to the mark.
  1107.  
  1108. `kill-buffer (`^X^K') (unbound) (unbound)'
  1109.      Kill the entire buffer.
  1110.  
  1111. `kill-whole-line (`^U') (unbound) (unbound)'
  1112.      Kill the current line.
  1113.  
  1114. `vi-match-bracket (`^X^B') (`%') (unbound)'
  1115.      Move to the bracket character (one of `{}', `()', or `[]') that
  1116.      matches the one under the cursor.  If the cursor is not on a
  1117.      bracket character, move forward without going past the end of the
  1118.      line to find one, and then go to the matching bracket.
  1119.  
  1120. `vi-open-line-above (unbound) (`O') (unbound)'
  1121.      Open a line above the cursor and enter insert mode.
  1122.  
  1123. `vi-open-line-below (unbound) (`o') (unbound)'
  1124.      Open a line below the cursor and enter insert mode.
  1125.  
  1126. `vi-oper-swap-case'
  1127.      Read a movement command from the keyboard, and swap the case of all
  1128.      characters from the cursor position to the endpoint of the
  1129.      movement.  If the movement command is `vi-oper-swap-case', swap
  1130.      the case of all characters on the current line.
  1131.  
  1132. `overwrite-mode (`^X^O') (unbound) (unbound)'
  1133.      Toggle between overwrite mode and insert mode.
  1134.  
  1135. `vi-put-before (unbound) (`P') (unbound)'
  1136.      Insert the contents of the kill buffer before the cursor.  If the
  1137.      kill buffer contains a sequence of lines (as opposed to
  1138.      characters), paste it above the current line.
  1139.  
  1140. `vi-put-after (unbound) (`p') (unbound)'
  1141.      Insert the contents of the kill buffer after the cursor.  If the
  1142.      kill buffer contains a sequence of lines (as opposed to
  1143.      characters), paste it below the current line.
  1144.  
  1145. `quoted-insert (`^V') (unbound) (unbound)'
  1146.      Insert the next character typed into the buffer literally.  An
  1147.      interrupt character will not be inserted.
  1148.  
  1149. `vi-quoted-insert (unbound) (unbound) (`^Q' `^V')'
  1150.      Display a `^' at the current position, and insert the next
  1151.      character typed into the buffer literally.  An interrupt character
  1152.      will not be inserted.
  1153.  
  1154. `quote-line (`ESC-'') (unbound) (unbound)'
  1155.      Quote the current line; that is, put a `'' character at the
  1156.      beginning and the end, and convert all `'' characters to `\''.
  1157.  
  1158. `quote-region (`ESC-"') (unbound) (unbound)'
  1159.      Quote the region from the cursor to the mark.
  1160.  
  1161. `vi-replace (unbound) (`R') (unbound)'
  1162.      Enter overwrite mode.
  1163.  
  1164. `vi-repeat-change (unbound) (`.') (unbound)'
  1165.      Repeat the last vi mode text modification.  If a count was used
  1166.      with the modification, it is remembered.  If a count is given to
  1167.      this command, it overrides the remembered count, and is remembered
  1168.      for future uses of this command.  The cut buffer specification is
  1169.      similarly remembered.
  1170.  
  1171. `vi-replace-chars (unbound) (`r') (unbound)'
  1172.      Replace the character under the cursor with a character read from
  1173.      the keyboard.
  1174.  
  1175. `self-insert (printable characters) (unbound) (printable characters and some control characters)'
  1176.      Put a character in the buffer at the cursor position.
  1177.  
  1178. `self-insert-unmeta (`ESC-^I' `ESC-^J' `ESC-^M') (unbound) (unbound)'
  1179.      Put a character in the buffer after stripping the meta bit and
  1180.      converting `^M' to `^J'.
  1181.  
  1182. `vi-substitute (unbound) (`s') (unbound)'
  1183.      Substitute the next character(s).
  1184.  
  1185. `vi-swap-case (unbound) (`~') (unbound)'
  1186.      Swap the case of the character under the cursor and move past it.
  1187.  
  1188. `transpose-chars (`^T') (unbound) (unbound)'
  1189.      Exchange the two characters to the left of the cursor if at end of
  1190.      line, else exchange the character under the cursor with the
  1191.      character to the left.
  1192.  
  1193. `transpose-words (`ESC-T' `ESC-t')  (unbound) (unbound)'
  1194.      Exchange the current word with the one before it.
  1195.  
  1196. `vi-unindent (unbound) (`<') (unbound)'
  1197.      Unindent a number of lines.
  1198.  
  1199. `up-case-word (`ESC-U' `ESC-u') (unbound) (unbound)'
  1200.      Convert the current word to all caps and move past it.
  1201.  
  1202. `yank (`^Y') (unbound) (unbound)'
  1203.      Insert the contents of the kill buffer at the cursor position.
  1204.  
  1205. `yank-pop (`ESC-y') (unbound) (unbound)'
  1206.      Remove the text just yanked, rotate the kill-ring, and yank the
  1207.      new top.  Only works following `yank' or `yank-pop'.
  1208.  
  1209. `vi-yank (unbound) (`y') (unbound)'
  1210.      Read a movement command from the keyboard, and copy the region
  1211.      from the cursor position to the endpoint of the movement into the
  1212.      kill buffer.  If the command is `vi-yank', copy the current line.
  1213.  
  1214. `vi-yank-whole-line (unbound) (`Y') (unbound)'
  1215.      Copy the current line into the kill buffer.
  1216.  
  1217. `vi-yank-eol'
  1218.      Copy the region from the cursor position to the end of the line
  1219.      into the kill buffer.  Arguably, this is what `Y' should do in vi,
  1220.      but it isn't what it actually does.
  1221.  
  1222. 
  1223. File: zsh.info,  Node: Arguments,  Next: Completion,  Prev: Modifying Text,  Up: Zsh Line Editor
  1224.  
  1225. Arguments
  1226. =========
  1227.  
  1228. `digit-argument (`ESC-0'...`ESC-9') (1-9) (unbound)'
  1229.      Start a new numeric argument, or add to the current one.  See also
  1230.      `vi-digit-or-beginning-of-line'.
  1231.  
  1232. `neg-argument (`ESC--') (unbound) (unbound)'
  1233.      Changes the sign of the following argument.
  1234.  
  1235. `universal-argument'
  1236.      Multiply the argument of the next command by 4.
  1237.  
  1238. 
  1239. File: zsh.info,  Node: Completion,  Next: Miscellaneous,  Prev: Arguments,  Up: Zsh Line Editor
  1240.  
  1241. Completion
  1242. ==========
  1243.  
  1244. `accept-and-menu-complete'
  1245.      In a menu completion, insert the current completion into the
  1246.      buffer, and advance to the next possible completion.
  1247.  
  1248. `complete-word'
  1249.      Attempt completion on the current word.
  1250.  
  1251. `delete-char-or-list (`^D') (unbound) (unbound)'
  1252.      Delete the character under the cursor.  If the cursor is at the
  1253.      end of the line, list possible completions for the current word.
  1254.  
  1255. `expand-cmd-path'
  1256.      Expand the current command to its full pathname.
  1257.  
  1258. `expand-or-complete (TAB) (unbound) (TAB)'
  1259.      Attempt shell expansion on the current word.  If that fails,
  1260.      attempt completion.
  1261.  
  1262. `expand-or-complete-prefix'
  1263.      Attempt shell expansion on the current word up to cursor.
  1264.  
  1265. `expand-history (`ESC-SPACE' `ESC-!') (unbound) (unbound)'
  1266.      Perform history expansion on the edit buffer.
  1267.  
  1268. `expand-word (`^X*') (unbound) (unbound)'
  1269.      Attempt shell expansion on the current word.
  1270.  
  1271. `list-choices (`ESC-^D') (`^D=') (`^D')'
  1272.      List possible completions for the current word.
  1273.  
  1274. `list-expand (`^Xg' `^XG') (`^G') (`^G')'
  1275.      List the expansion of the current word.
  1276.  
  1277. `magic-space'
  1278.      Perform history expansion and insert a space into the buffer.
  1279.      This is intended to be bound to SPACE.
  1280.  
  1281. `menu-complete'
  1282.      Like `complete-word', except that menu completion is used.  *Note
  1283.      Options::, for the `MENU_COMPLETE' option.
  1284.  
  1285. `menu-expand-or-complete'
  1286.      Like `expand-or-complete', except that menu completion is used.
  1287.  
  1288. `reverse-menu-complete'
  1289.      *Note Options::, for the `MENU_COMPLETE' option.
  1290.  
  1291.