about summary refs log tree commit diff
path: root/Test/B02typeset.ztst
Commit message (Collapse)AuthorAgeFilesLines
* 44296: "typeset Q= {X}" crashed the shell.Peter Stephenson2019-05-141-0/+7
|
* 43616: Various parameter setting and display fixes.Peter Stephenson2018-10-081-7/+284
| | | | | | Mostly to do with typeset -p and tied variables and their interaction. Some general tied variable fixes.
* unposted: Add a test for 43546.Daniel Shahaf2018-09-251-0/+5
|
* Add typeset -p1, like typeset -p with newlinesPeter Stephenson2017-10-011-0/+26
|
* Updates for ksh array element syntax.Peter Stephenson2017-09-241-0/+15
| | | | | | | | Move detection of key/value pairs down into prefork(). Detect normal array assignment and [key]=val array assignemnt separately. Mark key / value pairs with Marker and pass up flag. Deal with marked triads specially later on.
* More [key]=value tweaksPeter Stephenson2017-09-141-0/+2
| | | | | | Some rephrasings. Update typeset -p for associative arrays to use new syntax.
* First go at var=([key]=value) syntax.Peter Stephenson2017-09-131-0/+55
| | | | | | | Works for both normal and typeset case, also var+=... Still to do: allow to be mixed with straight array assignment, improve typeset -p, implement [key]+=value.
* 40110: attempt to fix test failures on SolarisBarton E. Schaefer2016-12-061-1/+1
| | | | | | B02typeset: ignore strerror text in test output, it differs by OS C02cond: discard stderr when looking for a path to the "mount" command
* 40068: Abort execution when setuid/setgid fail.Daniel Shahaf2016-12-031-0/+10
| | | | | | | | | | | The incumbent code would print an error message and continue execution with the previous uid/gid values, not even setting lastval: % UID=42 id -u; echo $? zsh: failed to change user ID: operation not permitted 1000 0 %
* "typeset -p" uses "export" commands or the "-g" option for parameters that ↵Barton E. Schaefer2016-10-241-2/+2
| | | | are not local to the current scope
* 37646: bit missed out of previous readonly commit.Peter Stephenson2016-01-191-0/+5
| | | | I mean, the commit about readonly. Commits aren't readonly, this is git.
* 37493: readonly + POSIX_BUILTINS == typeset -grBarton E. Schaefer2016-01-021-4/+4
|
* 37305: typeset -p can now output arrays on one linePeter Stephenson2015-12-041-11/+5
|
* unposted (after 37243): Explain the breadcrumb by adding a comment.Daniel Shahaf2015-11-281-0/+1
|
* 37243: too many problems with inserting a line into B02, instead add a ↵Barton E. Schaefer2015-11-271-0/+1
| | | | | | | placeholder and substitute for it. unposted: %cleanup block is not called when %prep sets ZTST_unimplemented, so avoid leaving a mess
* Comment should say export is equivalent to typeset -xgBarton E. Schaefer2015-11-261-1/+1
|
* 37224: delete obsolete commentBarton E. Schaefer2015-11-261-1/+1
|
* 36083: set array value when consistently retying scalar and arrayPeter Stephenson2015-08-101-0/+3
|
* fix another test for 35581Barton E. Schaefer2015-07-221-2/+2
|
* 35581, 35582: output array assignments with spaces inside the parensBarton E. Schaefer2015-07-221-3/+3
|
* 35623: All is_array assignments should be treated as having a value.Peter Stephenson2015-06-271-0/+16
|
* 35613: Handle array slices in typesetPeter Stephenson2015-06-261-0/+15
|
* 35604: create empty arrays in typeset with array=()Peter Stephenson2015-06-251-0/+13
|
* 35590: tweak and test text output from typesetPeter Stephenson2015-06-241-0/+12
|
* various posts: Implement assignment parsing for typeset.Peter Stephenson2015-06-241-1/+144
| | | | | | | | | | | | Typeset assignments now work like raw assignments except for no "+=" and no GLOB_ASSIGN. Documented in typeset builtin doc and mentioned in release notes. Tests to ensure basic sanity. Enabled by default, can be turned off by "disable -r" with typeset family of commands.
* 35059: fix, document, test readonly -p.Peter Stephenson2015-05-081-0/+21
| | | | | | Don't output specials as can't be reconstructed. Output arrays in a useful order.
* 35054: readonly -p + POSIXBUILTINS fix.Peter Stephenson2015-05-071-2/+4
| | | | Now displays unset variables marekd readonly
* 34992: POSIX fix for readonly variables.Peter Stephenson2015-04-291-0/+17
| | | | | With POSIXBUILTINS, variables can be marked readonly if unset. Also, variables can't have the readonly flag removed.
* 30169: repeat "typeset -T" with same two first arguments is not an errorPeter Stephenson2012-08-161-0/+9
|
* "typeset -g <var>" should be silent even without TYPESET_SILENTPeter Stephenson2008-11-051-0/+6
|
* 25671: non existing variable in typeset -p should cause status 1Peter Stephenson2008-09-151-1/+1
|
* 25662: declare -p should never create argumentsPeter Stephenson2008-09-131-0/+9
|
* 24264: restrict effect of 24234 to parameter substitution code and documentPeter Stephenson2007-12-161-4/+4
|
* 24234: apply typeset parameter flags consistentlyPeter Stephenson2007-12-131-1/+40
|
* 23732: three broken testsPeter Stephenson2007-07-311-1/+1
|
* 23730: improve preprocessor and regression tests for 23725Peter Stephenson2007-07-311-0/+17
|
* 23726: test for adding and removing environment variablesPeter Stephenson2007-07-301-0/+11
|
* see 23479: add initial features support for modulesPeter Stephenson2007-05-281-2/+0
|
* 22518: Initial go at making parameter subscriptsPeter Stephenson2006-06-261-2/+15
| | | | use multibyte characters.
* Third time's a charm: a better fix than using either a subshell orWayne Davison2005-08-111-11/+17
| | | | | | | | | "setopt localoptions" is to use a function for the final test (since it destroys all the variables in the environment). This allows us to directly test that the environment was properly restored after the function call, and ensures that the caller (ZTST_execchunk, which directly exec'ed the test code) still has all the vars that it expects in the environment (such as ZTST_verbose, options, and ZTST_mainopts).
* A better fix than my last patch is to use "setopt localoptions".Wayne Davison2005-08-101-3/+3
|
* Put the last test into a sub-shell so that it doesn't interfereWayne Davison2005-08-101-2/+2
| | | | with the temp-file cleanup.
* 20605: Use separate structure with get/set/unset methods fro parameters.Peter Stephenson2004-12-071-1/+93
| | | | Separate justification width of parameters from base/precision.
* 20378: Matthias B.: fix bugs joining with metafied chars.Peter Stephenson2004-09-171-0/+15
|
* 19800: reverse sense of `declare +m' test, -m now being allowed for declareOliver Kiddle2004-04-201-4/+4
|
* 19139: add tests for typeset -TPeter Stephenson2003-09-251-0/+12
|
* 17985: fix hiding/tagging testBart Schaefer2002-12-061-1/+1
|
* 17967: Quote some arguments in B02typeset.ztst.Peter Stephenson2002-11-261-3/+3
|
* 17432: typeset test, typeset shows base for integerPeter Stephenson2002-07-051-1/+1
|
* Fix and regression tests for crash on typeset of local array elements.Bart Schaefer2001-08-131-0/+243