home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / ap / zsh / zsh-2.4 / zsh-2 / zsh-2.4.306 / help / unsetopt < prev    next >
Text File  |  1993-10-09  |  19KB  |  362 lines

  1.        setopt [ +-options ] [ name ... ]
  2.               Set  the options for the shell.  All options speci-
  3.               fied either with flags or by name are set.   If  no
  4.               arguments  are  supplied,  the names of all options
  5.               currently set are printed.  In option  names,  case
  6.               is insignificant, and all underscore characters are
  7.               ignored.  If the -m flag is given the arguments are
  8.               taken  as  patterns  (should  be quoted to preserve
  9.               them from being interpreted as glob  patterns)  and
  10.               all  options with names matching these patterns are
  11.               set.
  12.  
  13.        unsetopt [ +-options ] [ name ... ]
  14.               Unset the options for the shell.  All options spec-
  15.               ified either with flags or by name  are  unset.  If
  16.               the  -m  flag is given the arguments are considered
  17.               to be patterns (don't forget to quote them) and all
  18.               options  with  names  matching  these  patterns are
  19.               unset.
  20.  
  21.        The  following  options  may be set upon invocation of the
  22.        shell, or with the set or setopt builtins. They  are  case
  23.        insensitive  and underscores are ignored, that is, "allex-
  24.        port" is equivalent to "A__lleXP_ort".
  25.               ALL_EXPORT (-a)
  26.                      All  parameters  subsequently  defined   are
  27.                      automatically exported.
  28.               ALWAYS_LAST_PROMPT
  29.                      If unset key functions that list completions
  30.                      try to return to the last prompt if given  a
  31.                      numeric argument. If set these functions try
  32.                      to return to the last  prompt  if  given  no
  33.                      numeric argument.
  34.               ALWAYS_TO_END
  35.                      If  a completion with the cursor in the word
  36.                      was started  and  it  results  in  only  one
  37.                      match,  the  cursor  is placed at the end of
  38.                      the word.
  39.               APPEND_HISTORY
  40.                      If this is set,  zsh  sessions  will  append
  41.                      their  history  list  to  the  history file,
  42.                      rather than  overwrite  it.  Thus,  multiple
  43.                      parallel  zsh  sessions  will all have their
  44.                      history lists added to the history file,  in
  45.                      the order they are killed.
  46.               AUTO_CD (-J)
  47.                      If  a  command is not in the hash table, and
  48.                      there exists an executable directory by that
  49.                      name,  perform the cd command to that direc-
  50.                      tory.
  51.               AUTO_LIST (-9)
  52.                      Automatically list choices on  an  ambiguous
  53.                      completion.
  54.               AUTO_MENU
  55.                      Automatically  use menu completion after the
  56.                      second consecutive request  for  completion,
  57.                      for  example by pressing the TAB key repeat-
  58.                      edly.   This   option   is   overridden   by
  59.                      MENU_COMPLETE.
  60.               AUTO_PARAM_KEYS
  61.                      If  a  parameter  name was completed and the
  62.                      next character typed is one  of  those  that
  63.                      have  to  come directly after the name (like
  64.                      `}', `:', etc.) they are placed there  auto-
  65.                      matically.
  66.               AUTO_PUSHD (-N)
  67.                      Make cd act like pushd.
  68.               AUTO_REMOVE_SLASH
  69.                      When  the  last  character  resulting from a
  70.                      completion is a slash and the next character
  71.                      typed is a word delimiter, remove the slash.
  72.               AUTO_RESUME (-W)
  73.                      Treat single word  simple  commands  without
  74.                      redirection  as candidates for resumption of
  75.                      an existing job.
  76.               BGNICE (-6)
  77.                      Run all background jobs at a lower priority.
  78.                      This option is set by default.
  79.               BRACE_CCL
  80.                      Allow brace expansions of the form {a-zA-Z},
  81.                      etc.
  82.               CDABLE_VARS (-T)
  83.                      If the argument  to  a  cd  command  (or  an
  84.                      implied  cd  with the AUTO_CD option set) is
  85.                      not a directory, and does not begin  with  a
  86.                      slash, try to expand the expression as if it
  87.                      were preceded by a ~ (see Filename Expansion
  88.                      above).
  89.               CHASE_LINKS (-w)
  90.                      Resolve symbolic links to their true values.
  91.               COMPLETE_ALIASES
  92.                      If set aliases on the command line  are  not
  93.                      internally  substituted before completion is
  94.                      attempted.
  95.               COMPLETE_IN_WORD
  96.                      If unset the cursor is set to the end of the
  97.                      word  if completion is started. Otherwise it
  98.                      stays there and completion is done from both
  99.                      ends.
  100.               CORRECT (-0)
  101.                      Try to correct the spelling of commands.
  102.               CORRECT_ALL (-O)
  103.                      Try to correct the spelling of all arguments
  104.                      in a line.
  105.               CSH_JUNKIE_HISTORY
  106.                      A history reference without an event  speci-
  107.                      fier  will always refer to the previous com-
  108.                      mand.
  109.               CSH_JUNKIE_LOOPS
  110.                      Allow loop bodies to take  the  form  "list;
  111.                      end" instead of "do list; done".
  112.               CSH_JUNKIE_QUOTES
  113.                      Complain if a quoted expression runs off the
  114.                      end of a line;  prevent  quoted  expressions
  115.                      from containing unescaped newlines.
  116.               CSH_JUNKIE_TILDE
  117.                      Any  unquoted = and ~ resulting from parame-
  118.                      ter  substitution  are  eligible  for   file
  119.                      expansion.
  120.               CSH_NULL_GLOB
  121.                      If  a pattern for filename generation has no
  122.                      matches, delete the pattern from  the  argu-
  123.                      ment list; do not report an error unless all
  124.                      the patterns in a command have  no  matches.
  125.                      Overrides NULLGLOB.
  126.               ERR_EXIT (-e)
  127.                      If  a  command  has  a non-zero exit status,
  128.                      execute the ZERR trap, if set, and exit.
  129.               EXTENDED_GLOB
  130.                      Treat the # and ^ characters as part of pat-
  131.                      terns for filename generation, etc.
  132.               EXTENDED_HISTORY
  133.                      Save  beginning and ending timestamps to the
  134.                      history file.  The format  of  these  times-
  135.                      tamps     is    :<beginning    time>:<ending
  136.                      time>:<command>.
  137.               GLOB_COMPLETE
  138.                      When the current word has a glob pattern, do
  139.                      not  insert all the words resulting from the
  140.                      expansion  but  cycle  through   them   like
  141.                      MENU_COMPLETE.  If no matches are found, a *
  142.                      is added to the end of the word or  inserted
  143.                      at  the  cursor  if COMPLETE_IN_WORD is set,
  144.                      and  expansion  is  attempted  again.  Using
  145.                      patterns  works  not  only for files but for
  146.                      all  completions,  such  as  options,   user
  147.                      names, etc.
  148.               GLOB_DOTS (-4)
  149.                      Do  not require a leading . in a filename to
  150.                      be matched explicitly.
  151.               HASH_CMDS
  152.                      Place the location of each  command  in  the
  153.                      hash  table  the  first time it is executed.
  154.                      If this option is  unset,  no  path  hashing
  155.                      will be done at all.
  156.               HASH_DIRS
  157.                      Whenever  a  command  is  executed, hash the
  158.                      directory containing  it,  as  well  as  all
  159.                      directories  that occur earlier in the path.
  160.                      Has no effect if HASH_CMDS is unset.
  161.               HASH_LIST_ALL
  162.                      Whenever a command completion is  attempted,
  163.                      make  sure the entire command path is hashed
  164.                      first.   This  makes  the  first  completion
  165.                      slower.
  166.               HIST_IGNORE_DUPS (-h)
  167.                      Do  not enter command lines into the history
  168.                      list if they are duplicates of the  previous
  169.                      event.
  170.               HIST_IGNORE_SPACE (-g)
  171.                      Do  not enter command lines into the history
  172.                      list if they begin with a blank.
  173.               HIST_LIT (-j)
  174.                      Use literal (unparsed) versions of the  his-
  175.                      tory lines in the editor.
  176.               HIST_NO_STORE
  177.                      Remove  the history (fc -l) command from the
  178.                      history when invoked.
  179.               HIST_VERIFY
  180.                      Whenever the user enters a line with history
  181.                      substitution,   don't   execute   the   line
  182.                      directly; instead, perform history substitu-
  183.                      tion  and  reload  the line into the editing
  184.                      buffer.
  185.               IGNORE_BRACES (-I)
  186.                      Do not perform brace expansion.
  187.               IGNORE_EOF (-7)
  188.                      Do not exit on end-of-file.  Require the use
  189.                      of exit or logout instead.
  190.               INTERACTIVE (-i)
  191.                      This is an interactive shell.
  192.               INTERACTIVE_COMMENTS (-k)
  193.                      Allow comments even in interactive shells.
  194.               KSH_OPTION_PRINT
  195.                      Alters the way options settings are printed.
  196.               LIST_AMBIGUOUS
  197.                      If this option is set completions are  shown
  198.                      only   if   the  completions  don't  have  a
  199.                      unambiguous prefix or suffix that  could  be
  200.                      inserted in the command line.
  201.               LIST_TYPES (-X)
  202.                      When listing files that are possible comple-
  203.                      tions, show the type of  each  file  with  a
  204.                      trailing identifying mark.
  205.               LOGIN (-l)
  206.                      This is a login shell.
  207.               LONG_LIST_JOBS (-R)
  208.                      List jobs in the long format by default.
  209.               MAIL_WARNING (-U)
  210.                      Print  a  warning message if a mail file has
  211.                      been accessed since the shell last  checked.
  212.               MARK_DIRS (-8)
  213.                      Append  a  trailing / to all directory names
  214.                      resulting from  filename  generation  (glob-
  215.                      bing).
  216.               MENU_COMPLETE (-Y)
  217.                      On an ambiguous completion, instead of list-
  218.                      ing possibilities  or  beeping,  insert  the
  219.                      first  match immediately.  Then when comple-
  220.                      tion is requested again,  remove  the  first
  221.                      match  and  insert  the  second  match, etc.
  222.                      When there are no more matches, go  back  to
  223.                      the  first one again.  reverse-menu-complete
  224.                      may be used to loop through the list in  the
  225.                      other   direction.   This  option  overrides
  226.                      AUTO_MENU.
  227.               MONITOR (-m)
  228.                      Allow job control.  Set by default in inter-
  229.                      active shells.
  230.               NO_BAD_PATTERN (-2)
  231.                      If  a  pattern  for  filename  generation is
  232.                      badly formed,  leave  it  unchanged  in  the
  233.                      argument  list instead of printing an error.
  234.               NO_BANG_HIST (-K)
  235.                      Do not perform textual history substitution.
  236.                      Do not treat the ! character specially.
  237.               NO_BEEP (-B)
  238.                      Do not beep.
  239.               NO_CLOBBER (-1)
  240.                      Prevents   >   redirection  from  truncating
  241.                      existing files.  >! may be used to  truncate
  242.                      a  file instead.  Also prevents >> from cre-
  243.                      ating files.  >>! may be used instead.
  244.               NO_EQUALS
  245.                      Don't perform = filename substitution.
  246.               NO_EXEC (-n)
  247.                      Read commands  and  check  them  for  syntax
  248.                      errors, but do not execute them.
  249.               NO_GLOB (-F)
  250.                      Disable filename generation.
  251.               NO_FLOW_CONTROL
  252.                      Disable  output  flow control via start/stop
  253.                      characters (usually assigned  to  ^S/^Q)  in
  254.                      the shell's editor.
  255.               NO_HIST_BEEP
  256.                      Don't beep when an attempt is made to access
  257.                      a history entry which isn't there.
  258.               NO_HUP Don't send the HUP signal  to  running  jobs
  259.                      when the shell exits.
  260.               NO_LIST_BEEP
  261.                      Don't beep on an ambiguous completion.
  262.               NO_NOMATCH (-3)
  263.                      If  a pattern for filename generation has no
  264.                      matches, leave it unchanged in the  argument
  265.                      list  instead  of  printing  an error.  This
  266.                      also applies to file expansion of an initial
  267.                      ~ or =.
  268.               NO_PROMPT_CR (-V)
  269.                      Don't  print  a  carriage return just before
  270.                      printing a prompt in the line editor.
  271.               NO_RCS (-f)
  272.                      Source only the /etc/zshenv  file.   Do  not
  273.                      source  the  .zshenv,  /etc/zprofile, .zpro-
  274.                      file, /etc/zshrc, .zshrc, /etc/zlogin, .zlo-
  275.                      gin, or .zlogout files.
  276.               NO_SHORT_LOOPS
  277.                      Disallow the short forms of for, select, if,
  278.                      and function constructs.
  279.               NOTIFY (-5)
  280.                      Report the status of background jobs immedi-
  281.                      ately, rather than waiting until just before
  282.                      printing a prompt.
  283.               NO_UNSET (-u)
  284.                      Treat unset parameters as an error when sub-
  285.                      stituting.
  286.               NULL_GLOB (-G)
  287.                      If  a pattern for filename generation has no
  288.                      matches, delete the pattern from  the  argu-
  289.                      ment  list  instead  of  reporting an error.
  290.                      Overrides NO_NOMATCH.
  291.               NUMERIC_GLOB_SORT
  292.                      If numeric filenames are matched by a  file-
  293.                      name  generation pattern, sort the filenames
  294.                      numerically rather than lexicographically.
  295.               OVER_STRIKE
  296.                      Start up the line editor in overstrike mode.
  297.               PATH_DIRS (-Q)
  298.                      Perform  a path search even on command names
  299.                      with   slashes    in    them.     Thus    if
  300.                      "/usr/local/bin"  is in the user's path, and
  301.                      he   types    "X11/xinit",    the    command
  302.                      "/usr/local/bin/X11/xinit"  will be executed
  303.                      (assuming it exists).  This applies to the .
  304.                      builtin  as  well  as  to command execution.
  305.                      Commands explicitly beginning with  "./"  or
  306.                      "../" are not subject to path search.
  307.               MAGIC_EQUAL_SUBST
  308.                      All  unquoted  arguments of the from identi-
  309.                      fier=expression  have  file  expansion  per-
  310.                      formed on expression as if it were a parame-
  311.                      ter assignment, although the argument is not
  312.                      otherwise treated specially.
  313.               PRINT_EXIT_VALUE (-C)
  314.                      Print  the  exit value of programs with non-
  315.                      zero exit status.
  316.               PROMPT_SUBST
  317.                      If set expressions like ${...}, $(...),  and
  318.                      $[...]  in prompts will be expanded.
  319.               PUSHD_IGNORE_DUPS
  320.                      Don't  push  multiple  copies  of  the  same
  321.                      directory onto the directory stack.
  322.               PUSHD_MINUS
  323.                      See popd below.
  324.               PUSHD_SILENT (-E)
  325.                      Do not print the directory stack after pushd
  326.                      or popd.
  327.               PUSHD_TO_HOME (-D)
  328.                      Have  pushd with no arguments act like pushd
  329.                      $HOME.
  330.               RC_EXPAND_PARAM (-P)
  331.                      See Parameter Expansion.
  332.               RC_QUOTES
  333.                      Allow the character sequence '' to signify a
  334.                      single quote within singly quoted strings.
  335.               REC_EXACT (-S)
  336.                      In  completion, recognize exact matches even
  337.                      if they are ambiguous.
  338.               RM_STAR_SILENT (-H)
  339.                      Do not query the user before  executing  "rm
  340.                      *" or "rm path/*".
  341.               SHIN_STDIN (-s)
  342.                      Read commands from the standard input.
  343.               SH_WORD_SPLIT (-y)
  344.                      See Parameter Expansion.
  345.               SINGLE_LINE_ZLE (-M)
  346.                      Use single-line command line editing instead
  347.                      of multi-line.
  348.               SUN_KEYBOARD_HACK (-L)
  349.                      If a line ends with a backquote,  and  there
  350.                      are an odd number of backquotes on the line,
  351.                      ignore the trailing backquote.  This is use-
  352.                      ful  on  some keyboards where the return key
  353.                      is too small, and  the  backquote  key  lies
  354.                      annoyingly close to it.
  355.               VERBOSE (-v)
  356.                      Print shell input lines as they are read.
  357.               XTRACE (-x)
  358.                      Print  commands  and their arguments as they
  359.                      are executed.
  360.               ZLE (-Z)
  361.                      Use the zsh line editor.
  362.