Commit Graph

315 Commits (master)

Author SHA1 Message Date
Oliver Kiddle 57248b8883 52750: remove ansi2knr support for old pre-ansi K&R compilers 2 months ago
Jörg Sommer fe276d3873 52442: mark hookdef.name as const
At least *zle_main* uses const strings to initialize its
structure *zlehooks*.
4 months ago
Bart Schaefer 8d009d35a9 51510: Skip namespaces in "set"/"typeset" output, add tests, fix bug 1 year ago
Bart Schaefer 0562be0af8 51509 (+ fix typo): Add ${(!)name} for the referred-to name of a named reference
Extend ${!name} in ksh emulation for same
1 year ago
Bart Schaefer a9ba166216 51483: Enable assignment and expansion of parameters with ksh-like namespace prefixes. 1 year ago
Bart Schaefer 3eed6f70cd 51402: Some ksh/bash features, additional sanity checking
* Add "unset -n"
* Allow and enforce "typeset -n -r" for read-only references
* "can't change type via subscript reference" error
* Better checking for self-referential declarations/assignments
* Ksh-style "foo=bar; typeset -n foo" creates foo=bar reference
* Support "typeset -n ref; for ref in ..."
* Subscripted references use NO_EXEC for safety
* References assigned in called scopes reset scope at end
* Allow named references to $! $? $$ $- $0 $_
1 year ago
Bart Schaefer 511e020c68 51360: Initial implementation of named references. 1 year ago
Oliver Kiddle e2a39513dc unposted: mention attributes changes, fix renumbering mistake and allow completion to offer prompt escapes for PROMPT_EOL_MARK 1 year ago
Oliver Kiddle 9d99a01367 51281: keep track of attributes left on at the end of left and right prompts and reapply them explicitly as appropriate 1 year ago
Oliver Kiddle c01479a2ed 51280: add support for italic and faint fonts in the line editor 1 year ago
Oliver Kiddle 667ead3a64 51258, 51272: refactor handling of terminal attributes, removing OFF flags in zattr 1 year ago
Oliver Kiddle a73c705b0c 51212: remove STOUC() macro
This served as a workaround for ancient compilers where casts to
unsigned char were broken.
1 year ago
Daniel Shahaf 56e7b147ad unposted: Follow-up to the last commit: Fix a typo in a comment. 1 year ago
Daniel Shahaf 5c9713603d unposted: zsh.h: lextok: Add an explanatory comment with a cross-reference. 1 year ago
Philippe Altherr ab9c579ef9 51098: remove unreachable NOERREXIT_UNTIL_EXEC code and effects 1 year ago
Peter Stephenson 02747bbbd3 49989: Single byte versions of nice quoting.
Align interfaces for "nice" printing of characters with those for
multibyte to make more available in single-byte compilation.
2 years ago
Daniel Shahaf 45182eb4d4 unposted: Fix some typos and markup. 2 years ago
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.
3 years ago
Bart Schaefer 408a830483 47913: implement CASE_PATHS option to make NO_CASE_GLOB more sensible 3 years ago
Oliver Kiddle 0721060f36 47510: drop code that avoided termcap for named colours
The inconsistency caused test failures where TERM is e.g. rxvt-unicode.
This also makes a couple of bits available in zattr by removing flags
indicating whether to use termcap which is not an attribute as such.
3 years ago
Bart Schaefer 63b6398b70 47364: Enable extendedglob in pattern with ${(*)name/pattern/replacement}
Mikael Magnusson: 47382: Completion for 47364
4 years ago
Daniel Shahaf d4da2c73f0 47300: Document the EC_NODUP, EC_DUP, EC_DUPTOK triplet.
All uses reviewed; no functional change.
4 years ago
Roman Perepelitsa a8e31c07a7 unposted: comments explaining how hashtable must be created
See zsh-workers 46277, 46278, 46279.
4 years ago
Roman Perepelitsa 6f6363de94 46275: eliminate undefined behavior caused by redefinition of hashtable
struct hashtable has different set of data members in different
translation units. This is undefined behavior.
4 years ago
Peter Stephenson 4e0058afc5 users/24971: ${(-)var} sorts on signed integers 4 years ago
Peter Stephenson 3df604a4be 46026: Add CLOBBER_EMPTY option. 4 years ago
Mikael Magnusson 8923d2a618 Add SHORT_REPEAT option 4 years ago
Daniel Shahaf 338a4a299a 45583/0004: internal: Add some comments around wordcodes. No functional change. 4 years ago
Daniel Shahaf 4960699de2 45583/0003: internal: Add some comments around Eccstr. No functional change. 4 years ago
Mikael Magnusson e6fa0b3b65 Fix typos reported by codespell in Src/ 4 years ago
Jens Schleusener 11dbe4c286 45269: Fix misspellings in completions and elsewhere. 4 years ago
Daniel Shahaf 8bc4400762 45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change. 4 years ago
Martijn Dekker c578f0a08b 45004: Fix typos in comments 5 years ago
dana 78fb8aaccf 44198: Add cd_silent option to suppress all cd output 5 years ago
Oliver Kiddle 50597692e0 43759: add support for true colour terminals 6 years ago
Oliver Kiddle 37d0005a9e 43747: new module to map colours from hex triplets to the nearest matching colour 6 years ago
Peter Stephenson fa5b9bf6ee 43674: Split more PM_ flags for variables and functions.
This avoids using sign bit.

Also bump dev version because of wordcode incompatibility.
6 years ago
Peter Stephenson f99f7dca75 43616: Various parameter setting and display fixes.
Mostly to do with typeset -p and tied variables and their interaction.

Some general tied variable fixes.
6 years ago
Peter Stephenson 7c5241edf3 43446: More entersubsh() / addproc() wiring.
Fix additional races by passing back use of list_pipe_job
from subshell.
6 years ago
Peter Stephenson 9408c4825b users/23472: Add $sysparams[procsubstpid] to zsh/system 6 years ago
Peter Stephenson 1d2f684c9b 42793: Always define FDT_PROC_SUBST even if not needed.
This avoids proliferating #ifdef's.
6 years ago
Peter Stephenson 758966502c 42322 (tweaked): Fix interactive_comments history with just a coment.
Don't discard the line from the history merely because it produced
no synactic words.
6 years ago
Peter Stephenson 36fcaeb167 42245: Abort last word on interactve comment.
Last recorded word should be the previous one.
6 years ago
Peter Stephenson 5f6a52c06c 42156: new CHECK_RUNNING_JOBS option demanded by bash groupies
Also new job options.

Also suppress debug error if rows or columns are reported as zero as
this is normal without a physical terminal.
6 years ago
Peter Stephenson 8ec3d17b4b 33395: Improvments for function managment.
Functions defined inside other fucntions needs file line number
adding.  Particularly useful for anonymous fucntions.

Add flag to indicate a function is anonymous.  Done up to now
by comparing the name to a pointer but this is more consistent.
6 years ago
Peter Stephenson 728f2adfc8 Add typeset -p1, like typeset -p with newlines 7 years ago
Peter Stephenson 6230e82d44 41764 (test tweaked): allow [key]+=value when modifying arrays 7 years ago
Peter Stephenson 7d4b41b52a 41747: Don't create hash entry if just checking existence.
Pass a flag in indicating this case.
7 years ago
Peter Stephenson 85b0dd7133 Updates for ksh array element syntax.
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.
7 years ago
Peter Stephenson 54b3958440 First go at var=([key]=value) syntax.
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.
7 years ago