mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
35059: fix, document, test readonly -p.
Don't output specials as can't be reconstructed. Output arrays in a useful order.
This commit is contained in:
parent
39aeeedb19
commit
f855801fb9
4 changed files with 138 additions and 70 deletions
|
@ -1785,6 +1785,11 @@ form of a typeset command and an assignment (which will be printed
|
|||
separately for arrays and associative arrays), regardless of other flags
|
||||
and options. Note that the tt(-H) flag on parameters is respected; no
|
||||
value will be shown for these parameters.
|
||||
|
||||
As the intention of this option is to produce output that can restore
|
||||
the current state, readonly specials (whose values cannot be
|
||||
changed) are not shown and assignments to arrays are shown before
|
||||
the tt(typeset) rendering the array readonly.
|
||||
)
|
||||
item(tt(-T) [ var(scalar)[tt(=)var(value)] var(array) [ var(sep) ] ])(
|
||||
This flag has a different meaning when used with tt(-f); see below.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue