From 09c5818b393a14d693e5b7424b23e0a155bcaa60 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 15 May 2003 09:39:55 +0000 Subject: 18530: print option states with `set -o' or `set +o' --- Doc/Zsh/builtins.yo | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index bbac85e4e..a31e7fde6 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -973,7 +973,7 @@ cindex(parameters, positional) cindex(parameters, setting array) cindex(array parameters, setting) pindex(KSH_ARRAYS, use of) -item(tt(set) [ {tt(PLUS())|tt(-)}var(options) | {tt(PLUS())|tt(-)}tt(o) var(option_name) ] ... [ {tt(PLUS())|tt(-)}tt(A) [ var(name) ] ] [ var(arg) ... ])( +item(tt(set) [ {tt(PLUS())|tt(-)}var(options) | {tt(PLUS())|tt(-)}tt(o) [ var(option_name) ] ] ... [ {tt(PLUS())|tt(-)}tt(A) [ var(name) ] ] [ var(arg) ... ])( Set the options for the shell and/or set the positional parameters, or declare and set an array. If the tt(-s) option is given, it causes the specified arguments to be sorted before assigning them to the positional @@ -981,7 +981,10 @@ parameters (or to the array var(name) if tt(-A) is used). With tt(PLUS()s) sort arguments in descending order. For the meaning of the other flags, see ifzman(zmanref(zshoptions))\ ifnzman(noderef(Options))\ -. Flags may be specified by name using the tt(-o) option. +. Flags may be specified by name using the tt(-o) option. If no option +name is supplied with tt(-o), the current option states are printed. +With tt(PLUS()o) they are printed in a form that can be used as input +to the shell. If the tt(-A) flag is specified, var(name) is set to an array containing the given var(arg)s; if no var(name) is specified, all arrays are printed -- cgit 1.4.1