Commit Graph

59 Commits (master)

Author SHA1 Message Date
Bart Schaefer 5ba43e58c2 52781: HIST IGNORE_DUPS + HIST_REDUCE_BLANKS treats whitespace as significant 2 months ago
Oliver Kiddle 5331ff11c6 52594: support for POSIX real-time signals with kill and trap
Also add new -L option to kill for a more verbose listing of signals
3 months 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
Martijn Dekker c578f0a08b 45004: Fix typos in comments 5 years ago
Daniel Shahaf 4b55c0f40c 42146: type -w += global aliases
Follow-up to 36403, which did the same for suffix aliases.
7 years ago
Peter Stephenson 151a4660e2 41164: Don't free a history entry if it's curline.
This replaces 41113 / 94014ff65b with a simple local change for the
immediate problem.  It's not entirely clear if this reflects wider
changes in the structure of the history code.
7 years ago
Peter Stephenson 94014ff65b 41113 (tweaked): Save current line linkage to history ring.
When saving history state save whether the current history line
is linked into the ring and remove it, and restore as appropriate
later.  This avoids surprises where the history ring is freed
and incorrectly frees the current state in curline, which has
a different allocation strategy.

Original patch tweaked to make restoring more logical.
7 years ago
Jun-ichi Takimoto c09af3516f unposted: declare file local variables as static 7 years ago
Peter Stephenson 34f70c5dc0 40440: Add $functions_source hash to zsh/parameter.
This allows you to find out where a function was loaded from.
7 years ago
Peter Stephenson f90a0447aa 40353 with tweaks to whence -v: extend directory cache use.
Now used for all autoloaded functions after load, including those
where the file was found along fpath, reducing duplication of
directory names.
7 years ago
Peter Stephenson 00f16c8e68 unposted: one missing *name = NULL 7 years ago
Peter Stephenson 178e62dbfe 40342: Add directory name cache for autoload file paths.
This renders "autoload /blah/blah/*" as efficient as use of
fpath.
7 years ago
Peter Stephenson f26d1ba6b0 Add features associated with autoloading a function using an absolute
path.

-d defaults to normal fpath

-r remembers the path without actually loading.  May be combined with -d.

-R does the same but it's an error if not found

-X can now take a directory path: this is used to output not yet loaded
functions that have an associated path.
7 years ago
Daniel Shahaf 3a8727dc6b 40009: alias -L: Emit aliases that begin with a plus sign correctly. 8 years ago
Jun-ichi Takimoto ca3bc0d95d 37838: use UNUSED() consistently 8 years ago
Daniel Shahaf a8a00be442 37591: 'alias -L': skip with a warning aliases with '=' in their LHS 8 years ago
Daniel Shahaf 1ba2fac03d 36403: type -w += suffix alias
This makes 'type -w' distinguish suffix aliases from regular aliases,
like bare 'type' already does.

Use-case: detecting programmatically whether the command word is indeed
a valid command word (see <https://github.com/zsh-users/zsh-syntax-highlighting/issues/126>)
9 years ago
Peter Stephenson 39b28980f3 various posts: Implement assignment parsing for typeset.
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.
9 years ago
Peter Stephenson 2abba7243a 35386: expand tabs where useful in builtins outputing function.
Also add to zed -f.

Option is -x <numm>.
9 years ago
Barton E. Schaefer a9c8b6a076 34966: "whence -v" for a function reports whether the function is autoloaded or its source file when known 9 years ago
Peter Stephenson cf6b0f5663 33285: apply function definition redirections at execution 10 years ago
Peter Stephenson 4b86cc48f7 30726: make shell options passed to emulate stick along with the emulation 12 years ago
Peter Stephenson 6f3ff6b653 30633: "functions -T" only traces marked function, not called functions 12 years ago
Bart Schaefer 30361b650c 30184: use a HASH_EXECUTABLES_ONLY test that matches the test used by
exec.c:iscom() during path search.
12 years ago
Peter Stephenson c214b86e94 30101: add HASH_EXECUTABLES_ONLY option 13 years ago
Peter Stephenson bafa15955d 29195: Separate nameddir hash to avoid clash of
"bool" type on Solaris
13 years ago
Peter Stephenson d89361739a 29165: use term.h globally if needed at all. 13 years ago
Peter Stephenson e85349fbf7 users/14411: Src/hashtable.c: only hash stat-able executable regular
files as commands
15 years ago
Peter Stephenson c7d8b0dfb8 26546, 26556: sticky emulation for functions defined in emulate ... -c ...
environments, plus documentation
15 years ago
Clint Adams 484644676a 25985: don't try to disable signal traps if getsignum returns -1. 16 years ago
Peter Stephenson d37f9672cb 25651: make getpermtext() output indentation more logical 16 years ago
Peter Stephenson 2853ca830a 25247 with further modifications: add $funcsourcetrace 16 years ago
Oliver Kiddle 8d956e9bcb 24048: fix home directory expansion with NIS on Solaris 17 years ago
Peter Stephenson 1b52f47cf2 23665: autoloading of module features and related tweaks 17 years ago
Peter Stephenson 0108088f52 23152: make ztrcmp() respect MULTIBYTE
make sorting of printed hash tables more consistent
18 years ago
Wayne Davison 4cb83571c4 Changed some structures to avoid gcc's type-punned warnings. 18 years ago
Clint Adams a915138852 22284: add --disable-dynamic-nss configure switch to disable use of getpw*(), getgr*(), initgroups() functions. 19 years ago
Wayne Davison e79af955f0 Got rid of some unsigned-char/char pointer casts. 19 years ago
Peter Stephenson 05b06b1c08 fix autoloaded trap bug; rejig use of trapfuncs
(now traplists); improve trap tests
20 years ago
Wayne Davison fb0937a69e Marked unused parameters with the new UNUSED() macro. 20 years ago
Wayne Davison 059162c442 Supply all initializers for the final struct reswd element. 20 years ago
Oliver Kiddle ca0deae382 19767, 19785: store flags for -z and -k options to autoload allowing the
completion system to be used with ksh_autoload set
20 years ago
Oliver Kiddle 95231270ed 19595: rename DO to DOLOOP to avoid conflict with curses.h on Tru64 5.1 20 years ago
Peter Stephenson 815bc92148 a la 19209: zcalloc -> zshcalloc 21 years ago
Peter Stephenson 8e359a669e 19020: fix printaliasnode 21 years ago
Peter Stephenson 3ffb3ad2f2 19014: add alias -s suf=handler 21 years ago
Peter Stephenson 9634760d5e 17582: Improved option argument handling.
unposted: Updated version to 4.1.0-dev-6 because of interface change.
22 years ago
Oliver Kiddle af0697b705 17503: fix various typos and spelling mistakes in source code comments 22 years ago
Andrey Borzenkov 7c0a534298 15253 : hash foo together with foo.exe on Cygwin 23 years ago
Wayne Davison 7e17db1fdc The function addhistnode() is no longer called for a HIST_TMPSTORE
entry, so I removed the checking for that flag.  Also, freehistdata()
now avoids calling removehashnode() on a HIST_TMPSTORE entry.
23 years ago