1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-17 13:36:04 +02:00
Commit Graph

22 Commits

Author SHA1 Message Date
Bart Schaefer 76019f7174 52864: Change ${|var|...} to ${{var} ...}, limit local REPLY to ${|...} 2024-04-01 22:35:33 -07:00
Bart Schaefer 610b18875a 52650 plus minor fixes: add -u for named references pointing to "upper" scope 2024-03-04 21:07:01 -08:00
Bart Schaefer 4b9cd6b8bd 52583: extra check for proper scope and existence of readonly specials 2024-02-23 09:51:06 -08:00
Bart Schaefer 6b21e5c0e2 52559: revise "typeset -p" with respect to local readonly special parameters
Update doc and tests to describe handling of global readonly specials and
to account for side-effects on zsh/param/private.
2024-02-20 20:16:03 -08:00
Bart Schaefer 8801665e5b 52513: fixes and doc for using nofork substitutions with private parameters
Also fixes a crash bug with {fd}>&N redirections and private parameters
2024-02-03 12:07:14 -08:00
Bart Schaefer e3c2af216b 52115: permit repeated "private" declarations as long as types aren't changed 2023-09-05 18:04:09 -07:00
Bart Schaefer 9ff1b2810e users/29220: fix bug with assignment to private following explicit unset 2023-09-03 11:42:00 -07:00
Bart Schaefer 143e153259 51361: Tests for 51360. 2023-02-12 11:23:06 -08:00
Bart Schaefer fa4c88ca25 49456: clean up detection of private params in nested scopes, update doc 2021-10-04 09:02:27 -07:00
Bart Schaefer 82ff9f24f1 48560: add TYPESET_TO_UNSET option to remove initialization of parameters
Changes typeset such that ${newparam-notset} yields "notset" and
"typeset -p newparam" does not show an assignment to the parameter.  This
is similar to the default behavior of bash and ksh, with minor differences
in typeset output.

Also add tests for some POSIX incompatibilities plus minor changes for test
harness robustness.
2021-04-18 13:58:09 -07:00
Martijn Dekker c578f0a08b 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
Peter Stephenson ab7be4238c More [key]=value tweaks
Some rephrasings.

Update typeset -p for associative arrays to use new syntax.
2017-09-14 21:43:37 +01:00
Barton E. Schaefer c3e43541c0 40198: output of B02typeset differs when (( UID == 0 )) so do not attempt to redo that test in that case 2016-12-15 11:22:22 -08:00
Barton E. Schaefer 0f5e670cde "typeset -p" uses "export" commands or the "-g" option for parameters that are not local to the current scope 2016-10-24 07:14:39 -07:00
Peter Stephenson 16684952fb 37305: typeset -p can now output arrays on one line 2015-12-04 15:39:53 +00:00
Barton E. Schaefer 026cb6a812 37243: too many problems with inserting a line into B02, instead add a placeholder and substitute for it.
unposted: %cleanup block is not called when %prep sets ZTST_unimplemented,
so avoid leaving a mess
2015-11-27 11:20:33 -08:00
Barton E. Schaefer 3d962aacd5 37229: non-local assignment to a parameter name whose outermost declaration is private, is an error rather than a silent no-op.
Also fix %prep sed expression for Solaris.
2015-11-26 12:43:08 -08:00
Barton E. Schaefer 2bab9f0394 37225: fix test for typeset with zsh/param/private 2015-11-26 09:30:05 -08:00
Barton E. Schaefer e73b73e0b0 37208: re-run the "typeset" tests with the private module loaded 2015-11-23 21:45:24 -08:00
Barton E. Schaefer b1688305cc 37181: consistent use of zmodload and corresponding ZTST_unimplemented or ZTST_skip 2015-11-21 23:56:25 -08:00
Peter Stephenson 5ed0cb8bc5 37084: add implementation check to zsh/parm/private test 2015-11-10 09:32:04 +00:00
Barton E. Schaefer d3d5325d27 37081: new module zsh/param/private for private-scoped parameters in functions 2015-11-08 16:19:37 -08:00