Peter Stephenson
03292bceec
51278: make (i) subscript flag for zero-length string consistent
2023-01-16 11:10:02 +00:00
Jun-ichi Takimoto
1be52186b4
51079: metafy sep in array subscript flag (s:sep:)
...
this enable sep to contain \0 etc.
2022-12-02 19:32:11 +09: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
dana
b066cc3ea9
42297: (e) subscript flag needs extra work with scalars
2018-05-14 16:54:19 +01:00
Peter Stephenson
f6ab9a281d
40932: Parameter subscripts need to count parentheses.
...
Otherwise they can terminate in the middle of an expression.
2017-04-03 10:04:03 +01:00
Peter Stephenson
ca0cb17011
37128: work around alias expansion trashing subscript parsing
2015-11-17 17:44:12 +00:00
Peter Stephenson
61b9529ff8
users/17310: we can't treat < after [ as a normal character.
...
Document problem and test for case that needs to work.
2012-10-03 18:11:12 +00:00
Peter Stephenson
76590bd93c
users/17304: angle brackets aren't associated with special parsing
...
inside square brackets
2012-10-02 12:46:45 +00:00
Peter Stephenson
dc72699b6c
25364: fix k flag in hash subscript
2008-07-31 13:53:28 +00:00
Bart Schaefer
4625e0eabc
24717, 24718, 24719: a 0 subscript is neither valid nor equivalent to 1
...
any longer, so the (i) subscript flag on an empty array needs to yield 1.
2008-03-18 15:14:20 +00:00
Peter Stephenson
abae4fe16e
23562: add KSH_ZERO_SUBSCRIPT option and leave off by default
2007-06-18 13:25:03 +00:00
Peter Stephenson
faf05be3d2
23440: Make $param[(R)value] substitute the empty string on failure
2007-05-21 09:30:24 +00:00
Peter Stephenson
f2d873d811
21701: Negative subscripts of scalars before start were broken
2005-09-06 15:28:17 +00:00
Bart Schaefer
be5e65d2bb
Adjust test for new typeset restrictions.
2001-08-13 17:45:03 +00:00
Peter Stephenson
7060b34457
15334: use string "(eval)" as script name in debugging messages in eval's
2001-07-09 18:31:24 +00:00
Peter Stephenson
cef000cc62
15329: test script changes to go with 15327 LINENO change
2001-07-09 16:41:19 +00:00
Bart Schaefer
e2e9121893
Subscripting optimization and error checking.
2001-04-24 05:45:16 +00:00
Bart Schaefer
fc4511ecb7
Fix subscripting bug with backslash-double-quote.
2001-04-23 15:30:22 +00:00
Bart Schaefer
fe4a49488c
Test for (kK) subscript flags bugfix.
2001-04-23 15:13:20 +00:00
Bart Schaefer
219674c48b
More parameter/subscript cleanup.
2001-04-21 18:49:12 +00:00
Bart Schaefer
220ad9aa23
Parameter repairs, mostly for subscripting.
2001-04-20 06:13:35 +00:00