home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume43 / zsh / part02 < prev    next >
Encoding:
Internet Message Format  |  1994-07-14  |  86.9 KB

  1. From: zsh-list@sterling.com (Bas de Bakker)
  2. Newsgroups: comp.sources.misc
  3. Subject: v43i091:  zsh - The Z shell, version 2.5.0, Part02/18
  4. Date: 13 Jul 1994 23:01:43 -0500
  5. Organization: Sterling Software
  6. Sender: kent@sparky.sterling.com
  7. Approved: kent@sparky.sterling.com
  8. Message-ID: <302db7$sps@sparky.sterling.com>
  9. X-Md4-Signature: d559b0ef8cc769e1c74fffd9911110e6
  10.  
  11. Submitted-by: zsh-list@sterling.com (Bas de Bakker)
  12. Posting-number: Volume 43, Issue 91
  13. Archive-name: zsh/part02
  14. Environment: UNIX
  15. Supersedes: zsh: Volume 35, Issue 51-72
  16.  
  17. #! /bin/sh
  18. # This is a shell archive.  Remove anything before this line, then feed it
  19. # into a shell via "sh file" or similar.  To overwrite existing files,
  20. # type "sh file -c".
  21. # Contents:  zsh-2.5.0/help/unlimit zsh-2.5.0/man/zsh.1.B
  22. # Wrapped by kent@sparky on Tue Jul 12 16:47:16 1994
  23. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin:$PATH ; export PATH
  24. echo If this archive is complete, you will see the following message:
  25. echo '          "shar: End of archive 2 (of 18)."'
  26. if test -f 'zsh-2.5.0/help/unlimit' -a "${1}" != "-c" ; then 
  27.   echo shar: Will not clobber existing file \"'zsh-2.5.0/help/unlimit'\"
  28. else
  29.   echo shar: Extracting \"'zsh-2.5.0/help/unlimit'\" \(273 characters\)
  30.   sed "s/^X//" >'zsh-2.5.0/help/unlimit' <<'END_OF_FILE'
  31. X       unlimit [ -h ] resource ...
  32. X              The  resource limit for each resource is set to the
  33. X              hard limit.  If the -h flag is given and the  shell
  34. X              is  running  as  root,  the hard resource limit for
  35. X              each resource is removed.
  36. END_OF_FILE
  37.   if test 273 -ne `wc -c <'zsh-2.5.0/help/unlimit'`; then
  38.     echo shar: \"'zsh-2.5.0/help/unlimit'\" unpacked with wrong size!
  39.   fi
  40.   # end of 'zsh-2.5.0/help/unlimit'
  41. fi
  42. if test -f 'zsh-2.5.0/man/zsh.1.B' -a "${1}" != "-c" ; then 
  43.   echo shar: Will not clobber existing file \"'zsh-2.5.0/man/zsh.1.B'\"
  44. else
  45.   echo shar: Extracting \"'zsh-2.5.0/man/zsh.1.B'\" \(83377 characters\)
  46.   sed "s/^X//" >'zsh-2.5.0/man/zsh.1.B' <<'END_OF_FILE'
  47. X.TP
  48. X\fBsend-break\fP (^G)
  49. XAbort the current editor function, eg. \fBexecute-named-command\fP, or the
  50. Xeditor itself, eg. if you are in \fBvared\fP. Otherwise abort the parsing of
  51. Xthe current line.
  52. X.TP
  53. X\fBrun-help\fP (ESC-H ESC-h)
  54. XPush the buffer onto the buffer stack, and execute the
  55. Xcommand "\fBrun-help\fP \fIcmd\fP", where \fIcmd\fP is the current
  56. Xcommand.  \fBrun-help\fP is normally aliased to \fBman\fP.
  57. X.TP
  58. X\fBvi-set-buffer\fP (unbound) (")
  59. XSpecify a buffer to be used in the following command.
  60. X.TP
  61. X\fBvi-set-mark\fP (unbound) (m)
  62. XSet the specified mark at the cursor position.
  63. X.TP
  64. X\fBset-mark-command\fP (^@)
  65. XSet the mark at the cursor position.
  66. X.TP
  67. X\fBspell-word\fP (ESC-$ ESC-S ESC-s)
  68. XAttempt spelling correction on the current word.
  69. X.TP
  70. X\fBundefined-key\fP
  71. XBeep.
  72. X.TP
  73. X\fBundo\fP (^_ ^Xu ^X^U) (u)
  74. XIncrementally undo the last text modification.
  75. X.TP
  76. X\fBwhich-command\fP (ESC-?)
  77. XPush the buffer onto the buffer stack, and execute the
  78. Xcommand "\fBwhich-command\fP \fIcmd\fP", where \fIcmd\fP is the current
  79. Xcommand.  \fBwhich-command\fP is normally aliased to \fBwhence\fP.
  80. X.SH PARAMETERS
  81. XA parameter has a name, a value, and a number of attributes.
  82. XA name may be any sequence of alphanumeric
  83. Xcharacters and _'s, or the single characters
  84. X*, @, #, ?, \-, $, or !.
  85. XThe value may be either a \fIscalar\fP (a string),
  86. Xan integer, or an array.
  87. XTo assign a scalar or integer value to a parameter,
  88. Xuse the \fBtypeset\fP builtin.
  89. XTo assign an array value, use \fBset \-A\fP \fIname\fP \fIvalue\fP ....
  90. XThe value of a parameter may also be assigned by writing:
  91. X.RS
  92. X.PP
  93. X\fIname\fP=\fIvalue\fP ...
  94. X.RE
  95. X.PP
  96. XIf the integer attribute, \-\fBi\fP, is set for \fIname\fP,
  97. Xthe \fIvalue\fP is subject to arithmetic evaluation.
  98. X.PP
  99. XThe value of an array parameter may be assigned by writing:
  100. X.RS
  101. X.PP
  102. X\fIname\fP=(\fIvalue\fP ...) ...
  103. X.RE
  104. XIndividual elements of an array may be selected using a 
  105. Xsubscript.  A subscript of the form \fB[\fIexp\fB]\fR
  106. Xselects the single element \fIexp\fP, where \fIexp\fP is
  107. Xan arithmetic expression which will be subject to arithmetic
  108. Xexpansion as if it were surrounded by "$[...]".  
  109. XThe elements are numbered beginning with 1.
  110. XA subscript of the form \fB[*]\fP or \fB[@]\fP evaluates to all
  111. Xelements of an array; there is no difference between the two
  112. Xexcept when they appear within double quotes.
  113. X"$foo[*]" evaluates to "$foo[1] $foo[2] ...", while
  114. X"$foo[@]" evaluates to "$foo[1]" "$foo[2]", etc.
  115. XA subscript of the form \fB[\fIexp1\fP,\fIexp2\fB]\fR
  116. Xselects all elements in the range \fIexp1\fP to \fIexp2\fP,
  117. Xinclusive.
  118. XIf one of the subscripts evaluates to a negative number,
  119. Xsay \-\fIn\fP, then the \fIn\fPth element from the end
  120. Xof the array is used.  Thus "$foo[-3]" is the third element
  121. Xfrom the end of the array \fIfoo\fP, and
  122. X"$foo[1,-1]" is the same as "$foo[*]".
  123. X.PP
  124. XSubscripting may also be performed on non-array values, in which
  125. Xcase the subscripts specify a substring to be extracted.
  126. XFor example, if \fBFOO\fP is set to \fBfoobar\fP, then
  127. X\fBecho $FOO[2,5]\fP prints \fBooba\fP.
  128. X.PP
  129. XIf a subscript is used on the left side of an assignment the selected
  130. Xrange is replaced by the expression on the right side.
  131. X.PP
  132. XIf the opening bracket or the comma is directly followed by an opening
  133. Xparentheses the string up to the matching closing one is considered to
  134. Xbe a list of flags. The flags currently understood are:
  135. X.PP
  136. X.RS
  137. X.PD
  138. X.TP
  139. X.B e
  140. Xthe argument is expanded using full shell expansion first
  141. X.TP
  142. X.B w
  143. Xif the parameter subscripted is a scalar than this flag makes
  144. Xsubscription work on a per-word basis instead of characters
  145. X.TP
  146. X.B s:\fIstring\fB:
  147. Xthis gives the \fIstring\fP that separates words (for use with the
  148. X\fBw\fP flag)
  149. X.TP
  150. X.B r
  151. Xif this flag is given the \fIexp\fP is taken as a pattern and the
  152. Xresult is the first matching array element, substring or word (if the
  153. Xparameter is an array, if it is a scalar, or if it is a scalar and the
  154. X\fBw\fP flag is given, respectively); note that this is like giving a
  155. Xnumber: \fB$foo[(r)??,3]\fP and \fB$foo[(r)??,(r)f*]\fP work
  156. X.TP
  157. X.B R
  158. Xlike \fBr\fP, but gives the last match
  159. X.TP
  160. X.B i
  161. Xlike \fBr\fP, but gives the index of the match instead; this may not
  162. Xbe combined with a second argument
  163. X.TP
  164. X.B I
  165. Xlike \fBi\fP, but gives the index of the last match
  166. X.TP
  167. X.B n:\fIexpr\fB:
  168. Xif combined with \fBr\fP, \fBR\fP, \fI\fP, or \fBI\fP, makes them give
  169. Xthe \fIn\fP'th or \fIn\fP'th last match (if \fIexpr\fP evaluates to
  170. X\fIn\fP)
  171. X.PD
  172. X.RE
  173. X.SS Positional Parameters
  174. XPositional parameters are set by the shell on invocation,
  175. Xby the \fBset\fP builtin, or by direct assignment.
  176. XThe parameter \fIn\fP, where \fIn\fP is a number,
  177. Xis the \fIn\fPth positional parameter.
  178. XThe parameters \fB*\fP, \fB@\fP, and \fBargv\fP are
  179. Xarrays containing all the positional parameters;
  180. Xthus \fBargv\fP[\fIn\fP], etc. is equivalent to simply \fIn\fP.
  181. X.PP
  182. X.SS Special Parameters
  183. XThe following parameters are automatically set by the shell:
  184. X.PP
  185. X.RS
  186. X.PD 0
  187. X.TP
  188. X.B !
  189. XThe process id of the last background command invoked.
  190. X.TP
  191. X.B #
  192. XThe number of positional parameters in decimal.
  193. X.TP
  194. X.B ARGC
  195. XSame as \fB#\fP.
  196. X.TP
  197. X.B $
  198. XThe process id of this shell.
  199. X.TP
  200. X.B \-
  201. XFlags supplied to the shell on invocation or by the \fBset\fP
  202. Xor \fBsetopt\fP commands.
  203. X.TP
  204. X.B *
  205. XAn array containing the positional parameters.
  206. X.TP
  207. X.B argv
  208. XSame as \fB*\fP.
  209. X.TP
  210. X.B @
  211. XSame as \fBargv[@]\fP.
  212. X.TP
  213. X.B ?
  214. XThe exit value returned by the last command.
  215. X.TP
  216. X.B status
  217. XSame as \fB?\fP.
  218. X.TP
  219. X.B _
  220. XThe last argument of the previous command.
  221. XAlso, this parameter is set in the environment of every command
  222. Xexecuted to the full pathname of the command.
  223. X.TP
  224. X.B EGID
  225. XThe effective group id of the shell process.
  226. X.TP
  227. X.B EUID
  228. XThe effective user id of the shell process.
  229. X.TP
  230. X.B ERRNO
  231. XThe value of errno as set by the most recently failed system call.
  232. XThis value is system dependent and is intended for debugging
  233. Xpurposes.
  234. X.TP
  235. X.B GID
  236. XThe group id of the shell process.
  237. X.TP
  238. X.B HOST
  239. XThe current hostname.
  240. X.TP
  241. X.B HOSTTYPE
  242. XA string corresponding to the type of the host the shell
  243. Xis running on.
  244. X.TP
  245. X.B LINENO
  246. XThe line number of the current line within the current script
  247. Xbeing executed.
  248. X.TP
  249. X.B OLDPWD
  250. XThe previous working directory.
  251. X.TP
  252. X.B OPTARG
  253. XThe value of the last option argument processed by the \fBgetopts\fP
  254. Xcommand.
  255. X.TP
  256. X.B OPTIND
  257. XThe index of the last option argument processed by the \fBgetopts\fP
  258. Xcommand.
  259. X.TP
  260. X.B PPID
  261. XThe process id of the parent of the shell.
  262. X.TP
  263. X.B PWD
  264. XThe present working directory.
  265. X.TP
  266. X.B RANDOM
  267. XA random integer from 0 to 32767, newly generated each time
  268. Xthis parameter is referenced.  The random number generator
  269. Xcan be seeded by assigning a numeric value to \fBRANDOM\fP.
  270. X.TP
  271. X.B SECONDS
  272. XThe number of seconds since shell invocation.  If this parameter
  273. Xis assigned a value, then the value returned upon reference
  274. Xwill be the value that was assigned plus the number of seconds
  275. Xsince the assignment.
  276. X.TP
  277. X.B SHLVL
  278. XIncremented by one each time a new shell is started.
  279. X.TP
  280. X.B signals
  281. XAn array containing the names of the signals.
  282. X.TP
  283. X.B TTY
  284. XThe name of the tty associated with the shell, if any.
  285. X.TP
  286. X.B UID
  287. XThe user id of the shell process.
  288. X.TP
  289. X.B USERNAME
  290. X.TP
  291. X.B LOGNAME
  292. XThe username corresponding to the user id of the shell process.
  293. X.TP
  294. X.B VERSION
  295. XThe version number of this \fBzsh\fP.
  296. X.PD
  297. X.RE
  298. X.PP
  299. XThe following parameters are used by the shell:
  300. X.PP
  301. X.RS
  302. X.PD 0
  303. X.TP
  304. X.B ARGV0
  305. XIf exported, it's value is used as argv[0] of external commands.
  306. XUsually used in constructs like 'ARGV0=emacs nethack'.
  307. X.TP
  308. X.B BAUD
  309. XThe baud rate of the current connection.  Used by the line editor
  310. Xupdate mechanism to compensate for a slow terminal by delaying
  311. Xupdates until necessary.  This may be profitably set to a lower value
  312. Xin some circumstances, e.g.
  313. Xfor slow modems dialing into a communications server which is connected
  314. Xto a host via a fast link; in this case, this variable
  315. Xwould be set by default to the speed of the fast link, and not
  316. Xthe modem.
  317. XThis parameter should be set to the baud
  318. Xrate of the slowest part of the link for best performance. The compensation
  319. Xmechanism can be turned off by setting the variable to zero.
  320. X.TP
  321. X.B cdpath (CDPATH)
  322. XAn array (colon-separated list)
  323. Xof directories specifying the search path for the \fBcd\fP command.
  324. X.TP
  325. X.B COLUMNS
  326. XThe number of columns for this terminal session.
  327. XUsed for printing select lists and for the line editor.
  328. X.TP
  329. X.B DIRSTACKSIZE
  330. XThe maximum size of the directory stack.  If the 
  331. Xstack gets larger than this, it will be truncated automatically.
  332. XThis is useful with the \fBAUTO_PUSHD\fP option.
  333. X.TP
  334. X.B FCEDIT
  335. XThe default editor for the \fBfc\fP builtin.
  336. X.TP
  337. X.B fignore (FIGNORE)
  338. XAn array (colon separated list)
  339. Xcontaining the suffixes of files to be ignored
  340. Xduring filename completion.
  341. X.TP
  342. X.B fpath (FPATH)
  343. XAn array (colon separated list)
  344. Xof directories specifying the search path for
  345. Xfunction definitions.  This path is searched when a function
  346. Xwith the \-\fBu\fP attribute is referenced.  If an executable
  347. Xfile is found, then it is read and executed in the current environment.
  348. X.TP
  349. X.B HISTCHARS
  350. XThree characters used by the shell's history and lexical analysis
  351. Xmechanism.  The first character signals the start of a history
  352. Xsubstitution (default `!').  The second character signals the
  353. Xstart of a quick history substitution (default `^').  The third
  354. Xcharacter is the comment character (default `#').
  355. X.TP
  356. X.B HISTFILE
  357. XThe file to save the history in when an interactive shell exits.
  358. XIf unset, the history is not saved.
  359. X.TP
  360. X.B HISTSIZE
  361. XThe maximum size of the history list.
  362. X.TP
  363. X.B HOME
  364. XThe default argument for the \fBcd\fP command.
  365. X.TP
  366. X.B IFS
  367. XInternal field separators, normally space, tab, and newline, that
  368. Xare used to separate words which result from
  369. Xcommand or parameter substitution and words read by
  370. Xthe \fBread\fP builtin.
  371. X.TP
  372. X.B KEYTIMEOUT
  373. XThe time the shell waits, in hundredths of seconds, for another key to
  374. Xbe pressed when reading bound multi-character sequences.
  375. X.TP
  376. X.B LINES
  377. XThe number of lines for this terminal session.
  378. XUsed for printing select lists and for the line editor.
  379. X.TP
  380. X.B LISTMAX
  381. XIn the line editor,
  382. Xthe number of filenames to list without asking first.
  383. XIf set to zero, the shell asks only if the top of the listing would scroll
  384. Xoff the screen.
  385. X.TP
  386. X.B LITHISTSIZE
  387. XThe maximum size of the literal history list (before history expansion).
  388. X.TP
  389. X.B LOGCHECK
  390. XThe interval in seconds between checks for login/logout activity
  391. Xusing the \fBwatch\fP parameter.
  392. X.TP
  393. X.B MAIL
  394. XIf this parameter is set and \fBmailpath\fP is not set,
  395. Xthe shell looks for mail in the specified file.  By default it is set to
  396. Xthe user's system mailbox.
  397. X.TP
  398. X.B MAILCHECK
  399. XThe interval in seconds between checks for new mail. 
  400. X.TP
  401. X.B mailpath (MAILPATH)
  402. XAn array (colon-separated list)
  403. Xof filenames to check for new mail.  Each filename can
  404. Xbe followed by a ? and a message that will be printed.
  405. XThe sequence $_ in the message will be replaced by the name 
  406. Xof the mail file.
  407. XThe default message is "You have new mail." If an element is a directory
  408. Xinstead of a file the shell will recursively check every file in every
  409. Xsubdirectory of the element.
  410. X.TP
  411. X.B manpath (MANPATH)
  412. XAn array (colon-separated list)
  413. Xwhose value is not used by the shell.  The \fBmanpath\fP
  414. Xarray can be useful, however, since setting it also sets
  415. X\fBMANPATH\fP, and vice versa.
  416. X.TP
  417. X.B NULLCMD
  418. XThe command name to assume if a redirection is specified
  419. Xwith no command.  Defaults to \fBcat\fP.  For sh/ksh-like
  420. Xbehavior, change this to \fB:\fP.  For csh-like
  421. Xbehavior, unset this parameter; the shell will print an
  422. Xerror message if null commands are entered.
  423. X.TP
  424. X.B path (PATH)
  425. XAn array (colon-separated list)
  426. Xof directories to search for commands.
  427. XWhen this parameter is set, each directory is scanned
  428. Xand all files found are put in a hash table.
  429. X.TP
  430. X.B POSTEDIT
  431. XThis string is output whenever the line editor exits.
  432. XIt usually contains termcap strings to reset the terminal.
  433. X.TP
  434. X.B PROMPT
  435. XThe primary prompt string, printed before a command is read;
  436. Xthe default is "%m%# ".  If the escape sequence takes an optional
  437. Xinteger, it should appear between the '%' and the next character of the
  438. Xsequence.  The following escape sequences are recognized:
  439. X.PD
  440. X.PP
  441. X.PD 0
  442. X.RS
  443. X.TP
  444. X.B %d
  445. X.TP
  446. X.B %/
  447. XPresent working directory ($PWD).
  448. X.TP
  449. X.B %~
  450. X$PWD.
  451. XIf it has a named directory as its prefix, that part is replaced
  452. Xby a ~ followed by the name of the directory.
  453. XIf it starts with $HOME, that part is
  454. Xreplaced by a ~.
  455. X.TP
  456. X.B %c
  457. X.TP
  458. X.B %.
  459. X.TP
  460. X.B %C
  461. XTrailing component of $PWD.
  462. XAn integer may follow the '%' to get more than one component.
  463. XUnless \fB%C\fP is used, tilde expansion is performed first.
  464. X.TP
  465. X.B !
  466. X.TP
  467. X.B %h
  468. X.TP
  469. X.B %!
  470. XCurrent history event number
  471. X.TP
  472. X.B %M
  473. XThe full machine hostname.
  474. X.TP
  475. X.B %m
  476. XThe hostname up to the first '.'.
  477. XAn integer may follow the '%' to specify
  478. Xhow many components of the hostname are desired.
  479. X.TP
  480. X.B %S (%s)
  481. XStart (stop) standout mode.
  482. X.TP
  483. X.B %U (%u)
  484. XStart (stop) underline mode.
  485. X.TP
  486. X.B %B (%b)
  487. XStart (stop) boldface mode.
  488. X.TP
  489. X.B %t
  490. X.TP
  491. X.B %@
  492. XCurrent time of day, in 12-hour, am/pm format.
  493. X.TP
  494. X.B %T
  495. XCurrent time of day, in 24-hour format.
  496. X.TP
  497. X.B %*
  498. XCurrent time of day in 24-hour format, with seconds.
  499. X.TP
  500. X.B %n
  501. X\fB$USERNAME\fP.
  502. X.TP
  503. X.B %w
  504. XThe date in day\-dd format.
  505. X.TP
  506. X.B %W
  507. XThe date in mm/dd/yy format.
  508. X.TP
  509. X.B %D
  510. XThe date in yy\-mm\-dd format.
  511. X.TP
  512. X.B %D{\fIstring\fP}
  513. X\fIstring\fP is formatted using the \fBstrftime\fP function.
  514. XSee \fBstrftime(3)\fP for more details, if your system has it.
  515. X.TP
  516. X.B %l
  517. XThe line (tty) the user is logged in on.
  518. X.TP
  519. X.B %?
  520. XThe return code of the last command executed just before the prompt.
  521. X.TP
  522. X.B %_
  523. XThe status of the parser, i.e. the shell constructs (like `if' and
  524. X`for') that have been started on the command line. If given an integer
  525. Xnumber that many strings will be printed.
  526. X.TP
  527. X.B
  528. X%E
  529. XClears to end of line.
  530. X.TP
  531. X.B %#
  532. XA '#' if the shell is running as root, a '%' if not.
  533. XEquivalent to %(#.#.%%).
  534. X.TP
  535. X.B %v
  536. XThe value of the first element of the $psvar array parameter.  Following
  537. Xthe '%' with an integer gives that element of the array.
  538. X.TP
  539. X\fB%{\fP...\fB%}\fP
  540. XInclude a string as a literal escape sequence.
  541. XThe string within the braces should not change the cursor
  542. Xposition.
  543. X.TP
  544. X.B %(x\fI.true-text.false-text\fB)\fP
  545. XSpecifies a ternary expression.  The character following the \fBx\fP is
  546. Xarbitrary; the same character is used to separate the text for the
  547. X"true" result from that for the "false" result.  Both the separator and
  548. Xthe right parenthesis may be escaped with a backslash.  \fITrue-text\fP
  549. Xand \fIfalse-text\fP may both contain arbitrarily-nested escape
  550. Xsequences, including further ternary expressions.  The left
  551. Xparenthesis may be preceded or followed by a positive integer \fIn\fP,
  552. Xwhich defaults to zero.  The test character \fBx\fP may be any of the
  553. Xfollowing:
  554. X.PD
  555. X.PP
  556. X.PD 0
  557. X.RS
  558. X.B c
  559. X.TP 
  560. X.B .
  561. X.TP
  562. X.B ~
  563. XTrue if the current path, with prefix replacement, has at least \fIn\fP
  564. Xelements.
  565. X.TP
  566. X.B /
  567. X.TP
  568. X.B C
  569. XTrue if the current absolute path has at least \fIn\fP elements.
  570. X.TP
  571. X.B t
  572. XTrue if the time in minutes is equal to \fIn\fP.
  573. X.TP
  574. X.B T
  575. XTrue if the time in hours is equal to \fIn\fP.
  576. X.TP
  577. X.B d
  578. XTrue if the day of the month is equal to \fIn\fP.
  579. X.TP
  580. X.B D
  581. XTrue if the month is equal to \fIn\fP (January = 0).
  582. X.TP
  583. X.B w
  584. XTrue if the day of the week is equal to \fIn\fP (Sunday = 0).
  585. X.TP
  586. X.B ?
  587. XTrue if the exit status of the last command was \fIn\fP.
  588. X.TP
  589. X.B #
  590. XTrue if the effective uid of the current process is \fIn\fP.
  591. X.TP
  592. X.B g
  593. XTrue if the effective gid of the current process is \fIn\fP.
  594. X.TP
  595. X.B L
  596. XTrue if the SHLVL parameter is at least \fIn\fP.
  597. X.TP
  598. X.B S
  599. XTrue if the SECONDS parameter is at least \fIn\fP.
  600. X.TP
  601. X.B v
  602. XTrue if the array psvar has at least \fIn\fP elements.
  603. X.TP
  604. X.B _
  605. XTrue if at least \fIn\fP shell constructs were started.
  606. X.RE
  607. X.RE
  608. X.PD
  609. X.PP
  610. X.PD 0
  611. X.TP
  612. X.B PROMPT2
  613. XThe secondary prompt, printed when the shell needs more information
  614. Xto complete a command.
  615. XRecognizes the same escape sequences as \fB$PROMPT\fP.
  616. XThe default is "> ".
  617. X.TP
  618. X.B PROMPT3
  619. XSelection prompt used within a \fBselect\fP loop.
  620. XRecognizes the same escape sequences as \fB$PROMPT\fP.
  621. XThe default is "?# ".
  622. X.TP
  623. X.B PROMPT4
  624. XThe execution trace prompt.  Default is "+ ".
  625. X.TP
  626. X.B PS1
  627. X.TP
  628. X.B PS2
  629. X.TP
  630. X.B PS3
  631. X.TP
  632. X.B PS4
  633. XSame as \fBPROMPT\fP, \fBPROMPT2\fP, \fBPROMPT3\fP, and \fBPROMPT4\fP,
  634. Xrespectively.
  635. X.TP
  636. X.B psvar (PSVAR)
  637. XAn array (colon-separated list) whose first nine values can be used in
  638. X\fBPROMPT\fP strings.  Setting \fBpsvar\fP also sets \fBPSVAR\fP, and
  639. Xvice versa.
  640. X.TP
  641. X.B prompt
  642. XSame as \fBPROMPT\fP.
  643. X.TP
  644. X.B READNULLCMD
  645. XThe command name to assume if a single input redirection
  646. Xis specified with no command.  Defaults to \fBmore\fP.
  647. X.TP
  648. X.B REPORTTIME
  649. XIf nonnegative, commands whose combined user and system execution times
  650. X(measured in seconds) are greater than this value have timing
  651. Xstatistics printed for them.
  652. X.TP
  653. X.B RPROMPT
  654. X.TP
  655. X.B RPS1
  656. XThis prompt is displayed on the right-hand side of the screen
  657. Xwhen the primary prompt is being displayed on the left.
  658. XThis does not work if the \fBSINGLELINEZLE\fP option is set.
  659. XRecognizes the same escape sequences as \fBPROMPT\fP.
  660. X.TP
  661. X.B SAVEHIST
  662. XThe maximum number of history events to save in the history file.
  663. X.TP
  664. X.B SPROMPT
  665. XThe prompt used for spelling correction.  The sequence
  666. X\fB%R\fP expands to the string which presumably needs spelling
  667. Xcorrection, and \fB%r\fP expands to the proposed correction.
  668. XAll other \fBPROMPT\fP escapes are also allowed.
  669. X.TP
  670. X.B STTY
  671. XIf this parameter is set in a command's environment, the shell runs the
  672. X\fBstty\fP command with the value of this parameter as arguments in order to
  673. Xset up the terminal before executing the command. The modes apply only to the
  674. Xcommand, and are reset when it finishes or is suspended. If the command is
  675. Xsuspended and continued later with the \fBfg\fP or \fBwait\fP builtins it will
  676. Xsee the modes specified by STTY, as if it were not suspended.  This
  677. X(intentionally) does not apply if the command is continued via "kill -CONT".
  678. XSTTY is ignored if the command is run in the background, or if it is in the
  679. Xenvironment of the shell but not explicitly assigned to in the input line. This
  680. Xavoids running stty at every external command by accidentally exporting it.
  681. XAlso note that STTY should not be used for window size specifications; these
  682. Xwill not be local to the command.
  683. X.TP
  684. X.B TIMEFMT
  685. XThe format of process time reports with the \fBtime\fP keyword.
  686. XThe default is "%E real  %U user  %S system  %P %J".
  687. XRecognizes the following escape sequences:
  688. X.PD
  689. X.PP
  690. X.PD 0
  691. X.RS
  692. X.TP
  693. X.B %U
  694. XCPU seconds spent in user mode.
  695. X.TP
  696. X.B %S
  697. XCPU seconds spent in kernel mode.
  698. X.TP
  699. X.B %E
  700. XElapsed time in seconds.
  701. X.TP
  702. X.B %P
  703. XThe CPU percentage, computed as (%U+%S)/%E.
  704. X.TP
  705. X.B %W
  706. XNumber of times the process was swapped.
  707. X.TP
  708. X.B %X
  709. XThe average amount in (shared) text space used in Kbytes.
  710. X.TP
  711. X.B %D
  712. XThe average amount in (unshared) data/stack space used in Kbytes.
  713. X.TP
  714. X.B %K
  715. XThe total space used (%X+%D) in Kbytes.
  716. X.TP
  717. X.B %M
  718. XThe maximum memory the process had in use at any time in Kbytes.
  719. X.TP
  720. X.B %F
  721. XThe number of major page faults (page needed to be brought from disk).
  722. X.TP
  723. X.B %R
  724. XThe number of minor page faults.
  725. X.TP
  726. X.B %I
  727. XThe number of input operations.
  728. X.TP
  729. X.B %O
  730. XThe number of output operations.
  731. X.TP
  732. X.B %r
  733. XThe number of socket messages received.
  734. X.TP
  735. X.B %s
  736. XThe number of socket messages sent.
  737. X.TP
  738. X.B %k
  739. XThe number of signals received.
  740. X.TP
  741. X.B %w
  742. XNumber of voluntary context switches (waits).
  743. X.TP
  744. X.B %c
  745. XNumber of involuntary context switches.
  746. X.TP
  747. X.B %J
  748. XThe name of this job.
  749. X.RE
  750. X.PD
  751. X.PP
  752. X.PD 0
  753. X.TP
  754. X.B TMOUT
  755. XIf this parameter is nonzero, the shell will terminate if a command is not
  756. Xentered within the specified number of seconds after issuing
  757. Xa prompt.
  758. X.TP
  759. X.B TMPPREFIX
  760. XA pathname prefix which the shell will use for all temporary files.
  761. XNote that this should include an initial part for the file name as
  762. Xwell as any directory names.  The default is /tmp/zsh.
  763. X.TP
  764. X.B watch (WATCH)
  765. XAn array (colon-separated list) of login/logout events to report.
  766. XIf it contains the single word "all", then all login/logout events
  767. Xare reported.  If it contains the single word "notme", then all
  768. Xevents are reported as with "all" except $USERNAME.
  769. XAn entry in this list may consist of a username,
  770. Xan `@' followed by a remote hostname,
  771. Xand a `%' followed by a line (tty).
  772. XAny or all of these components may be present in an entry;
  773. Xif a login/logout event matches all of them,
  774. Xit is reported.
  775. X.TP
  776. X.B WATCHFMT
  777. XThe format of login/logout reports if the \fBwatch\fP parameter is set.
  778. XDefault is "%n has %a %l from %m."
  779. XRecognizes the following escape sequences:
  780. X.PD
  781. X.PP
  782. X.PD 0
  783. X.RS
  784. X.TP
  785. X.B %n
  786. XThe name of the user that logged in/out.
  787. X.TP
  788. X.B %a
  789. XThe observed action, i.e. "logged on" or "logged off".
  790. X.TP
  791. X.B %l
  792. XThe line (tty) the user is logged in on.
  793. X.TP
  794. X.B %M
  795. XThe full hostname of the remote host.
  796. X.TP
  797. X.B %m
  798. XThe hostname up to the first ".".  If only the
  799. Xip address is available or the utmp field contains
  800. Xthe name of an X-windows display, the whole name is printed.
  801. X.TP
  802. X.B NOTE:
  803. XThe %m and %M escapes will work only if there is a host name
  804. Xfield in the utmp on your machine.  Otherwise they are
  805. Xtreated as ordinary strings.
  806. X.TP
  807. X.B %S (%s)
  808. XStart (stop) standout mode.
  809. X.TP
  810. X.B %U (%u)
  811. XStart (stop) underline mode.
  812. X.TP
  813. X.B %B (%b)
  814. XStart (stop) boldface mode.
  815. X.TP
  816. X.B %t
  817. X.TP
  818. X.B %@
  819. XThe time, in 12-hour, am/pm format.
  820. X.TP
  821. X.B %T
  822. XThe time, in 24-hour format.
  823. X.TP
  824. X.B %w
  825. XThe date in day\-dd format.
  826. X.TP
  827. X.B %W
  828. XThe date in mm/dd/yy format.
  829. X.TP
  830. X.B %D
  831. XThe date in yy\-mm\-dd format.
  832. X.TP
  833. X.B %(x\fI:true-text:false-text\fB)\fP
  834. XSpecifies a ternary expression.
  835. XThe character following the \fBx\fP is
  836. Xarbitrary; the same character is used to separate the text
  837. Xfor the "true" result from that for the "false" result.
  838. XBoth the separator and the right parenthesis may be escaped
  839. Xwith a backslash.
  840. XTernary expressions may be nested.
  841. X.sp
  842. XThe test character \fBx\fP may be any one of \fBl\fP, \fBn\fP, \fBm\fP,
  843. Xor \fBM\fP, which indicate a "true" result if the corresponding
  844. Xescape sequence would return a non-empty value; or may be \fBa\fP,
  845. Xwhich indicates a "true" result if the watched user has logged in,
  846. Xor "false" if he has logged out.
  847. XOther characters evaluate to neither true nor false; the entire
  848. Xexpression is omitted in this case.
  849. X.sp
  850. XIf the result is "true", then the \fItrue-text\fP
  851. Xis formatted according to the rules above and printed,
  852. Xand the \fIfalse-text\fP is skipped.
  853. XIf "false", the \fItrue-text\fP is skipped and the \fIfalse-text\fP
  854. Xis formatted and printed.
  855. XEither or both of the branches may be empty, but
  856. Xboth separators must be present in any case.
  857. X.RE
  858. X.PD
  859. X.PP
  860. X.PD 0
  861. X.TP
  862. X.B WORDCHARS
  863. XA list of nonalphanumeric characters considered part of a word
  864. Xby the line editor.
  865. X.TP
  866. X.B ZDOTDIR
  867. XThe directory to search for shell startup files (.zshrc, etc),
  868. Xif not \fB$HOME\fP.
  869. X.PD
  870. X.RE
  871. X.PP
  872. X.SH OPTIONS
  873. XThe following options may be set upon invocation of the shell,
  874. Xor with the \fBset\fP or \fBsetopt\fP builtins. They are case insensitive and
  875. Xunderscores are ignored, that is, "allexport" is equivalent to "A__lleXP_ort".
  876. X.RS
  877. X.PD 0
  878. X.TP
  879. X\fBALL_EXPORT\fP (\-\fBa\fP)
  880. XAll parameters subsequently defined are automatically exported.
  881. X.TP
  882. X\fBALWAYS_LAST_PROMPT\fP
  883. XIf unset, key functions that list completions try to return to the last
  884. Xprompt if given a numeric argument. If set these functions try to
  885. Xreturn to the last prompt if given \fBno\fP numeric argument.
  886. X.TP
  887. X\fBALWAYS_TO_END\fP
  888. XIf a completion with the cursor in the word was started and it results
  889. Xin only one match, the cursor is placed at the end of the word.
  890. X.TP
  891. X\fBAPPEND_HISTORY\fP
  892. XIf this is set, zsh sessions will append their history list to
  893. Xthe history file, rather than overwrite it. Thus, multiple parallel
  894. Xzsh sessions will all have their history lists added to the
  895. Xhistory file, in the order they are killed.
  896. X.TP
  897. X\fBAUTO_CD\fP (\-\fBJ\fP)
  898. XIf a command is not in the hash table, and there exists an
  899. Xexecutable directory by that name, perform the \fBcd\fP
  900. Xcommand to that directory.
  901. X.TP
  902. X\fBAUTO_LIST\fP (\-\fB9\fP)
  903. XAutomatically list choices on an ambiguous completion.
  904. X.TP
  905. X\fBAUTO_MENU\fP
  906. XAutomatically use menu completion after the second consecutive request for
  907. Xcompletion, for example by pressing the \fPTAB\fP key repeatedly. This option
  908. Xis overridden by \fBMENU_COMPLETE\fP.
  909. X.TP
  910. X\fBAUTO_NAME_DIRS
  911. XAny parameter that is set to the absolute name of a directory
  912. Ximmediately becomes a name for that directory in the usual form
  913. X~param.  If this option is not set, the parameter must be used in that
  914. Xform for it to become a name (a command-line completion is sufficient
  915. Xfor this).
  916. X.TP
  917. X\fBAUTO_PARAM_KEYS\fP
  918. XIf a parameter name was completed and the next character typed is one
  919. Xof those that have to come directly after the name (like `}', `:',
  920. Xetc.) they are placed there automatically.
  921. X.TP
  922. X\fBAUTO_PUSHD\fP (\-\fBN\fP)
  923. XMake \fBcd\fP act like \fBpushd\fP.
  924. X.TP
  925. X\fBAUTO_REMOVE_SLASH\fP
  926. XWhen the last character resulting from a completion is a slash and the next
  927. Xcharacter typed is a word delimiter, remove the slash.
  928. X.TP
  929. X\fBAUTO_RESUME\fP (\-\fBW\fP)
  930. XTreat single word simple commands without redirection
  931. Xas candidates for resumption of an existing job.
  932. X.TP
  933. X\fBBG_NICE\fP (\-\fB6\fP)
  934. XRun all background jobs at a lower priority.  This option
  935. Xis set by default.
  936. X.TP
  937. X\fBBRACE_CCL\fP
  938. XAllow brace expansions of the form \fB{a-zA-Z}\fP, etc.
  939. X.TP
  940. X\fBCDABLE_VARS\fP (\-\fBT\fP)
  941. XIf the argument to a \fBcd\fP command (or an implied \fBcd\fP with the
  942. X\fBAUTO_CD\fP option set) is not a directory, and does not begin with a
  943. Xslash, try to expand the expression as if it were preceded by a ~ (see
  944. X\fBFilename Expansion\fP above).
  945. X.TP
  946. X\fBCHASE_LINKS\fP (\-\fBw\fP)
  947. XResolve symbolic links to their true values.
  948. X.TP
  949. X\fBCOMPLETE_ALIASES\fP
  950. XIf set, aliases on the command line are not internally substituted
  951. Xbefore completion is attempted.
  952. X.TP
  953. X\fBCOMPLETE_IN_WORD\fP
  954. XIf unset, the cursor is set to the end of the word if completion is
  955. Xstarted. Otherwise it stays there and completion is done from both ends.
  956. X.TP
  957. X\fBCORRECT\fP (\-\fB0\fP)
  958. XTry to correct the spelling of commands.
  959. X.TP
  960. X\fBCORRECT_ALL\fP (\-\fBO\fP)
  961. XTry to correct the spelling of all arguments in a line.
  962. X.TP
  963. X\fBCSH_JUNKIE_HISTORY\fP
  964. XA history reference without an event specifier will always refer to the
  965. Xprevious command.
  966. X.TP
  967. X\fBCSH_JUNKIE_LOOPS\fP
  968. XAllow loop bodies to take the form
  969. X"\fIlist\fP; \fBend\fP" instead of
  970. X"\fBdo\fP \fIlist\fP; \fBdone\fP".
  971. X.TP
  972. X\fBCSH_JUNKIE_PAREN\fP
  973. XAllow \fBfor\fP, \fBif\fP and \fBwhile\fP loops where the argument
  974. Xlist is given in parentheses.  Otherwise, the parentheses will be
  975. Xtreated as specifying a subshell.
  976. X.TP
  977. X\fBCSH_JUNKIE_QUOTES\fP
  978. XComplain if a quoted expression runs off the end of a line;
  979. Xprevent quoted expressions from containing unescaped newlines.
  980. X.TP
  981. X\fBCSH_NULL_GLOB\fP
  982. XIf a pattern for filename generation has no matches,
  983. Xdelete the pattern from the argument list;
  984. Xdo not report an error unless all the patterns
  985. Xin a command have no matches.
  986. XOverrides \fBNULLGLOB\fP.
  987. X.TP
  988. X\fBERR_EXIT\fP (\-\fBe\fP)
  989. XIf a command has a non-zero exit status, execute the \fBZERR\fP
  990. Xtrap, if set, and exit.  This is disabled while running initialization
  991. Xscripts.
  992. X.TP
  993. X\fBEXTENDED_GLOB\fP
  994. XTreat the #, ~ and ^ characters as part of patterns for filename
  995. Xgeneration, etc.  (An initial unquoted ~ always produces named
  996. Xdirectory expansion as in \fBFilename Expansion\fP above.)
  997. X.TP
  998. X\fBEXTENDED_HISTORY\fP
  999. XSave beginning and ending timestamps to the history file.
  1000. XThe format of these timestamps is
  1001. X\fI:<beginning time>:<ending time>:<command>.\fP
  1002. X.TP
  1003. X\fBGLOB_COMPLETE\fP
  1004. XWhen the current word has a glob pattern, do not insert all the words
  1005. Xresulting from the expansion but cycle through them like
  1006. X\fBMENU_COMPLETE\fP. If no matches are found, a `*' is added to the end of the
  1007. Xword or inserted at the cursor if \fBCOMPLETE_IN_WORD\fP is set, and expansion
  1008. Xis attempted again. Using patterns works not only for files but for all
  1009. Xcompletions, such as options, user names, etc.
  1010. X.TP
  1011. X\fBGLOB_DOTS\fP (\-\fB4\fP)
  1012. XDo not require a leading . in a filename to be matched explicitly.
  1013. X.TP
  1014. X\fBGLOB_SUBST\fP
  1015. XTreat any characters resulting from parameter substitution as being
  1016. Xeligible for file expansion and filename generation, and any
  1017. Xcharacters resulting from command substitution as being eligible for
  1018. Xfilename generation.
  1019. X.TP
  1020. X\fBHASH_CMDS\fP
  1021. XPlace the location of each command in the hash table the first
  1022. Xtime it is executed.  If this option is unset, no path hashing
  1023. Xwill be done at all.
  1024. X.TP
  1025. X\fBHASH_DIRS\fP
  1026. XWhenever a command is executed, hash the directory containing it,
  1027. Xas well as all directories that occur earlier in the path.
  1028. XHas no effect if \fBHASH_CMDS\fP is unset.
  1029. X.TP
  1030. X\fBHASH_LIST_ALL\fP
  1031. XWhenever a command completion is attempted, make sure the entire
  1032. Xcommand path is hashed first.  This makes the first completion slower.
  1033. X.TP
  1034. X\fBHIST_IGNORE_DUPS\fP (\-\fBh\fP)
  1035. XDo not enter command lines into the history list
  1036. Xif they are duplicates of the previous event.
  1037. X.TP
  1038. X\fBHIST_IGNORE_SPACE\fP (\-\fBg\fP)
  1039. XDo not enter command lines into the history list
  1040. Xif any command on the line begins with a blank.
  1041. X.TP
  1042. X\fBHIST_LIT\fP (\-\fBj\fP)
  1043. XUse literal (unparsed) versions of the history lines
  1044. Xin the editor.
  1045. X.TP
  1046. X\fBHIST_NO_STORE\fP
  1047. XRemove the \fBhistory\fP (\fBfc\fP \-\fBl\fP) command from
  1048. Xthe history when invoked.
  1049. X.TP
  1050. X\fBHIST_VERIFY\fP
  1051. XWhenever the user enters a line with history substitution,
  1052. Xdon't execute the line directly; instead, perform
  1053. Xhistory substitution and reload the line into the editing buffer.
  1054. X.TP
  1055. X\fBIGNORE_BRACES\fP (\-\fBI\fP)
  1056. XDo not perform brace expansion.
  1057. X.TP
  1058. X\fBIGNORE_EOF\fP (\-\fB7\fP)
  1059. XDo not exit on end-of-file.  Require the use
  1060. Xof \fBexit\fP or \fBlogout\fP instead.
  1061. X.TP
  1062. X\fBINTERACTIVE\fP (\-\fBi\fP)
  1063. XThis is an interactive shell.
  1064. X.TP
  1065. X\fBINTERACTIVE_COMMENTS\fP (\-\fBk\fP)
  1066. XAllow comments even in interactive shells.
  1067. X.TP
  1068. X\fBKSH_OPTION_PRINT\fP
  1069. XAlters the way options settings are printed.
  1070. X.TP
  1071. X\fBLIST_AMBIGUOUS\fP
  1072. XIf this option is set, completions are shown only if the completions
  1073. Xdon't have a unambiguous prefix or suffix that could be inserted in
  1074. Xthe command line.
  1075. X.TP
  1076. X\fBLIST_TYPES\fP (\-\fBX\fP)
  1077. XWhen listing files that are possible completions, show the
  1078. Xtype of each file with a trailing identifying mark.
  1079. X.TP
  1080. X\fBLOGIN\fP (\-\fBl\fP)
  1081. XThis is a login shell.
  1082. X.TP
  1083. X\fBLONG_LIST_JOBS\fP (\-\fBR\fP)
  1084. XList jobs in the long format by default.
  1085. X.TP
  1086. X\fBMAGIC_EQUAL_SUBST\fP
  1087. XAll unquoted arguments of the from \fIidentifier\fB=\fIexpression\fR
  1088. Xhave file expansion performed on \fIexpression\fR as if it were a
  1089. Xparameter assignment, although the argument is not otherwise treated
  1090. Xspecially.
  1091. X.TP
  1092. X\fBMAIL_WARNING\fP (\-\fBU\fP)
  1093. XPrint a warning message if a mail file has been
  1094. Xaccessed since the shell last checked.
  1095. X.TP
  1096. X\fBMARK_DIRS\fP (\-\fB8\fP)
  1097. XAppend a trailing / to all directory
  1098. Xnames resulting from filename generation (globbing).
  1099. X.TP
  1100. X\fBMENU_COMPLETE\fP (\-\fBY\fP)
  1101. XOn an ambiguous completion, instead of listing possibilities or beeping,
  1102. Xinsert the first match immediately.  Then when completion is requested
  1103. Xagain, remove the first match and insert the second match, etc.
  1104. XWhen there are no more matches, go back to the first one again.
  1105. X\fBreverse-menu-complete\fP may be used to loop through the list
  1106. Xin the other direction. This option overrides \fBAUTO_MENU\fP.
  1107. X.TP
  1108. X\fBMONITOR\fP (\-\fBm\fP)
  1109. XAllow job control.  Set by default in interactive shells.
  1110. X.TP
  1111. X\fBNO_BAD_PATTERN\fP (\-\fB2\fP)
  1112. XIf a pattern for filename generation is badly formed,
  1113. Xleave it unchanged in the argument list instead of
  1114. Xprinting an error.
  1115. X.TP
  1116. X\fBNO_BANG_HIST\fP (\-\fBK\fP)
  1117. XDo not perform textual history substitution.  Do not
  1118. Xtreat the ! character specially.
  1119. X.TP
  1120. X\fBNO_BEEP\fP (\-\fBB\fP)
  1121. XDo not beep.
  1122. X.TP
  1123. X\fBNO_CLOBBER\fP (\-\fB1\fP)
  1124. XPrevents \fB>\fP redirection from truncating existing files.
  1125. X\fB>!\fP may be used to truncate a file instead.
  1126. XAlso prevents \fB>>\fP from creating files.
  1127. X\fB>>!\fP may be used instead.
  1128. X.TP
  1129. X\fBNO_EQUALS\fP
  1130. XDon't perform \fB=\fP filename substitution.
  1131. X.TP
  1132. X\fBNO_EXEC\fP (\-\fBn\fP)
  1133. XRead commands and check them for syntax errors, but do not execute them.
  1134. X.TP
  1135. X\fBNO_GLOB\fP (\-\fBF\fP)
  1136. XDisable filename generation.
  1137. X.TP
  1138. X\fBNO_FLOW_CONTROL\fP
  1139. XDisable output flow control via start/stop characters (usually assigned to
  1140. X^S/^Q) in the shell's editor.
  1141. X.TP
  1142. X\fBNO_HIST_BEEP\fP
  1143. XDon't beep when an attempt is made to access a history entry which
  1144. Xisn't there.
  1145. X.TP
  1146. X\fBNO_HUP\fP
  1147. XDon't send the \fBHUP\fP signal to running jobs when the
  1148. Xshell exits.
  1149. X.TP
  1150. X\fBNO_LIST_BEEP\fP
  1151. XDon't beep on an ambiguous completion.
  1152. X.TP
  1153. X\fBNO_NOMATCH\fP (\-\fB3\fP)
  1154. XIf a pattern for filename generation has no matches,
  1155. Xleave it unchanged in the argument list instead of
  1156. Xprinting an error.  This also applies to file expansion 
  1157. Xof an initial ~ or =.
  1158. X.TP
  1159. X\fBNO_PROMPT_CR\fP (\-\fBV\fP)
  1160. XDon't print a carriage return just before printing
  1161. Xa prompt in the line editor.
  1162. X.TP
  1163. X\fBNO_RCS\fP (\-\fBf\fP)
  1164. XSource only the /etc/zshenv file.
  1165. XDo not source the .zshenv, /etc/zprofile, .zprofile,
  1166. X/etc/zshrc, .zshrc, /etc/zlogin, .zlogin, or .zlogout files.
  1167. X.TP
  1168. X\fBNO_SHORT_LOOPS\fP
  1169. XDisallow the short forms of \fBfor\fP, \fBselect\fP,
  1170. X\fBif\fP, and \fBfunction\fP constructs.
  1171. X.TP
  1172. X\fBNOTIFY\fP (\-\fB5\fP)
  1173. XReport the status of background jobs immediately, rather than
  1174. Xwaiting until just before printing a prompt.
  1175. X.TP
  1176. X\fBNO_UNSET\fP (\-\fBu\fP)
  1177. XTreat unset parameters as an error when substituting.
  1178. X.TP
  1179. X\fBNULL_GLOB\fP (\-\fBG\fP)
  1180. XIf a pattern for filename generation has no matches,
  1181. Xdelete the pattern from the argument list instead
  1182. Xof reporting an error.  Overrides \fBNO_NOMATCH\fP.
  1183. X.TP
  1184. X\fBNUMERIC_GLOB_SORT\fP
  1185. XIf numeric filenames are matched by a filename generation pattern,
  1186. Xsort the filenames numerically rather than lexicographically.
  1187. X.TP
  1188. X\fBOVER_STRIKE\fP
  1189. XStart up the line editor in overstrike mode.
  1190. X.TP
  1191. X\fBPATH_DIRS\fP (\-\fBQ\fP)
  1192. XPerform a path search even on command names with slashes in them.
  1193. XThus if "/usr/local/bin" is in the user's path, and he types
  1194. X"X11/xinit", the command "/usr/local/bin/X11/xinit" will be executed
  1195. X(assuming it exists).
  1196. XThis applies to the \fB\&.\fP builtin as well as to command execution.
  1197. XCommands explicitly beginning with "./" or "../" are not subject to
  1198. Xpath search.
  1199. X.TP
  1200. X\fBPRINT_EXIT_VALUE\fP (\-\fBC\fP)
  1201. XPrint the exit value of programs with non-zero exit status.
  1202. X.TP
  1203. X\fBPROMPT_SUBST\fP
  1204. XIf set expressions like \fB${...}\fP, \fB$(...)\fP, and \fB$[...]\fP
  1205. Xin prompts will be expanded.
  1206. X.TP
  1207. X\fBPUSHD_IGNORE_DUPS\fP
  1208. XDon't push multiple copies of the same directory onto the directory stack.
  1209. X.TP
  1210. X\fBPUSHD_MINUS\fP
  1211. XSee \fBpopd\fP below.
  1212. X.TP
  1213. X\fBPUSHD_SILENT\fP (\-\fBE\fP)
  1214. XDo not print the directory stack after \fBpushd\fP
  1215. Xor \fBpopd\fP.
  1216. X.TP
  1217. X\fBPUSHD_TO_HOME\fP (\-\fBD\fP)
  1218. XHave \fBpushd\fP with no arguments act like
  1219. X\fBpushd\fP $HOME.
  1220. X.TP
  1221. X\fBRC_EXPAND_PARAM\fP (\-\fBP\fP)
  1222. XSee \fIParameter Expansion\fP.
  1223. X.TP
  1224. X\fBRC_QUOTES\fP
  1225. XAllow the character sequence \fB''\fP to signify a single quote
  1226. Xwithin singly quoted strings.
  1227. X.TP
  1228. X\fBREC_EXACT\fP (\-\fBS\fP)
  1229. XIn completion, recognize exact matches even
  1230. Xif they are ambiguous.
  1231. X.TP
  1232. X\fBRM_STAR_SILENT\fP (\-\fBH\fP)
  1233. XDo not query the user before executing "rm *" or "rm path/*".
  1234. X.TP
  1235. X\fBSHIN_STDIN\fP (\-\fBs\fP)
  1236. XRead commands from the standard input.
  1237. X.TP
  1238. X\fBSH_WORD_SPLIT\fP (\-\fBy\fP)
  1239. XSee \fIParameter Expansion\fP.
  1240. X.TP
  1241. X\fBSINGLE_LINE_ZLE\fP (\-\fBM\fP)
  1242. XUse single-line command line editing instead of multi-line.
  1243. X.TP
  1244. X\fBSUN_KEYBOARD_HACK\fP (\-\fBL\fP)
  1245. XIf a line ends with a backquote, and there are an odd number
  1246. Xof backquotes on the line, ignore the trailing backquote.
  1247. XThis is useful on some keyboards where the return key is
  1248. Xtoo small, and the backquote key lies annoyingly close to it.
  1249. X.TP
  1250. X\fBVERBOSE\fP (\-\fBv\fP)
  1251. XPrint shell input lines as they are read.
  1252. X.TP
  1253. X\fBXTRACE\fP (\-\fBx\fP)
  1254. XPrint commands and their arguments as they are executed.
  1255. X.TP
  1256. X\fBZLE\fP (\-\fBZ\fP)
  1257. XUse the zsh line editor.
  1258. X.RE
  1259. X.PD
  1260. X.SH "SHELL BUILTIN COMMANDS"
  1261. X.TP
  1262. X\fB\&.\fP \fIfile\fP [ \fIarg\fP ... ]
  1263. XRead commands from \fIfile\fP and execute them in the current shell
  1264. Xenvironment.
  1265. XIf \fIfile\fP does not contain a slash, or if \fBPATH_DIRS\fP
  1266. Xis set, the shell looks in the components of \fBpath\fP to find the
  1267. Xdirectory containing \fIfile\fP.
  1268. XFiles in the current directory are not read unless "." appears
  1269. Xsomewhere in \fBpath\fP.
  1270. XIf any arguments \fIarg\fP are given,
  1271. Xthey become the positional parameters; the old positional
  1272. Xparameters are restored when the \fIfile\fP is done executing.
  1273. XThe exit status is the exit status of the last command executed.
  1274. X.TP
  1275. X\fB:\fP [ \fIarg\fP ... ]
  1276. XThis command only expands parameters.  A zero exit code is returned.
  1277. X.TP
  1278. X\fBalias\fP [ \-\fBgrm\fP ] [ \fIname\fP[=\fIvalue\fP] ] ...
  1279. XWith no arguments, print the list of aliases in the form
  1280. X\fIname\fP=\fBvalue\fP on the standard output.
  1281. XFor each \fIname\fP with a corresponding \fIvalue\fP, define an alias 
  1282. Xwith that value.
  1283. XA trailing space in \fIvalue\fP causes the next
  1284. Xword to be checked for alias substitution.
  1285. XIf the \-\fBg\fP flag is present, define a global alias; global aliases
  1286. Xare expanded even if they do not occur in command position.
  1287. XFor each \fIname\fP with no \fIvalue\fP, print the value of \fIname\fP,
  1288. Xif any.
  1289. XIf only the \-\fBg\fP or the \-\fBr\fP flags are given only global or regular
  1290. Xaliases are listed. If the \-\fBm\fP flag is given the arguments are taken
  1291. Xas patterns (they should be quoted to preserve them from being
  1292. Xinterpreted as glob patterns) and the aliases matching these patterns
  1293. Xare printed.
  1294. XThe exit status is nonzero if a \fIname\fP (with no \fIvalue\fP) is
  1295. Xgiven for which no alias has been defined.
  1296. X.TP
  1297. X\fBautoload\fP [ \fIname\fP ... ]
  1298. XFor each of the \fIname\fPs (which are names of functions),
  1299. Xcreate a function marked undefined.
  1300. XThe \fBfpath\fP variable will be searched to find the
  1301. Xactual function definition when the function is first referenced.
  1302. X.TP
  1303. X.PD 0
  1304. X\fBbg\fP [ \fIjob\fP ... ]
  1305. X.TP
  1306. X\fIjob\fP ... \fB&\fP
  1307. X.PD
  1308. XPut each specified \fIjob\fP in the background,
  1309. Xor the current job if none is specified.
  1310. X.TP
  1311. X.PD 0
  1312. X\fBbindkey\fP \-\fBmevd
  1313. X.TP
  1314. X\fBbindkey\fP \-\fBr\fP \fIin-string\fP ...
  1315. X.TP
  1316. X\fBbindkey\fP [ \-\fBa\fP ] \fIin-string\fP [ \fIcommand\fP ] ...
  1317. X.TP
  1318. X\fBbindkey\fP \-\fBs\fP [ \-\fBa\fP ] \fIin-string\fP \fIout-string\fP ...
  1319. X.PD
  1320. XThe \-\fBe\fP and \-\fBv\fP options put the keymaps in emacs mode or vi mode
  1321. Xrespectively; they cannot be used simultaneously. The \-\fBd\fP option resets
  1322. Xall bindings to the compiled-in settings. If not used with options \-\fBe\fP
  1323. Xor \-\fBv\fP, the maps will be left in emacs mode, or in vi mode if the
  1324. X\fBVISUAL\fP or \fBEDITOR\fP variables exist and contain the string "vi".
  1325. XMetafied characters are bound to self-insert by default. The \-\fBm\fP option
  1326. Xloads the compiled-in bindings of these characters for the mode determined by
  1327. Xthe preceding options, or the current mode if used alone. Any previous bindings
  1328. Xdone by the user will be preserved. If the \-\fBr\fP option is given, remove
  1329. Xany binding for each \fIin-string\fP. If the \-\fBs\fP option is not
  1330. Xspecified, bind each \fIin-string\fP to a specified \fIcommand\fP. If no
  1331. X\fIcommand\fP is specified, print the binding of \fIin-string\fP if it is
  1332. Xbound, or return a nonzero exit code if it is not bound. If the \-\fBs\fP
  1333. Xoption is specified, bind each \fIin-string\fP to each specified
  1334. X\fIout-string\fP. When \fIin-string\fP is typed, \fIout-string\fP will be
  1335. Xpushed back and treated as input to the line editor. This process is recursive
  1336. Xbut, to avoid infinite loops, the shell will report an error if more than 20
  1337. Xconsecutive replacements happen. If the \-\fBa\fP option is specified, bind
  1338. Xthe \fIin-strings\fP in the alternative keymap instead of the standard one.
  1339. XThe alternative keymap is used in vi command mode.
  1340. X.sp
  1341. XIt's possible for an \fIin-string\fP to be bound to something and also be the
  1342. Xbeginning of a longer bound string. In this case the shell
  1343. Xwill wait a certain time to see if more characters are typed and if not it
  1344. Xwill execute the binding. This timeout is defined by the KEYTIMEOUT
  1345. Xparameter; its default is 0.4 sec. No timeout is done if the prefix string is
  1346. Xnot bound.
  1347. X.RS
  1348. X.PP
  1349. XFor either \fIin-string\fP or \fIout-string\fP, control characters
  1350. Xmay be specified in the form \fB^X\fP, and the backslash may
  1351. Xbe used to introduce one of the following escape sequences:
  1352. X.RS
  1353. X.PD 0
  1354. X.TP
  1355. X.B \ea
  1356. Xbell character
  1357. X.TP
  1358. X.B \en
  1359. Xlinefeed (newline)
  1360. X.TP
  1361. X.B \eb
  1362. Xbackspace
  1363. X.TP
  1364. X.B \et
  1365. Xhorizontal tab
  1366. X.TP
  1367. X.B \ev
  1368. Xvertical tab
  1369. X.TP
  1370. X.B \ef
  1371. Xform feed
  1372. X.TP
  1373. X.B \er
  1374. Xcarriage return
  1375. X.TP
  1376. X.B \ee, \eE
  1377. Xescape
  1378. X.TP
  1379. X.B \eNNN
  1380. Xcharacter code in octal
  1381. X.TP
  1382. X.B \exNN
  1383. Xcharacter code in hexadecimal
  1384. X.TP
  1385. X.B \eM\-xxx
  1386. Xcharacter or escape sequence with meta bit set. The `-' after the `M' is
  1387. Xoptional.
  1388. X.TP
  1389. X.B \eC\-X
  1390. Xcontrol character.  The `-' after the `C' is optional.
  1391. X.PD
  1392. X.PP
  1393. X.RE
  1394. XIn all other cases, \e escapes the following character.  Delete is
  1395. Xwritten as `\fB^?\fP'. Note that `\eM^?' and `^\eM?' are not the same.
  1396. X.sp
  1397. XMulti-character \fIin-string\fPs cannot contain the null character ("^@" or
  1398. X"^ "). If they appear in a bindkey command, they will be silently translated
  1399. Xto "\eM-^@". This restriction does not apply to \fIout-string\fPs,
  1400. Xsingle-character \fIin-string\fPs and the first character of a multi-char
  1401. X\fIin-string\fP.
  1402. X.RE
  1403. X.TP
  1404. X\fBbreak\fP [ \fIn\fP ]
  1405. XExit from an enclosing \fBfor\fP, \fBwhile\fP,
  1406. X\fBuntil\fP, \fBselect\fP, or \fBrepeat\fP loop.  If \fIn\fP
  1407. Xis specified, then break \fIn\fP levels instead of just one.
  1408. X.TP
  1409. X\fBbuiltin\fP \fIname\fP [ \fIargs\fP ] ...
  1410. XExecutes the builtin \fIname\fP, with the given \fIargs\fP.
  1411. X.TP
  1412. X\fBbye\fP
  1413. XSame as \fBexit\fP.
  1414. X.TP
  1415. X.PD 0
  1416. X\fBcd\fP [ \fIarg\fP ]
  1417. X.TP
  1418. X\fBcd\fP \fIold\fP \fInew\fP
  1419. X.TP
  1420. X\fBcd\fP \(+-\fBn\fP
  1421. X.PD
  1422. XChange the current directory.  In the first form, change the
  1423. Xcurrent directory to \fIarg\fP, or to the value of \fBHOME\fP if
  1424. X\fIarg\fP is not specified.  If \fIarg\fP is \-, change to the
  1425. Xvalue of \fBOLDPWD\fP, the previous directory.
  1426. XIf a directory named \fIarg\fP is not found in the current directory
  1427. Xand \fIarg\fP does not begin with a slash,
  1428. Xsearch each component of the shell parameter \fBcdpath\fP.
  1429. XIf the option \fBCDABLEVARS\fP is set, and a parameter named \fIarg\fP
  1430. Xexists whose value begins with a slash, treat its value as
  1431. Xthe directory.
  1432. X.RS
  1433. X.PP
  1434. XThe second form of \fBcd\fP substitutes the string \fInew\fP
  1435. Xfor the string \fIold\fP in the name of the current directory,
  1436. Xand tries to change to this new directory.
  1437. X.PP
  1438. XThe third form of \fBcd\fP is equivalent to \fBpopd\fP.
  1439. X.RE
  1440. X.TP
  1441. X\fBchdir\fP
  1442. XSame as \fBcd\fP.
  1443. X.TP
  1444. X.PD 0
  1445. X\fBcompctl\fP [ \-\fBcfqovbCDAIFpEjBaRGuderzNOZn\fP ] [ \-\fBk\fP \fIname\fP ]
  1446. X.br
  1447. X[ \-\fBX\fP \fIexplanation\fP ] [ \-\fBK\fP \fIfunction\fP ] 
  1448. X.br
  1449. X[ \-\fBP\fP \fIprefix\fP ] [ \-\fBS\fP \fIsuffix\fP ]
  1450. X.br
  1451. X[ \-\fBg\fP \fIglobstring\fP ] [ \-\fBs\fP \fIsubststring\fP ] 
  1452. X.br
  1453. X[ \-\fBH\fP \fInum pattern\fP ] [ \-\fBl\fP \fIcmd\fP ] [
  1454. X\fIarg\fP ... ]
  1455. X.TP
  1456. X\fBcompctl\fP \fIflags\fP \fB+\fP \fIflags\fP \fB+\fP ...
  1457. X.TP
  1458. X\fBcompctl\fP \fIflags\fP \-\fBx\fP \fIpattern\fP \fIflags\fP \- ... \-\- \fIarg\fP ...
  1459. X.PD
  1460. XControl the editor's completion behavior when one of \fIarg\fP is the current
  1461. Xcommand.  (Note that aliases are expanded before this is determined,
  1462. Xunless the \fBCOMPLETE_ALIASES\fP option is set.)
  1463. XWith the \-\fBD\fP flag, control default completion behavior
  1464. Xfor commands not assigned any special behavior; with \-\fBC\fP, control
  1465. Xcompletion when there is no current command.  The remaining options
  1466. Xspecify the type of command arguments to look for during completion.
  1467. XIf completion is attempted for a command with a pathname containing
  1468. Xslashes and no completion definition is found, the search is retried
  1469. Xwith the last pathname component.
  1470. X.RS
  1471. X.TP
  1472. X.PD 0
  1473. X\-\fBc\fP
  1474. XExpect command names.
  1475. X.TP
  1476. X\-\fBf\fP
  1477. XExpect filenames and filesystem paths.
  1478. X.TP
  1479. X\-\fBo\fP
  1480. XExpect option names.
  1481. X.TP
  1482. X\-\fBv\fP
  1483. XExpect variable names.
  1484. X.TP
  1485. X\-\fBb\fP
  1486. XExpect key binding names.
  1487. X.TP
  1488. X\-\fBA\fP
  1489. XExpect array names.
  1490. X.TP
  1491. X\-\fBI\fP
  1492. XExpect integer variable names.
  1493. X.TP
  1494. X\-\fBF\fP
  1495. XExpect function names.
  1496. X.TP
  1497. X\-\fBp\fP
  1498. XExpect parameter names.
  1499. X.TP
  1500. X\-\fBE\fP
  1501. XExpect environment variable names.
  1502. X.TP
  1503. X\-\fBj\fP
  1504. XExpect job names (the first word of the job leader's command line, useful
  1505. Xwith the \fBkill\fP builtin).
  1506. X.TP
  1507. X\-\fBr\fP
  1508. XExpect names of running jobs.
  1509. X.TP
  1510. X\-\fBz\fP
  1511. XExpect names of suspended jobs.
  1512. X.TP
  1513. X\-\fBB\fP
  1514. XExpect names of builtin commands.
  1515. X.TP
  1516. X\-\fBa\fP
  1517. XExpect alias names.
  1518. X.TP
  1519. X\-\fBR\fP
  1520. XExpect names of regular aliases.
  1521. X.TP
  1522. X\-\fBG\fP
  1523. XExpect names of global aliases.
  1524. X.TP
  1525. X\-\fBu\fP
  1526. XExpect user names.
  1527. X.TP
  1528. X\-\fBd\fP
  1529. XExpect names of disabled commands.
  1530. X.TP
  1531. X\-\fBe\fP
  1532. XExpect names of executable (and enabled) commands.
  1533. X.TP
  1534. X\-\fBN\fP
  1535. XExpect names of scalar parameters.
  1536. X.TP
  1537. X\-\fBO\fP
  1538. XExpect names of readonly variables.
  1539. X.TP
  1540. X\-\fBZ\fP
  1541. XExpect names of shell special parameters.
  1542. X.TP
  1543. X\-\fBn\fP
  1544. XExpect named directories.
  1545. X.TP
  1546. X\-\fBq\fP
  1547. XIf given together with a suffix (see the \-\fBS\fP flag below) it
  1548. Xmakes this suffix be removed if the next character typed is a blank or
  1549. Xdoes not insert anything (this is the same rule as used for the
  1550. X\fBAUTO_REMOVE_SLASH\fP option).
  1551. X.TP
  1552. X\-\fBk\fP \fIname\fP
  1553. XExpect names taken from the elements of \fB$name\fP (which should be
  1554. Xan array).  Alternatively, the
  1555. Xargument \fIname\fP itself may be a set of space- or comma-separated
  1556. Xvalues in parentheses, in which any delimiter may be escaped with a
  1557. Xbackslash.  (Example: `compctl -k "(cputime filesize datasize stacksize
  1558. Xcoredumpsize resident descriptors)" limit'.)
  1559. X.TP
  1560. X\-\fBK\fP \fIfunction\fP
  1561. XCall the given function to get the completions.  The function gets two
  1562. Xarguments: the prefix and the suffix of the word on which completion
  1563. Xis tried.
  1564. XThe function should set the variable \fBreply\fP to an array
  1565. Xcontaining the completions (one completion per element); note that
  1566. X\fBreply\fP should not be made local.  From such a function the
  1567. Xcommand line can be accessed with the \fB\-c\fP and \fB\-l\fP flags to
  1568. Xthe \fBread\fP builtin.
  1569. X(Example: `function whoson { reply=(`users`); };
  1570. Xcompctl -K whoson talk' completes only logged-on users after `talk'.) Note
  1571. Xthat whoson must return an array so that just "reply=`users`" is incorrect.
  1572. X.TP
  1573. X\-\fBX\fP \fIexplanation\fP
  1574. XPrint the explanation string when trying completion. A `%n' in
  1575. Xthis string is replaced by the number of matches.
  1576. X.TP
  1577. X\-\fBP\fP \fIprefix\fP
  1578. XThe \fIprefix\fP is inserted just before the completed string; any
  1579. Xinitial part already typed will be completed and the whole \fIprefix\fP
  1580. Xignored for completion purposes. (Example: `compctl -j -P "%"
  1581. Xkill').
  1582. X.TP
  1583. X\-\fBS\fP \fIsuffix\fP
  1584. XAfter a unique completion is found the \fIsuffix\fP is inserted after
  1585. Xthe completed string.
  1586. X.TP
  1587. X\-\fBg\fP \fIglobstring\fP
  1588. XThe \fIglobstring\fP is expanded using filename globbing; it should be
  1589. Xquoted to protect it from immediate expansion. The resulting
  1590. Xfilenames are taken as the possible completions.  Use `*(/)' instead of
  1591. X`*/' for directories.  The \fBfignore\fP special parameter is not used.
  1592. XMore than one pattern may be given separated by blanks. (Note that
  1593. Xbrace expansion is \fInot\fP part of globbing.)
  1594. X.TP
  1595. X\-\fBs\fP \fIsubststring\fP
  1596. XThe \fIsubstring\fP is split into words and these words are than
  1597. Xexpanded using all shell expansion mechanisms. The resulting words are
  1598. Xtaken as possible completions. The \fBfignore\fP special parameter is
  1599. X\fInot\fP used.  Note that \-\fBg\fP is faster for filenames.
  1600. X.TP
  1601. X\-\fBH\fP \fInum pattern\fP
  1602. XThe possible completions are taken from the last \fInum\fP history
  1603. Xlines. Only words matching \fIpattern\fP are taken. If \fInum\fP is
  1604. Xzero or negative the whole history is searched and if \fIpattern\fP is
  1605. Xthe empty string (or \fB'*'\fP, of course) all words are taken.
  1606. X.TP
  1607. X\-\fBl\fP \fIcmd\fP
  1608. XThis option can not be combined with any other option. If it is given
  1609. Xit restricts the range of command line words that are considered to be
  1610. Xarguments. By default this range contains all arguments without the
  1611. Xcommand string. If combined with extended completion (see below) and
  1612. Xone of the patterns 
  1613. X`\fBp\fP[...]', `\fBr\fP[...]', or `\fBR\fP[...]' the range is
  1614. Xrestricted to the arguments between the ones that are specified in the
  1615. Xbrackets. After the range of arguments is determined completion is
  1616. Xdone in it as if they were arguments to the \fIcmd\fP given with this
  1617. Xoption. If this string is empty the first word in the range is taken
  1618. Xas the command name for which to complete. In this case, if the cursor
  1619. Xis in the first word, command names are completed.
  1620. XExample: `compctl -x 'r[-exec,;]' -l '' -- find' completes the
  1621. Xarguments between `-exec' and the following `;' (or the end of the
  1622. Xcommand line if there is no such string) as if they were specifying a
  1623. Xcommand on there own.
  1624. X.TP
  1625. X\-\fBU\fP
  1626. XUse the whole list of possible completions, whether or not they actually
  1627. Xmatch the word on the command line.  The word typed so far will be
  1628. Xdeleted.  This is most useful with a function (\-\fBK\fP option), which
  1629. Xcan examine the word via the \fBread\fP builtin's \-\fBc\fP and
  1630. X\-\fBl\fP flags and use its own criterion to decide what matches.
  1631. X.LP
  1632. X.PD 0
  1633. X.PP
  1634. XThe second form specifies alternative options. First completion is
  1635. Xtried with the options before the first `+'. If this produces no
  1636. Xmatches completion is tried with the flags after the `+' and so on. If
  1637. Xthere are no flags after the last `+' this means that default
  1638. Xcompletion is tried if no matches were found.
  1639. X.LP
  1640. X.PD 0
  1641. X.PP
  1642. XThe third form specifies extended completion for the commands given as
  1643. X\fIarg\fP. Each \fIpattern\fP is examined in turn; when a match is found,
  1644. Xthe corresponding \fIflags\fP, as described above for the ordinary case,
  1645. Xare used to generate possible completions.  If no \fIpattern\fP matches,
  1646. Xthe \fIflags\fP given before the \-\fBx\fP are used.  Note that each
  1647. Xpattern should be supplied as a single argument and should be
  1648. Xquoted to prevent expansion of metacharacters by the shell. A \fIpattern\fP
  1649. Xis built of sub\-patterns separated by commas; it matches if at least one of 
  1650. Xthese sub\-patterns matches (they are `or'ed'). These sub\-patterns are in
  1651. Xturn composed of other sub\-patterns separated by white spaces which match
  1652. Xif all of the sub\-patterns match (they are `and'ed'). 
  1653. XAn element of the sub\-patterns is of the form 'c[...][...]', where
  1654. Xthe pairs of brackets may be repeated as often as necessary, and matches
  1655. Xif any of the sets of brackets match (an `or').  These elements may be
  1656. Xany of the following:
  1657. X.sp
  1658. X.RS
  1659. X.TP
  1660. X.PD 0
  1661. X\fBs\fP[\fIstring\fP] ...
  1662. XThe pattern matches if the current word on the command line starts with
  1663. Xone of the strings given in brackets.  The \fIstring\fP is not removed
  1664. Xand is not part of the completion.
  1665. X.TP
  1666. X\fBS\fP[\fIstring\fP] ...
  1667. XLike \fBs\fP[\fIstring\fP] but the \fIstring\fP is part of the completion.
  1668. X.TP
  1669. X\fBp\fP[\fIfrom\fP,\fIto\fP] ...
  1670. XThe pattern matches if the number of the current word is between one of
  1671. Xthe \fIfrom\fP and \fIto\fP pairs. The comma and \fIto\fP are optional;
  1672. X\fIto\fP defaults to the same value as \fIfrom\fP. The numbers may be
  1673. Xnegative: \fI\-n\fP refers to the \fIn\fP'th last word on the line.
  1674. X.TP
  1675. X\fBc\fP[\fIoffset\fP,\fIstring\fP] ...
  1676. XThe pattern matches if one of the \fIstring\fPs matches the word offset by
  1677. X\fIoffset\fP from the current word position.
  1678. X.TP
  1679. X\fBC\fP[\fIoffset\fP,\fIpattern\fP] ...
  1680. XThis is like \fBc\fP but uses pattern matching instead.
  1681. X.TP
  1682. X\fBw\fP[\fIindex\fP,\fIstring\fP] ...
  1683. XThe pattern matches if the word in position \fIindex\fP is equal
  1684. Xto the corresponding \fIstring\fP.  Note that the word count is made
  1685. Xafter alias expansion.
  1686. X.TP
  1687. X\fBW\fP[\fIindex\fP,\fIpattern\fP] ...
  1688. XLike \fBw\fP but using pattern matching instead.
  1689. X.TP
  1690. X\fBn\fP[\fIindex\fP,\fIstring\fP] ...
  1691. XMatches if the current word contains \fIstring\fP. Anything up to and
  1692. Xincluding the
  1693. X\fIindex\fP'th occurrence of this string will not be considered part of
  1694. Xthe completion, but the rest will.
  1695. X.TP
  1696. X\fBN\fP[\fIindex\fP,\fIstring\fP] ...
  1697. XLike \fBn\fP[\fIindex\fP,\fIstring\fP] but the string will be taken as
  1698. Xa character class (anything up to and including the \fIindex\fP'th
  1699. Xoccurrence of any 
  1700. Xof the characters in \fIstring\fP will not be considered part of the
  1701. Xcompletion).
  1702. X.TP
  1703. X\fBm\fP[\fImin\fP,\fImax\fP] ...
  1704. XMatches if the total number of words lies between \fImin\fP and
  1705. X\fImax\fP (inclusive).
  1706. X.TP
  1707. X\fBr\fP[\fIstr1\fP,\fIstr2\fP]...
  1708. XMatches if the cursor is after a word with prefix \fIstr1\fP. If there
  1709. Xis also a word with prefix \fIstr2\fP on the command line it matches
  1710. Xonly if the cursor is before this word.
  1711. X.TP
  1712. X\fBR\fP[\fIstr1\fP,\fIstr2\fP]...
  1713. XLike \fBr\fP but using pattern matching instead.
  1714. X.RE
  1715. X.sp
  1716. X.PD
  1717. XExample:
  1718. X.RS
  1719. X.PP
  1720. X.nf
  1721. Xcompctl -u -x 's[+] c[-1,-f],s[-f+]' -g '~/Mail/*(:t)' \e
  1722. X- 's[-f],c[-1,-f]' -f -- mail
  1723. X.fi
  1724. X.RE
  1725. X.PP
  1726. XComplete users by default.  After a -f with an optional space, complete
  1727. Xfile names; if a + follows the -f, whether or not there is a space in
  1728. Xbetween, complete with the non-directory part of files in the directory
  1729. X~/Mail.
  1730. X.PD
  1731. X.RE
  1732. X.TP
  1733. X\fBcontinue\fP [ \fInum\fP ]
  1734. XResume the next iteration of the enclosing
  1735. X\fBfor\fP, \fBwhile\fP, \fBuntil\fP, \fBselect\fP, or
  1736. X\fBrepeat\fP loop.  If \fIn\fP is specified, break out of
  1737. X\fIn\fP \- 1 loops and resume at the \fIn\fPth enclosing loop.
  1738. X.TP
  1739. X\fBdeclare\fP [ \fIarg\fP ... ]
  1740. XSame as \fBtypeset\fP.
  1741. X.TP
  1742. X\fBdirs\fP [ \-\fBv\fP ] [ \fIarg\fP ... ]
  1743. XWith no arguments, print the contents of the directory stack.
  1744. XIf the \-\fBv\fP option is given, number the directories
  1745. Xin the stack when printing.
  1746. XDirectories are added to this stack with the \fBpushd\fP command,
  1747. Xand removed with the \fBcd\fP or \fBpopd\fP commands.
  1748. XIf arguments are specified, load them onto the directory stack,
  1749. Xreplacing anything that was there, and push the current directory
  1750. Xonto the stack.
  1751. X.TP
  1752. X\fBdisable\fP [ \-\fBm\fP ] \fIarg\fP ...
  1753. XDisable the builtin \fIarg\fP temporarily.  This allows you to use
  1754. Xan external command with the same name as a shell builtin.
  1755. XWithout arguments all disabled builtins are printed, with the
  1756. X\-\fBm\fP flag the arguments are taken as patterns (should be quoted
  1757. Xto preserve them from being taken as glob patterns) and all builtins
  1758. Xmatching these patterns are disabled.
  1759. XActually the same as \fBunhash\fP.
  1760. XBuiltins can be enabled with the \fBenable\fP command.
  1761. X.TP
  1762. X\fBdisown\fP \fIjob\fP ...
  1763. XRemove the specified jobs from the job table; the shell will
  1764. Xno longer report their status, and will not complain if you
  1765. Xtry to exit an interactive shell with them running or stopped.
  1766. X.TP
  1767. X\fBecho\fP [ \-\fBn\fP ] [ \fIarg\fP ... ]
  1768. XWrite each \fIarg\fP on the standard output, with a space separating
  1769. Xeach one.
  1770. XIf the \-\fBn\fP flag is not present, print a newline at the end.
  1771. X\fBecho\fP recognizes the following escape sequences:
  1772. X.RS
  1773. X.PD 0
  1774. X.TP
  1775. X.B \ea
  1776. Xbell character
  1777. X.TP
  1778. X.B \eb
  1779. Xbackspace
  1780. X.TP
  1781. X.B \ec
  1782. Xdon't print an ending newline
  1783. X.TP
  1784. X.B \ee
  1785. Xescape
  1786. X.TP
  1787. X.B \ef
  1788. Xform feed
  1789. X.TP
  1790. X.B \en
  1791. Xnewline
  1792. X.TP
  1793. X.B \er
  1794. Xcarriage return
  1795. X.TP
  1796. X.B \et
  1797. Xhorizontal tab
  1798. X.TP
  1799. X.B \ev
  1800. Xvertical tab
  1801. X.TP
  1802. X.B \e\e
  1803. Xbackslash
  1804. X.TP
  1805. X.B \e0NNN
  1806. Xcharacter code in octal, with a maximum of three digits after the
  1807. Xzero; a non-octal digit terminates the number
  1808. X.TP
  1809. X.B \exNN
  1810. Xcharacter code in hexadecimal, with a maximum of two digits after the
  1811. X`x'; a non-hexadecimal digit terminates the number.
  1812. X.PD
  1813. X.RE
  1814. X.TP
  1815. X\fBechotc\fP \fIcap\fP [ \fIarg\fP ... ]
  1816. XOutput the termcap string corresponding to the capability
  1817. X\fIcap\fP, with optional arguments.
  1818. X.TP
  1819. X\fBenable\fP [ \-\fBm\fP ] \fIarg\fP ...
  1820. XEnable the specified builtin commands, presumably disabled earlier
  1821. Xwith \fBdisable\fP.
  1822. XWithout arguments the enabled builtins are printed and with the
  1823. X\-\fBm\fP flag the arguments are taken as patterns (should be quoted)
  1824. Xand all builtins matching these patterns are enabled.
  1825. X.TP
  1826. X\fBeval\fP [ \fIarg\fP ... ]
  1827. XRead the arguments as input to the shell and execute the resulting
  1828. Xcommand(s) in the current shell process.
  1829. X.TP
  1830. X\fBexit\fP [ \fIn\fP ]
  1831. XExit the shell with the exit code specified by \fIn\fP; if none
  1832. Xis specified, use the exit code from the last command executed.
  1833. XAn EOF condition will also cause the shell to exit, unless
  1834. Xthe \fBIGNOREEOF\fP option is set.
  1835. X.TP
  1836. X\fBexport\fP [ \fIname\fP[=\fIvalue\fP] ... ]
  1837. XThe specified \fIname\fPs are marked for automatic export
  1838. Xto the environment of subsequently executed commands.
  1839. X.TP
  1840. X\fBfalse\fP
  1841. XDo nothing and return an exit code of 1.
  1842. X.TP
  1843. X.PD 0
  1844. X\fBfc\fP [ \-\fBe\fP \fIename\fP ] [ \-\fBnlrdDfEm\fP ] [ \fIold\fP=\fInew\fP ... ] [ \fIfirst\fP [ \fIlast\fP ] ]
  1845. X.TP
  1846. X\fBfc\fP \-\fBARWI\fP [ \fIfilename\fP ]
  1847. X.PD
  1848. XSelect a range of commands from \fIfirst\fP to \fIlast\fP from the
  1849. Xhistory list.
  1850. XThe arguments \fIfirst\fP and \fIlast\fP may be specified as a
  1851. Xnumber or as a string.  A negative number is used as an offset
  1852. Xto the current history event number.
  1853. XA string specifies the most recent event
  1854. Xbeginning with the given string.
  1855. XAll substitutions \fIold\fP=\fInew\fP, if any, are then performed
  1856. Xon the commands.
  1857. XIf the \-\fBl\fP flag is given, the resulting commands are listed on
  1858. Xstandard output.
  1859. XIf the \-\fBm\fP flag is also given the first argument is taken as a
  1860. Xpattern (should be quoted) and only the history events matching this
  1861. Xpattern will be shown.
  1862. XOtherwise the editor program \fIename\fP is invoked on a file containing
  1863. Xthese history events.  If \fIename\fP is not given, the value
  1864. Xof the parameter \fBFCEDIT\fP is used.  If \fIename\fP is "\-",
  1865. Xno editor is invoked.  When editing is complete, the edited
  1866. Xcommand(s) is executed.  
  1867. XIf \fIfirst\fP is not specified, it will be set to \-1 (the most recent
  1868. Xevent), or to -16 if the \-\fBl\fP flag is given.
  1869. XIf \fIlast\fP is not specified, it will be set to \fIfirst\fP,
  1870. Xor to \-1 if the \-\fBl\fP flag is given.
  1871. XThe flag \-\fBr\fP reverses the order of the commands and the
  1872. Xflag \-\fBn\fP suppresses command numbers when listing.
  1873. XAlso when listing, \-\fBd\fP prints timestamps for each command, and
  1874. X\-\fBf\fP prints full time-date stamps. Adding the \-\fBE\fP flag
  1875. Xcauses the dates to be printed as `dd.mm.yyyy'.
  1876. XWith the \-\fBD\fP flag, \fBfc\fP prints elapsed times.
  1877. X.RS
  1878. X.PP
  1879. X\fBfc\fP \-\fBR\fP reads the history from the given file,
  1880. X\fBfc\fP \-\fBW\fP writes the history out to the given file,
  1881. Xand \fBfc\fP \-\fBA\fP appends the history out to the given file.
  1882. X\fBfc\fP \-\fBAI\fP (\-\fBWI\fP) appends (writes) only those
  1883. Xevents that are new since last incremental append (write) to
  1884. Xthe history file. In any case the file will have no more than SAVEHIST
  1885. Xentries.
  1886. X.RE
  1887. X.TP
  1888. X.PD 0
  1889. X\fBfg\fP [ \fIjob\fP ... ]
  1890. X.TP
  1891. X\fIjob\fP ...
  1892. X.PD
  1893. XBring the specified \fIjob\fPs to the foreground.
  1894. XIf no \fIjob\fP is specified, use the current job.
  1895. X.TP
  1896. X\fBfunctions\fP [ \(+-\fBtum\fP ] [ \fIname\fP ... ]
  1897. XEquivalent to \fBtypeset\fP \-\fBf\fP.
  1898. X.TP
  1899. X\fBgetln\fP \fIname\fP ...
  1900. XRead the top value from the buffer stack and put it in
  1901. Xthe shell parameter \fIname\fP.  Equivalent to
  1902. X\fBread\fP \-\fBzr\fP. The flags \-\fBc\fP, \-\fBl\fP, \-\fBA\fP,
  1903. X\-\fBe\fP, \-\fBE\fP, and \-\fBn\fP are supported, too.
  1904. X.TP
  1905. X\fBgetopts\fP \fIoptstring\fP \fIname\fP [ \fIarg\fP ... ]
  1906. XChecks \fBarg\fP for legal options.  If \fIarg\fP is omitted,
  1907. Xuse the positional parameters.  A valid option argument
  1908. Xbegins with a + or a \-.  An argument not beginning with
  1909. Xa + or a \-, or the argument \-\-, ends the options.
  1910. X\fIoptstring\fP contains the letters that \fBgetopts\fP
  1911. Xrecognizes.  If a letter is followed by a `:', that option
  1912. Xis expected to have an argument.  The options can be
  1913. Xseparated from the argument by blanks.
  1914. X.RS
  1915. X.PP
  1916. XEach time it is invoked, \fBgetopts\fP places the option letter it finds
  1917. Xin the shell parameter \fIname\fP, prepended with a + when
  1918. X\fIarg\fP begins with a +.  The index of the next \fIarg\fP
  1919. Xis stored in \fBOPTIND\fP.  The option argument, if any,
  1920. Xis stored in \fBOPTARG\fP.
  1921. X.PP
  1922. XA leading : in \fIoptstring\fP causes \fBgetopts\fP to store the
  1923. Xletter of the invalid option in \fBOPTARG\fP, and to set \fIname\fP
  1924. Xto `?' for an unknown option and to `:' when a required option
  1925. Xis missing.  Otherwise, \fBgetopts\fP prints an error
  1926. Xmessage.  The exit status is nonzero when there are no more options.
  1927. X.RE
  1928. X.TP
  1929. X\fBhash\fP \fIname\fP \fIpath\fP
  1930. XPuts \fIname\fP in the command hash table, associating it with
  1931. Xthe pathname \fIpath\fP.  Whenever \fIname\fP is used as a command
  1932. Xargument, the shell will try to execute the file given by \fIpath\fP.
  1933. X.TP
  1934. X\fBhistory\fP [ \-\fBnrdDfEm\fP ] [ \fIfirst\fP [ \fIlast\fP ] ]
  1935. XSame as \fBfc\fP \-\fBl\fP.
  1936. X.TP
  1937. X\fBinteger\fP [ \(+-\fBlrtux\fP ] [ \fIname\fP[=\fIvalue\fP] ] ...
  1938. XSame as \fBtypeset\fP \-\fBi\fP, except that options irrelevant to
  1939. Xintegers are not permitted.
  1940. X.TP
  1941. X\fBjobs\fP [ \-\fBlprs\fP ] [ \fIjob\fP ... ]
  1942. XLists information about each given job, or all jobs
  1943. Xif \fIjob\fP is omitted.  The \-\fBl\fP flag lists process
  1944. Xids, and the \-\fBp\fP flag lists process groups.
  1945. XIf the \-\fBr\fP flag is specified only running jobs will be listed
  1946. Xand if the \-\fBs\fP flag is given only stopped jobs are shown.
  1947. X.TP
  1948. X.PD 0
  1949. X\fBkill\fP [ \-\fIsig\fP ] \fIjob\fP ...
  1950. X.TP
  1951. X\fBkill\fP \-\fBl\fP
  1952. X.PD
  1953. XSends either SIGTERM or the specified signal to the given
  1954. Xjobs or processes.
  1955. XSignals are given by number or by names
  1956. X(with the prefix "SIG" removed).
  1957. XIf the signal being sent is not KILL or CONT, then the job
  1958. Xwill be sent a CONT signal if it is stopped.
  1959. XThe argument \fIjob\fP can be the process id of a job
  1960. Xnot in the job list.
  1961. XIn the second form, \fBkill\fP \-\fBl\fP, the signal names
  1962. Xare listed.
  1963. X.TP
  1964. X\fBlet\fP \fIarg\fP ...
  1965. XEvaluate each \fIarg\fP as an arithmetic expression.
  1966. XSee \fBARITHMETIC EVALUATION\fP above for a description
  1967. Xof arithmetic expressions.  The exit status is 0 if the
  1968. Xvalue of the last expression is nonzero, and 1 otherwise.
  1969. X.TP
  1970. X.PD 0
  1971. X\fBlimit\fP [ \-\fBh\fP ] [ \fIresource\fP [ \fIlimit\fP ] ] ...
  1972. X.TP
  1973. X\fBlimit\fP \-\fBs\fP
  1974. X.PD
  1975. XLimit the resource consumption of the current shell and its children.
  1976. XIf \fIlimit\fP is not specified, print the current limit placed
  1977. Xon \fIresource\fP; otherwise
  1978. Xset the limit to the specified value.  If the \-\fBh\fP flag
  1979. Xis given, use hard limits instead of soft limits.
  1980. XIf no \fIresource\fP is given, print all limits.
  1981. X.RS
  1982. X.PP
  1983. X\fIresource\fP is one of:
  1984. X.PP
  1985. X.PD 0
  1986. X.TP
  1987. X.B cputime
  1988. XMaximum CPU seconds per process.
  1989. X.TP
  1990. X.B filesize
  1991. XLargest single file allowed.
  1992. X.TP
  1993. X.B datasize
  1994. XMaximum data size (including stack) for each process.
  1995. X.TP
  1996. X.B stacksize
  1997. XMaximum stack size for each process.
  1998. X.TP
  1999. X.B coredumpsize
  2000. XMaximum size of a core dump.
  2001. X.TP
  2002. X.B resident
  2003. XMaximum resident set size.
  2004. X.TP
  2005. X.B memoryuse
  2006. XThe same as resident.
  2007. X.TP
  2008. X.B memorylocked
  2009. XMaximum amount of memory locked in RAM.
  2010. X.TP
  2011. X.B descriptors
  2012. XMaximum value for a file descriptor.
  2013. X.TP
  2014. X.B openfiles
  2015. XMaximum number of open files.
  2016. X.TP
  2017. X.B vmemorysize
  2018. XMaximum amount of virtual memory.
  2019. X.PD
  2020. X.PP
  2021. XWhich of these resource limits are available depends on the system.
  2022. X\fIlimit\fP is a number, with an optional scaling factor, as follows:
  2023. X.PP
  2024. X.PD 0
  2025. X.TP
  2026. X\fIn\fPh
  2027. Xhours.
  2028. X.TP
  2029. X\fIn\fPk
  2030. Xkilobytes. 
  2031. XThis is the default for all but cputime.
  2032. X.TP
  2033. X\fIn\fPm
  2034. Xmegabytes or minutes.
  2035. X.TP
  2036. X\fImm\fP:\fIss\fP
  2037. Xminutes and seconds.
  2038. X.PD
  2039. X.RE
  2040. X.TP
  2041. X\fBlocal\fP [ \(+-\fBLRZilrtu [\fIn\fP]] [ \fIname\fP[=\fIvalue\fP] ] ...
  2042. XSame as \fBtypeset\fP, except that the options \-\fBx\fP and
  2043. X\-\fBf\fP are not permitted.
  2044. X.TP
  2045. X\fBlog\fP
  2046. XList all users currently logged in who are affected by
  2047. Xthe current setting of the \fBwatch\fP parameter.
  2048. X.TP
  2049. X\fBlogout\fP
  2050. XExit the shell, if this is a login shell.
  2051. X.TP
  2052. X\fBpopd\fP [ \(+-\fIn\fP ]
  2053. XRemoves entries from the directory stack.  With no arguments,
  2054. Xremoves the top directory from the stack, and performs a \fBcd\fP
  2055. Xto the new top directory.  With an argument of the form +\fIn\fP,
  2056. Xremove the \fIn\fPth entry counting from the left of the list
  2057. Xshown by the \fBdirs\fP command, starting with zero, and change
  2058. Xto that directory.  With an argument of the form \-\fIn\fP,
  2059. Xremove the \fIn\fPth entry counting from the right.
  2060. XIf the \fBPUSHD_MINUS\fP option is set, the meanings of +
  2061. Xand \- in this context are swapped.
  2062. X.TP
  2063. X\fBprint\fP [ \-\fBRnrslzpNDPoOic\fP ] [ \-\fBu\fP\fIn\fP ] [ \fIarg\fP ... ]
  2064. XWith no flags or with flag \-, the arguments are printed on
  2065. Xthe standard output as described by \fBecho\fP, with the following differences:
  2066. Xthe escape sequence \eM\-x metafies the character \fBx\fP (sets the highest
  2067. Xbit), \eC\-x produces a control character (\eC\-@ and \eC-? give the
  2068. Xcharacters NULL and delete) and \eE is a synonym for \ee.
  2069. XFinally, if not in an escape
  2070. Xsequence, \e escapes the following character and is not printed.
  2071. X.RS
  2072. X.PD 0
  2073. X.TP
  2074. X\-\fBR\fP, \-\fBr\fP
  2075. Xignore the escape conventions of \fBecho\fP.
  2076. XThe \-\fBR\fP option will print all subsequent
  2077. Xarguments and options.
  2078. X.TP
  2079. X\-\fBs\fP
  2080. Xplace the results in the history list instead of on the standard output.
  2081. X.TP
  2082. X\-\fBn\fP
  2083. Xdo not add a newline to the output.
  2084. X.TP
  2085. X\-\fBl\fP
  2086. Xprint the arguments separated by newlines instead of spaces.
  2087. X.TP
  2088. X\-\fBN\fP
  2089. Xprint the arguments separated and terminated by nulls.
  2090. X.TP
  2091. X\-\fBo\fP
  2092. Xprint the arguments sorted in ascending order.
  2093. X.TP
  2094. X\-\fBO\fP
  2095. Xprint the arguments sorted in descending order.
  2096. X.TP
  2097. X\-\fBi\fP
  2098. Xif given together with \-\fBo\fP or \-\fBO\fP makes them work case
  2099. Xindependently
  2100. X.TP
  2101. X\-\fBc\fP
  2102. Xprint the arguments in columns
  2103. X.TP
  2104. X\-\fBu\fP\fIn\fP
  2105. Xprint the arguments to file descriptor \fIn\fP.
  2106. X.TP
  2107. X\-\fBp\fP
  2108. Xprint the arguments to the input of the coprocess.
  2109. X.TP
  2110. X\-\fBz\fP
  2111. Xpush the arguments onto the editing buffer stack, separated by spaces;
  2112. Xno escape sequences are recognized.
  2113. X.TP
  2114. X\-\fBD\fP
  2115. Xtreat the arguments as directory names, replacing prefixes with ~
  2116. Xexpressions, as appropriate.
  2117. X.TP
  2118. X\-\fBP\fP
  2119. Xrecognize the same escape sequences as in the \fBPROMPT\fP parameter.
  2120. X.PD
  2121. X.RE
  2122. X.TP
  2123. X.PD 0
  2124. X\fBpushd\fP [ \fIarg\fP ]
  2125. X.TP
  2126. X\fBpushd\fP \fIold\fP \fInew\fP
  2127. X.TP
  2128. X\fBpushd\fP \(+-\fBn\fP
  2129. X.PD
  2130. XChange the current directory, and push the old current directory
  2131. Xonto the directory stack.  In the first form, change the
  2132. Xcurrent directory to \fIarg\fP.
  2133. XIf \fIarg\fP is not specified, change to the second directory
  2134. Xon the stack (that is, exchange the top two entries), or
  2135. Xchange to the value of \fBHOME\fP if the \fBPUSHD_TO_HOME\fP
  2136. Xoption is set or if there is only one entry on the stack.
  2137. XIf \fIarg\fP is \-, change to the
  2138. Xvalue of \fBOLDPWD\fP, the previous directory.
  2139. XIf a directory named \fIarg\fP is not found in the current directory
  2140. Xand \fIarg\fP does not contain a slash,
  2141. Xsearch each component of the shell parameter \fBcdpath\fP.
  2142. XIf the option \fBCDABLEVARS\fP is set, and a parameter named \fIarg\fP
  2143. Xexists whose value begins with a slash, treat its value as
  2144. Xthe directory.
  2145. XIf the option \fBPUSHD_SILENT\fP is not set, the directory
  2146. Xstack will be printed after a \fBpushd\fP is performed.
  2147. X.RS
  2148. X.PP
  2149. XThe second form of \fBpushd\fP substitutes the string \fInew\fP
  2150. Xfor the string \fIold\fP in the name of the current directory,
  2151. Xand tries to change to this new directory.
  2152. X.PP
  2153. XThe third form of \fBpushd\fP is equivalent to \fBpopd\fP.
  2154. X.RE
  2155. X.TP
  2156. X\fBpushln\fP
  2157. XEquivalent to \fBprint \-nZ\fP.
  2158. X.TP
  2159. X\fBpwd\fP
  2160. XEquivalent to \fBprint \-R $PWD\fP.
  2161. X.TP
  2162. X\fBr\fP
  2163. XEquivalent to \fBfc \-e \-\fP.
  2164. X.TP
  2165. X\fBread\fP [ \-\fBrzpqAclneE\fP ] [ -k [ \fInum\fP ] ] [ \-\fBu\fIn\fR ] [ \fIname\fP?\fIprompt\fP ] [ \fIname\fP ...  ]
  2166. XRead one line and break it into fields using the characters
  2167. Xin \fBIFS\fP as separators.  In raw mode, \-\fBr\fP, a \e
  2168. Xat the end of a line does not signify line continuation.
  2169. XWith the \-\fBq\fP flag read only one character and set \fIname\fP to
  2170. X`y' if this character was `y' or `Y' and to `n' otherwise.  With this
  2171. Xflag set the return value is zero only if the character was `y' or `Y'.
  2172. XIf the \-\fBk\fP flag is given read only one (or \fInum\fP) characters.
  2173. XIf the \-\fBz\fP flag is set, read from the editor buffer stack.
  2174. XThe first field is assigned to the first \fIname\fP, the second field
  2175. Xto the second \fIname\fP, etc., with leftover
  2176. Xfields assigned to the last \fIname\fP.
  2177. XIf the \-\fBe\fP or the \-\fBE\fP flag is given, the words read are
  2178. Xprinted after the whole line is read. If the \-\fBe\fP flag is set,
  2179. Xthe words are not assigned to the parameters.
  2180. XIf the \-\fBA\fP flag is set, the first \fIname\fP is taken as the
  2181. Xname of an array and all words are assigned to it.
  2182. XThe \-\fBc\fP and \-\fBl\fP flags are allowed only if called inside a
  2183. Xfunction used for completion (specified with the \-\fBK\fP flag to
  2184. X\fBcompctl\fP). If the \-\fBc\fP flag is given, the words of the
  2185. Xcurrent command are read. If the \-\fBl\fP flag is given, the whole
  2186. Xline is assigned as a scalar. Together with the \-\fBn\fP flag these
  2187. Xoptions give the number of the word the cursor is on and the index of
  2188. Xthe character the cursor is on respectively.
  2189. XIf \fIname\fP is omitted then \fBREPLY\fP is used for scalars and
  2190. X\fBreply\fP for arrays.
  2191. XIf \-\fBu\fIn\fR is specified, then input is read from file
  2192. Xdescriptor \fIn\fP; if \-\fBp\fP is specified, then input is
  2193. Xread from the coprocess.
  2194. XIf the first argument contains a \fB?\fP, the remainder of this
  2195. Xword is used as a \fIprompt\fP on standard error when the shell
  2196. Xis interactive.  The exit status is 0 unless an end-of-file
  2197. Xis encountered.
  2198. X.TP
  2199. X\fBreadonly\fP [ \fIname\fP[=\fIvalue\fP] ] ...
  2200. XThe given \fInames\fP are marked readonly; these names
  2201. Xcannot be changed by subsequent assignment.
  2202. X.TP
  2203. X\fBrehash\fP [ \-\fBf\fP ]
  2204. XThrow out the command hash table and start over.
  2205. XIf the \-\fBf\fP option is set, rescan the command path
  2206. Ximmediately, instead of rebuilding the hash table incrementally.
  2207. X.TP
  2208. X\fBreturn\fP [ \fIn\fP ]
  2209. XCauses a shell function or \fB\&.\fP script to return to
  2210. Xthe invoking script
  2211. Xwith the return status specified by \fIn\fP.  If \fIn\fP
  2212. Xis omitted then the return status is that of the last command
  2213. Xexecuted.
  2214. X.RS
  2215. X.PP
  2216. XIf \fBreturn\fP was executed from a trap, whether set by the \fBtrap\fP
  2217. Xbuiltin or by defining a \fBTRAPxxx\fP function, the effect is different
  2218. Xfor zero and non-zero return status.  With zero status (or after an
  2219. Ximplicit return at the end of the trap), the shell will return to
  2220. Xwhatever it was previously processing; with a non-zero status, the shell
  2221. Xwill behave as interrupted except that the return status of the trap is
  2222. Xretained.  Note that the signal which caused the trap is passed as the
  2223. Xfirst argument, so the statement `\fBreturn $[128+$1]\fP' will return
  2224. Xthe same status as if the signal had not been trapped.
  2225. X.RE
  2226. X.TP
  2227. X.PD 0
  2228. X\fBsched\fP [+]\fIhh\fP:\fImm\fP \fIcommand\fP ...
  2229. X.TP
  2230. X\fBsched\fP [ \-\fIitem\fP ]
  2231. X.PD
  2232. XMake an entry in the scheduled list of commands to execute.
  2233. XThe time may be specified in either absolute or relative time.
  2234. XWith no arguments, prints the list of scheduled commands.
  2235. XWith the argument \-\fIitem\fP, removes the given item
  2236. Xfrom the list.
  2237. X.TP
  2238. X\fBset\fP [ \(+-\fIoptions\fP ] [ \(+-\fBo\fP \fIoption name\fP ] ... [ \-\fBA\fP [\fIname\fP] ] [ \fIarg\fP ] ...
  2239. XSet the options for the shell and/or set the positional parameters, or
  2240. Xdeclare an array.  For the meaning of the flags, see
  2241. X\fBOPTIONS\fP above.
  2242. XFlags may be specified by name using the \-\fBo\fP option.
  2243. XIf the \-\fBA\fP flag is specified, \fIname\fP is set to an
  2244. Xarray containing the given \fIarg\fPs; if no \fIname\fP is specified,
  2245. Xall arrays are printed. Otherwise the positional parameters are set.
  2246. XIf no arguments are given, then the names and values
  2247. Xof all parameters are printed on the standard output.
  2248. XIf the only argument is +, the names of all parameters are printed.
  2249. X.TP
  2250. X\fBsetopt\fP [ \(+-\fIoptions\fP ] [ \fIname\fP ... ]
  2251. XSet the options for the shell.  All options specified either
  2252. Xwith flags or by name are set.  If no arguments are supplied,
  2253. Xthe names of all options currently set are printed.
  2254. XIn option names, case is insignificant, and all underscore
  2255. Xcharacters are ignored.
  2256. XIf the \-\fBm\fP flag is given the arguments are taken as patterns
  2257. X(should be quoted to preserve them from being interpreted as glob
  2258. Xpatterns) and all options with names matching these patterns are set.
  2259. X.TP
  2260. X\fBshift\fP [ \fIn\fP ] [ \fIname\fP ... ]
  2261. XThe positional parameters from $\fIn\fP+\fB1\fP ... are renamed
  2262. X$\fB1\fP, where \fIn\fP is an arithmetic expression that
  2263. Xdefaults to 1.
  2264. XIf any \fIname\fPs are given then the arrays with these names are
  2265. Xshifted instead of the positional parameters.
  2266. X.TP
  2267. X\fBsource\fP
  2268. XSame as \fB.\fP, except that the current directory is always searched and
  2269. Xis always searched first, before directories in \fBpath\fP.
  2270. X.TP
  2271. X\fBsuspend\fP [ \-\fBf\fP ]
  2272. XSuspend the execution of the shell (send it a \fBSIGTSTP\fP)
  2273. Xuntil it receives a \fBSIGCONT\fP.
  2274. XIf the \-\fBf\fP option is not given, complain if this is a login shell.
  2275. X.TP
  2276. X.PD 0
  2277. X\fBtest\fP \fIarg\fP ...
  2278. X.TP
  2279. X\fB[\fP \fIarg\fP ... \fB]\fP
  2280. X.PD
  2281. XLike the system version of \fBtest\fP.  Added for compatibility;
  2282. Xuse conditional expressions instead.
  2283. X.TP
  2284. X\fBtimes\fP
  2285. XPrint the accumulated user and system times for the shell
  2286. Xand for processes run from the shell.
  2287. X.TP
  2288. X\fBtrap\fP [ \fIarg\fP ] [ \fIsig\fP ] ...
  2289. X\fIarg\fP is a command to be read and executed when the shell
  2290. Xreceives \fIsig\fP.  Each \fIsig\fP can be given as a number
  2291. Xor as the name of a signal.  Inside the command, $1 refers to the number
  2292. Xof the signal which caused the trap.
  2293. XIf \fIarg\fP is \-, then all traps \fIsig\fP are reset to their
  2294. Xdefault values.  If \fIarg\fP is the null string, then this signal
  2295. Xis ignored by the shell and by the commands it invokes.
  2296. XIf \fIsig\fP is \fBZERR\fP then \fIarg\fP will be executed
  2297. Xafter each command with a nonzero exit status.
  2298. XIf \fIsig\fP is \fBDEBUG\fP then \fIarg\fP will be executed
  2299. Xafter each command.
  2300. XIf \fIsig\fP is \fB0\fP or \fBEXIT\fP
  2301. Xand the \fBtrap\fP statement is executed inside the body of a function,
  2302. Xthen the command \fIarg\fP is executed after the function completes.
  2303. XIf \fIsig\fP is \fB0\fP or \fBEXIT\fP
  2304. Xand the \fBtrap\fP statement is not executed inside the body of a function,
  2305. Xthen the command \fIarg\fP is executed when the shell terminates.
  2306. XThe \fBtrap\fP command with no arguments prints a list of commands
  2307. Xassociated with each signal.
  2308. X.TP
  2309. X\fBtrue\fP
  2310. XDo nothing and return an exit code of 0.
  2311. X.TP
  2312. X\fBttyctl\fP \-\fBfu\fP
  2313. XThe \-\fBf\fP option freezes the tty, and \-\fBu\fP unfreezes it.
  2314. XWhen the tty is frozen, no changes made to the tty settings by
  2315. Xexternal programs will be honored by the shell, except for changes in the
  2316. Xsize of the screen; the shell will
  2317. Xsimply reset the settings to their previous values as soon as each
  2318. Xcommand exits or is suspended.  Thus, \fBstty\fP and similar programs have
  2319. Xno effect when the tty is frozen. Without options it reports whether the
  2320. Xterminal is frozen or not.
  2321. X.TP
  2322. X\fBtype\fP
  2323. XSame as \fBwhence\fP \-\fBv\fP.
  2324. X.TP
  2325. X\fBtypeset\fP [ \(+-\fBLRZfilrtuxm [\fIn\fP]] [ \fIname\fP[=\fIvalue\fP] ] ...
  2326. XSet attributes and values for shell parameters.
  2327. XWhen invoked inside a function a new parameter is created which will be
  2328. Xunset when the function completes.  The new parameter will not be
  2329. Xexported unless ALLEXPORT is set, in which case the parameter will be
  2330. Xexported provided no parameter of that name already exists.
  2331. XThe following attributes are valid:
  2332. X.RS
  2333. X.PD 0
  2334. X.TP
  2335. X\-\fBL\fP
  2336. XLeft justify and remove leading blanks from \fIvalue\fP.
  2337. XIf \fIn\fP is nonzero, it defines the width of the field;
  2338. Xotherwise it is determined by the width of the value of the first
  2339. Xassignment.
  2340. XWhen the parameter is printed, it is filled on the right with
  2341. Xblanks or truncated if necessary to fit the field.
  2342. XLeading zeros are removed if the \-\fBZ\fP flag is also set.
  2343. X.TP
  2344. X\-\fBR\fP
  2345. XRight justify and fill with leading blanks.  If \fIn\fP is nonzero
  2346. Xif defines the width of the field;
  2347. Xotherwise it is determined by the width of the value of the first
  2348. Xassignment.
  2349. XWhen the parameter is printed, the field is left filled with
  2350. Xblanks or truncated from the end.
  2351. X.TP
  2352. X\-\fBZ\fP
  2353. XRight justify and fill with leading zeros if the first non-blank
  2354. Xcharacter is a digit and the \-\fBL\fP flag has not been set.
  2355. XIf \fIn\fP is nonzero it defines the width of the field;
  2356. Xotherwise it is determined by the width of the value of the
  2357. Xfirst assignment.
  2358. X.TP
  2359. X\-\fBf\fP
  2360. XThe names refer to functions rather than parameters.  No assignments
  2361. Xcan be made, and the only other valid flags are \-\fBt\fP
  2362. Xand \-\fBu\fP.  The flag \-\fBt\fP turns on execution tracing for this
  2363. Xfunction.  The flag \-\fBu\fP causes this function to be marked
  2364. Xfor autoloading.  The \fBfpath\fP parameter will be searched to find the
  2365. Xfunction definition when the function is first referenced.
  2366. X.TP
  2367. X\-\fBi\fP
  2368. XUse an internal integer representation.  If \fIn\fP is nonzero
  2369. Xit defines the output arithmetic base, otherwise it is determined by the first
  2370. Xassignment.
  2371. X.TP
  2372. X\-\fBl\fP
  2373. XConvert to lower case.
  2374. X.TP
  2375. X\-\fBr\fP
  2376. XThe given \fIname\fPs are marked readonly.
  2377. X.TP
  2378. X\-\fBt\fP
  2379. XTags the named parameters.  Tags have no special meaning to the shell.
  2380. X.TP
  2381. X\-\fBu\fP
  2382. XConvert to upper case.
  2383. X.TP
  2384. X\-\fBx\fP
  2385. XMark for automatic export to the environment of subsequently
  2386. Xexecuted commands.
  2387. X.TP
  2388. X.RE
  2389. X.PD
  2390. X.PP
  2391. XUsing + rather than \- causes these flags to be turned off.
  2392. XIf no arguments are given but flags are specified,
  2393. Xa list of named parameters which have these flags set is printed.
  2394. XUsing + instead of \- keeps their values from being printed.
  2395. XIf no arguments or options are given, the names and attributes
  2396. Xof all parameters are printed. If only the \-\fBm\fP flag is given the
  2397. Xarguments are taken as patterns (should be quoted) and all parameters
  2398. Xor functions (with the \-\fBf\fP flag) with matching names are printed.
  2399. X.TP
  2400. X\fBulimit\fP [ \-\fBHacdflmnopstv\fP ] [ \fIlimit\fP ]
  2401. XSet or display a resource limit. When setting a limit it will apply to the
  2402. Xchildren of the shell but not to the shell itself. The value of limit can be a
  2403. Xnumber in the unit specified below or the value \fBunlimited\fP.  If the
  2404. X\fBH\fP flag is given use hard limits instead of soft limits.
  2405. X.RS
  2406. X.PD 0
  2407. X.TP
  2408. X\-\fBa\fP
  2409. XLists all of the current resource limits.
  2410. X.TP
  2411. X\-\fBc\fP
  2412. XThe number of 512-byte blocks on the size of core dumps.
  2413. X.TP
  2414. X\-\fBd\fP
  2415. XThe number of K-bytes on the size of the data segment.
  2416. X.TP
  2417. X\-\fBf\fP
  2418. XThe number of 512-byte blocks on the size of files written.
  2419. X.TP
  2420. X\-\fBl\fP
  2421. XThe number of K-bytes on the size of locked-in memory.
  2422. X.TP
  2423. X\-\fBm\fP
  2424. XThe number of K-bytes on the size of physical memory.
  2425. X.TP
  2426. X\-\fBn\fP
  2427. XThe number of file descriptors.
  2428. X.TP
  2429. X\-\fBo\fP
  2430. XThe number of open files.
  2431. X.TP
  2432. X\-\fBp\fP
  2433. XThe number of processes.
  2434. X.TP
  2435. X\-\fBs\fP
  2436. XThe number of K-bytes on the size of the stack.
  2437. X.TP
  2438. X\-\fBt\fP
  2439. XThe number of CPU seconds to be used.
  2440. X.TP
  2441. X\-\fBv\fP
  2442. XThe number of K-bytes on the size of virtual memory.
  2443. X.RE
  2444. X.PD
  2445. X.TP
  2446. X\fBumask\fP [ \fImask\fP ]
  2447. XThe umask is set to \fImask\fP.  \fImask\fP can be either
  2448. Xan octal number or a symbolic value as described in \fBchmod\fP(1).
  2449. XIf \fImask\fP is omitted, the current value is printed.  Note that in
  2450. Xthe symbolic form the permissions you specify are those which are to be
  2451. Xallowed (not denied) to the users specified.
  2452. X.TP
  2453. X\fBunalias\fP [ \-\fBm\fP ] \fIname\fP ...
  2454. XThe alias definition, if any, for each \fIname\fP is removed.
  2455. XWith the \-\fBm\fP flag the arguments are taken as patterns (should be
  2456. Xquoted) and all aliases with matching names are removed.
  2457. X.TP
  2458. X\fBunfunction\fP [ \-\fBm\fP ] \fIname\fP ...
  2459. XThe function definition, if any, for each \fIname\fP is removed.
  2460. XIf the \-\fBm\fP flag is specified the arguments are taken as patterns
  2461. X(should be quoted) and all functions with matching names are removed.
  2462. X.TP
  2463. X\fBunhash\fP [ \-\fBm\fP ] \fIname\fP ...
  2464. XThe entry in the command hash table, if any, for each \fIname\fP
  2465. Xis removed. If the \-\fBm\fP flag is given the arguments are taken as
  2466. Xpatterns (should be quoted) and all entries for commands with matching
  2467. Xnames will be removed.
  2468. X.TP
  2469. X\fBunlimit\fP [ \-\fBh\fP ] \fIresource\fP ...
  2470. XThe resource limit for each \fIresource\fP is set to the hard limit.
  2471. XIf the \-\fBh\fP flag is given and the shell is running as root,
  2472. Xthe hard resource limit for each \fIresource\fP is removed.
  2473. X.TP
  2474. X\fBunset\fP [ \-\fBm\fP ] \fIname\fP ...
  2475. XEach named parameter is unset. If the \-\fBm\fP flag is specified the
  2476. Xarguments are taken as patterns (should be quoted) and all parameters
  2477. Xwith matching names are unset.
  2478. X.TP
  2479. X\fBunsetopt\fP [ \(+-\fIoptions\fP ] [ \fIname\fP ... ]
  2480. XUnset the options for the shell.  All options specified either
  2481. Xwith flags or by name are unset. If the \-\fBm\fP flag is given the
  2482. Xarguments are considered to be patterns (don't forget to quote them)
  2483. Xand all options with names matching these patterns are unset.
  2484. X.TP
  2485. X\fBvared\fP [ \-\fBc\fP ] [ \-\fBp\fP \fIprompt\fP ] [ \-\fBr\fP \fIrprompt\fP ] \fIname\fP
  2486. XThe value of the parameter \fIname\fP is loaded into the edit
  2487. Xbuffer, and the line editor is invoked.  When the editor exits,
  2488. X\fIname\fP is set to the string value returned by the editor.
  2489. XIf the \-\fBc\fP flag is given the parameter is created if it doesn't
  2490. Xalready exist.
  2491. XIf the \-\fBp\fP flag is given the following string will be taken as
  2492. Xthe prompt to display at the left and if the \-\fBr\fP flag is given
  2493. Xthe following string gives the prompt to display at the right.
  2494. X.TP
  2495. X\fBwait\fP [ \fIjob\fP ... ]
  2496. XWait for the specified jobs or processes.  If \fIjob\fP is not given
  2497. Xthen all currently active child processes are waited for.
  2498. XEach \fIjob\fP can be either a job specification or the process-id
  2499. Xof a job in the job table.
  2500. XThe exit status from this command is that of the job waited for.
  2501. X.TP
  2502. X\fBwhence\fP [ \-\fBacpvm\fP ] \fIname\fP ...
  2503. XFor each name, indicate how it would be interpreted if used
  2504. Xas a command name.  The \-\fBv\fP flag produces a more verbose
  2505. Xreport.  The \-\fBp\fP flag does a path search for \fIname\fP
  2506. Xeven if it is a shell function, alias, or reserved word.
  2507. XThe \-\fBc\fP flag prints the results in a csh-like format.
  2508. XThe \-\fBa\fP flag does a search for all occurrences of \fIname\fP
  2509. Xthroughout the command path.
  2510. XWith the \-\fBm\fP flag the arguments are taken as patterns (should be
  2511. Xquoted) and the information is displayed for each command matching one
  2512. Xof these patterns.
  2513. X.TP
  2514. X\fBwhich\fP
  2515. XSame as \fBwhence \-c\fP.
  2516. X.RE
  2517. X.SH INVOCATION
  2518. XCommands are first read from /etc/zshenv.
  2519. XIf the \-\fBf\fP flag is present or if the \fBNO_RCS\fP option is set
  2520. Xwithin /etc/zshenv, all other
  2521. Xinitialization files are skipped.
  2522. XOtherwise, commands are read
  2523. Xfrom $ZDOTDIR/.zshenv.
  2524. X(If \fBZDOTDIR\fP is unset, \fBHOME\fP is used instead).
  2525. XIf the first character of argument zero passed to the shell
  2526. Xis \-, or if the \-\fBl\fP flag is present, then the shell is
  2527. Xassumed to be a login shell, and commands
  2528. Xare read from /etc/zprofile and then $ZDOTDIR/.zprofile.
  2529. XThen, if the shell is interactive,
  2530. Xcommands are read from /etc/zshrc and then $ZDOTDIR/.zshrc.
  2531. XFinally, if the shell is a login shell, /etc/zlogin and $ZDOTDIR/.zlogin
  2532. Xare read.
  2533. X.PP
  2534. XIf the \-\fBs\fP flag is not present and an argument is given,
  2535. Xthe first argument is taken to be the pathname of a script to
  2536. Xexecute.  The remaining arguments are assigned to the positional
  2537. Xparameters.  The following flags are interpreted by the shell
  2538. Xwhen invoked:
  2539. X.TP
  2540. X.PD 0
  2541. X\-\fBc\fP \fIstring\fP
  2542. XRead commands from \fIstring\fP.
  2543. X.TP
  2544. X\-\fBs\fP
  2545. XRead command from the standard input.
  2546. X.TP
  2547. X\-\fBi\fP
  2548. XIf this flag is present or the shell input and output
  2549. Xare attached to a terminal, this shell is interactive.
  2550. X.PD
  2551. X.SH "SEE ALSO"
  2552. Xsh(1),
  2553. Xcsh(1),
  2554. Xtcsh(1),
  2555. Xitcsh(1),
  2556. Xrc(1),
  2557. Xbash(1),
  2558. Xash(1),
  2559. Xksh(1),
  2560. Xclam(1),
  2561. Xstrftime(3).
  2562. X.SH FILES
  2563. X$ZDOTDIR/.zshenv
  2564. X.br
  2565. X$ZDOTDIR/.zprofile
  2566. X.br
  2567. X$ZDOTDIR/.zshrc
  2568. X.br
  2569. X$ZDOTDIR/.zlogin
  2570. X.br
  2571. X$ZDOTDIR/.zlogout
  2572. X.br
  2573. X/tmp/zsh*
  2574. X.br
  2575. X/etc/zshenv
  2576. X.br
  2577. X/etc/zprofile
  2578. X.br
  2579. X/etc/zshrc
  2580. X.br
  2581. X/etc/zlogin
  2582. X.SH AUTHOR
  2583. XPaul Falstad (pf@z-code.com)
  2584. X.br
  2585. XProgrammable completion was implemented by Sven Wischnowsky
  2586. X(oberon@cs.tu-berlin.de) and Peter Stephenson (pws@s-a.amtp.liv.ac.uk).
  2587. X.SH AVAILABILITY
  2588. XThe latest official release of zsh is available via anonymous ftp at
  2589. Xftp.sterling.com:/zsh (US) and carlo.phys.uva.nl:/pub/bas/zsh
  2590. X(Europe).
  2591. X.SH "UNDOCUMENTED FEATURES"
  2592. XKnown only to the recipients of the zsh mailing list,
  2593. Xzsh-list@sterling.com.  If you run into problems, please send your
  2594. Xquestions and patches to the mailing list. To subscribe to zsh-list,
  2595. Xsend an email message with body "subscribe zsh-list" to the address
  2596. X"Majordomo@sterling.com".
  2597. END_OF_FILE
  2598.   if test 83377 -ne `wc -c <'zsh-2.5.0/man/zsh.1.B'`; then
  2599.     echo shar: \"'zsh-2.5.0/man/zsh.1.B'\" unpacked with wrong size!
  2600.   elif test -f 'zsh-2.5.0/man/zsh.1.A'; then
  2601.     echo shar: Combining  \"'zsh-2.5.0/man/zsh.1'\" \(155263 characters\)
  2602.     cat 'zsh-2.5.0/man/zsh.1.A' 'zsh-2.5.0/man/zsh.1.B' > 'zsh-2.5.0/man/zsh.1'
  2603.     if test 155263 -ne `wc -c <'zsh-2.5.0/man/zsh.1'`; then
  2604.       echo shar: \"'zsh-2.5.0/man/zsh.1'\" combined with wrong size!
  2605.     else
  2606.       rm zsh-2.5.0/man/zsh.1.A zsh-2.5.0/man/zsh.1.B 
  2607.     fi
  2608.   fi
  2609.   # end of 'zsh-2.5.0/man/zsh.1.B'
  2610. fi
  2611. echo shar: End of archive 2 \(of 18\).
  2612. cp /dev/null ark2isdone
  2613. MISSING=""
  2614. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ; do
  2615.     if test ! -f ark${I}isdone ; then
  2616.     MISSING="${MISSING} ${I}"
  2617.     fi
  2618. done
  2619. if test "${MISSING}" = "" ; then
  2620.     echo You have unpacked all 18 archives.
  2621.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2622. else
  2623.     echo You still must unpack the following archives:
  2624.     echo "        " ${MISSING}
  2625. fi
  2626. exit 0
  2627. exit 0 # Just in case...
  2628.