Barton E. Schaefer
2fa11b7c54
34350, 34353: document zsh/db/gdbm module, clean up a few things in the code
...
Still core dumps at this revision if the tied parameter is forced to be a local and is not untied before end of scope.
2015-01-25 11:34:26 -08:00
Peter Stephenson
d067ebcacd
33876: etc.: Separate errors and keyboards interrupts
...
Combination of 12 commits from interrupt_abort branch.
Basic strategy is to introduce bits to errflag and to set and
reset them separately.
Remove interrupt status on return to main keymap.
Turn off ERRFLAG_INT for always block.
Restore bit thereafter: we probably need a new variable in order
to allow user interrupts to be reset in the always block.
Add TRY_BLOCK_INTERRUPT
This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too.
Ensure propagation of SIGINT from exited job.
If received by foreground job, shell uses ERRFLAG_INT, not
ERRFLAG_ERROR, to set the new state.
Reset errflag before precmd()
Add always block in _main_completion to fix ZLS_COLORS
Ensures we get the right state of $ZLS_COLORS at the end of _main_complete
even if there's an interrupt. However, the "right state" is a bit messy
as it depends on styles.
2014-12-11 09:41:17 +00:00
Mikael Magnusson
e2fe81ae9a
33785: Fix leaks of desthost in ztcp
...
Found by coverity.
2014-11-24 08:16:48 +01:00
Oliver Kiddle
a526a2203b
33743: use posix_openpt in zpty if it is available
2014-11-24 00:05:59 +01:00
Mikael Magnusson
a9004ce32f
33607: Fix some minor problems in zattr module
...
Remove the listattr call in zgetattr, it only caused no error to be output
when trying to retrieve an xattr from a file with no xattrs. When a file
had xattrs, it would just add an extra syscall for no good reason.
Always set an array parameter in zlistattr, this makes the returned value
much easier to use; in fact the _zattr completer didn't account for this
and zlistattr foo <tab> on a file with only one attribute did not work.
Almost all of the patch is only reindent, the only modification that's
not a pure deletions is:
- ret = 1 + (attr_len > val_len || attr_len < 0);
+ ret = 1 + ((val_len > 0 && attr_len > val_len) || attr_len < 0);
which makes sure we return the correct error in the new path due to the
removed listattr call. (If val_len is -1 due to no attribute existing,
it doesn't mean the user should retry the call because the attribute
grew in size).
2014-11-07 11:10:30 +01:00
Peter Stephenson
ef4fb421f5
33582: don't include tcp.mdh in zftp.c.
...
It's a private module definition header that doesn't need
to be exposed.
2014-10-31 10:23:29 +00:00
Jun T
d36421d376
33566: quash null pointer constant compiler warning
2014-10-29 08:48:17 -07:00
Peter Stephenson
0557c226fc
33294: $functions[func_with_redir] plus extra tests
2014-09-30 12:58:52 +01:00
Peter Stephenson
08e5191ff0
users/19097: remove $functypetrace in favour of ref to $zsheval_context
2014-09-18 19:09:52 +01:00
Peter Stephenson
246404a44d
Add $functypestack special parameter in zsh/parameter
2014-09-12 20:35:16 +01:00
Barton E. Schaefer
956829c18e
33122: typo from 32891 caused incorrect matches for pcre_match -n
2014-09-07 10:48:32 -07:00
Peter Stephenson
cc6e9db29d
33047: use git to simplify massively source distribution file selection
2014-08-23 21:01:58 +01:00
Peter Stephenson
51c0ccd303
missed updates to calls to ztrftime()
2014-07-30 14:20:07 +01:00
Barton E. Schaefer
f6429189a8
32903: new empty (unset) elements in the special parameter hash tables are special themselves
2014-07-24 08:16:29 -07:00
Barton E. Schaefer
933a0c45d2
32898 (credit Jun T.): fix offset_start initialization bug in 32891
2014-07-23 08:40:11 -07:00
Barton E. Schaefer
2693d852f6
32891: CASE_MATCH for =~ when using pcre; fix pcre_match with empty string
2014-07-20 11:42:09 -07:00
Barton E. Schaefer
38be9fe84a
32468: save/restore match/mbegin/mend when doing pattern lookups against zstyle contexts
2014-03-09 00:29:02 -08:00
Barton E. Schaefer
956d35ef12
32388: zparseopts -K preserves individual associative array elements
2014-02-15 13:49:26 -08:00
Jun T
feae6af6d2
32131: avoid infinite loop reading pty on platforms that do not buffer output after child exit
2013-12-16 22:15:08 -08:00
Peter Stephenson
4163ebf4c7
unposted, see 32054: Rationalise character encoding.
...
Shell functions are strictly ASCII for maximum portability.
Other files within the distribution may contain UTF-8 characters.
Exception for test files: where they need single character input
with the top bit set, ISO-8859-X is used (X doesn't matter as
we don't need the Euro).
2013-11-27 15:56:44 +00:00
Jun T
ef4d20ad6f
31902: rationalise use of gamma function.
...
Make zsh/mathfunc consistent across systems and use tgamma() where
available
2013-10-27 00:00:56 +01:00
Mikael Magnusson
fa03332635
31805: Add $patchars and $dis_patchars to zsh/parameter module
2013-10-11 14:57:57 +02:00
Peter Stephenson
b0a0441902
31672: Add test that was failing and fix zpty set-up race
2013-08-26 21:01:17 +01:00
Peter Stephenson
f75904a380
31665: zpty should attach terminal on slave.
...
Also add test.
2013-08-25 20:48:52 +01:00
Peter Stephenson
a4d3b8f676
31419: Add time zone and year to string formatted time output from zstat
2013-05-21 17:42:57 +01:00
Peter Stephenson
4b86cc48f7
30726: make shell options passed to emulate stick along with the emulation
2012-10-11 20:14:01 +00:00
Peter Stephenson
4e2cdd7956
30722: fix some cases where emulations or options were not propagated properly
...
from the emulate command
2012-10-07 19:46:46 +00:00
Phil Pennock
52ef609f69
30513: zsh/regex metafy fixes for widechar
2012-06-16 01:21:02 +00:00
Peter Stephenson
86f8e8de69
30307 plus tweak suggsted by Wayne: use %lld for zlong when long long
2012-03-05 10:06:28 +00:00
Peter Stephenson
2d47270112
unposted: fix uninitialised variable warning in pcre
2012-01-06 10:08:53 +00:00
Peter Stephenson
cf4e27a129
29907: Jun T.: remove declaration of unused variable
2011-11-17 12:27:18 +00:00
Peter Stephenson
fdb00982f5
Jun T: 29883: cast resource types to types they should be anyway
2011-10-31 09:48:58 +00:00
Peter Stephenson
68d1c094db
29865: don't compile pcre if no pcre-config
2011-10-26 16:46:09 +00:00
Phil Pennock
2f3c16d40f
29838: metafy/unmetafy strings for PCRE matching (UTF-8 fixes)
2011-10-24 11:31:25 +00:00
Peter Stephenson
3ba487ca77
unposted: use pm->node.nam to get names for parameters in errors
2011-08-15 19:32:30 +00:00
Peter Stephenson
515554acbc
fix datetime autofeatures
2011-08-11 19:43:46 +00:00
Peter Stephenson
8cbd510002
29674: add $epochtime to datetime
2011-08-11 18:45:04 +00:00
Peter Stephenson
bbbaed2b53
29663: add $EPOCHREALTIME to zsh/datetime
2011-08-10 11:31:18 +00:00
Peter Stephenson
962624e8c3
29491: remove some variables set but not used
2011-06-19 16:26:10 +00:00
Bart Schaefer
8a6222a372
29382: apply 29374 to zccmd_input too.
2011-05-27 13:54:07 +00:00
Bart Schaefer
86b900ad97
29312, users/16032: add "zparseopts -M"
2011-05-18 00:23:00 +00:00
Peter Stephenson
9c0a19669b
Danek: 29254: fix some compiler warnings
2011-05-13 18:12:05 +00:00
Peter Stephenson
d89361739a
29165: use term.h globally if needed at all.
2011-05-09 09:49:08 +00:00
Bart Schaefer
70fd751a82
users/15986: handle EINTR in zccmd_input
2011-05-08 23:19:11 +00:00
Peter Stephenson
94225e07fc
28638: add $usergroups parameter
2011-01-19 12:42:53 +00:00
Peter Stephenson
0a5702457b
28510: add (z+c+) and (z+C+) parameter flags
2010-12-12 22:44:50 +00:00
Peter Stephenson
fdebbca754
27990: don't use return value from setupterm()
...
to decide if module booted OK
2010-06-02 13:13:43 +00:00
Peter Stephenson
9ecfa0842b
unposted: fix typo in previous commit
2010-05-12 10:17:58 +00:00
Peter Stephenson
09960dc5b9
27951: Add $ZSH_EVAL_CONTEXT and $zsh_eval_contxt
2010-05-12 10:06:59 +00:00
Peter Stephenson
31123a1184
users/14902: another go at strftime
2010-02-26 17:07:18 +00:00
Peter Stephenson
d5a0f7623c
users/14900: ULONG_MAX is a valid return value from strotoul()
2010-02-26 15:30:37 +00:00
Peter Stephenson
e8c1e2ff4c
users/14897: extra test in strftime builtin for time conversion
2010-02-26 14:24:57 +00:00
Peter Stephenson
07b6256d8e
27756: add OS file locking to calendar
...
add errflag test to loop over fcntl()
2010-02-26 12:09:20 +00:00
Peter Stephenson
a3b971a27e
27755: add "zsystem supports" to zsh/system
2010-02-25 11:15:26 +00:00
Peter Stephenson
bec3de98df
27754 plus NEWS change: add "zsystem flock"
2010-02-24 21:37:24 +00:00
Peter Stephenson
af68ff74cd
27608: fix memory for mbegin, mend & regexp test
2010-01-20 11:16:22 +00:00
Peter Stephenson
8890e6e19f
27600: extend =~ syntax to set positional variables for matches
2010-01-17 21:48:25 +00:00
Wayne Davison
693fd5b56e
Check the return value of all pipe(), read(), and write() calls.
...
Gets rid of all the remaining "ignoring return value" compiler
warnings, and makes some read/write operations safer by ensuring
that an EINTR is handled.
2009-12-16 18:39:06 +00:00
Peter Stephenson
1d5a54270b
Richard Hartmann: 27440: typos in module warnings
2009-11-30 09:59:40 +00:00
Bart Schaefer
96feec40a5
users/14548: Src/Modules/termcap.c: prevent libtermcap from exiting on an
...
unknown terminal type
2009-11-11 16:26:19 +00:00
Peter Stephenson
a3055b2363
Mikael: 27362: some more attr fixes
2009-11-07 23:57:27 +00:00
Peter Stephenson
f30af94885
27357: fix compiler warnings in attr module
...
27358: fix error if $0 altered in sourced file
2009-11-06 22:38:47 +00:00
Peter Stephenson
39e4cfd4db
Jun T.: 27351: zdelattr missed first argument
2009-11-05 09:44:32 +00:00
Peter Stephenson
eeb5b6c941
Mikael: 27347: enhance extended attribute support
2009-11-04 11:33:59 +00:00
Peter Stephenson
68fabbda6a
Jun T.: 27292: fix length in socket call
2009-09-29 14:25:34 +00:00
Wayne Davison
2f8aaaf5e4
27286: Made movefd() return the targetfd on success. Added
...
a little more error checking in the callers of movefd().
2009-09-22 16:04:13 +00:00
Peter Stephenson
51409732d0
27284: better use of movefd()
2009-09-22 09:17:05 +00:00
Peter Stephenson
041057687f
27083: non-zero status on failures to find or execute file in "."
2009-07-01 15:07:25 +00:00
Peter Stephenson
8f0af2115e
26852: make terminfo.mdd test agree with one in terminfo.c
2009-04-20 17:05:32 +00:00
Peter Stephenson
418671fdb0
Jon Strait: 26778, 26781: extra options for PCRE matching
2009-03-25 11:29:11 +00:00
Peter Stephenson
9defc9850d
26772: better error handling and fix runaway chdir on failed cd
2009-03-24 12:52:07 +00:00
Peter Stephenson
9cc93fe728
Mikael: 26759: missing here-document terminator
2009-03-19 16:56:05 +00:00
Wayne Davison
bf25c3a43f
26735: Check some function return values for failures. Gets rid of
...
some compiler warnings, and improves error handling/notification.
2009-03-15 01:04:50 +00:00
Peter Stephenson
6594c0375b
26697: test for Linux- and Mac-style xattr functions
2009-03-08 20:20:47 +00:00
Peter Stephenson
8fce24dc4f
fix the cap.c patch
2009-03-03 20:44:34 +00:00
Peter Stephenson
93dd3e0540
26680: still more metafy() stuff in cap
2009-03-03 18:12:44 +00:00
Peter Stephenson
731646656c
26677: cap module needs some unmetafy() calls
2009-03-03 17:46:50 +00:00
Peter Stephenson
919f7b12ad
26671: various minor attribute tidy ups
2009-03-03 16:40:34 +00:00
Peter Stephenson
d58e5061ad
Mikael Magnusson: 26670: add zsh/attr module
2009-03-03 15:04:15 +00:00
Peter Stephenson
1270a9d8ee
26584: use bind/netdb.h where appropriate
2009-02-20 10:17:43 +00:00
Peter Stephenson
c7d8b0dfb8
26546, 26556: sticky emulation for functions defined in emulate ... -c ...
...
environments, plus documentation
2009-02-11 20:42:15 +00:00
Wayne Davison
e2b9d8d181
26362: avoid calling regfree() on uninitialized regex_t.
2009-01-19 08:26:21 +00:00
Wayne Davison
36375b5911
Fixed a few compiler warnings.
2009-01-19 08:00:15 +00:00
Peter Stephenson
e7c9e03c58
26301: make zpty -r exit more cleanly on bad reads
...
add option -m to make zpty -r return status 1 if pattern failed to match
use this option in comptest
2009-01-13 12:09:26 +00:00
Peter Stephenson
1e9b85e586
François Revol: some BeOS fixes
2008-11-18 10:14:35 +00:00
Clint Adams
cbc24017fe
26013: don't ztrdup the other buffer returned by inet_ntoa. cf. 25987.
2008-11-06 01:35:12 +00:00
Clint Adams
1b78e1a912
25987: don't ztrdup the buffer returned by inet_ntoa.
2008-11-01 18:20:14 +00:00
Peter Stephenson
db68b7270f
users/13418: protect against have_strcodes lying
2008-10-30 09:52:15 +00:00
Wayne Davison
b98b8e2c26
Fixed a signed/unsigned compiler warning.
2008-10-11 20:12:18 +00:00
Peter Stephenson
7e9f42526d
25777: argument to gdbmsetfn()
...
unposted: recognise ~[ in completion after : and =
2008-09-30 08:59:11 +00:00
Peter Stephenson
59dd1491c6
users/13295, tweaked: dont reset line numbers when parsing strings, sometimes
2008-09-29 08:46:21 +00:00
Peter Stephenson
b2d08a2155
25744: dynamic named directories and further doshfunc() simplification
2008-09-26 09:11:27 +00:00
Peter Stephenson
2920c227d3
25677: add %x and %I prompt escapes for shell source code debugging
...
tidy up interface to doshfunc()
2008-09-16 15:02:01 +00:00
Peter Stephenson
d37f9672cb
25651: make getpermtext() output indentation more logical
2008-09-11 17:14:38 +00:00
Clint Adams
13f60efbd7
25611, 25613: protect against two possible NULL dereferences.
2008-09-05 00:24:27 +00:00
Clint Adams
f926ebbf23
25609: initialize sz variable.
2008-09-04 22:23:51 +00:00
Peter Stephenson
0cba5ef62a
25595: fix line numbers with EVAL_LINENO,
...
try to fix oddities with funcstack and sourced files,
simplify use of caller element of funcstack
2008-09-03 09:08:18 +00:00
Clint Adams
0d07bf44e7
25490: make zties dynamic so there can be more than one gdbm handle in use at a time.
2008-08-19 12:01:13 +00:00
Peter Stephenson
a5a1296fa0
25448: add $funcfiletrace to show absolute line number for caller
2008-08-13 21:02:02 +00:00
Peter Stephenson
2853ca830a
25247 with further modifications: add $funcsourcetrace
2008-08-11 19:22:54 +00:00
Clint Adams
b34c5d8a54
25329: build the curses module if we've got any usable curses header, not just curses.h.
2008-07-23 02:57:45 +00:00
Peter Stephenson
5b29fedad8
25324: Danek Duvall: some Solaris and more general completions
2008-07-21 19:15:22 +00:00
Clint Adams
2d2d341161
25322: fix printing of keys.
2008-07-21 02:34:06 +00:00
Clint Adams
8954f31c7c
25321: delete gdbm node when corresponding hash entry is unset.
2008-07-21 02:24:03 +00:00
Clint Adams
fdf4449338
25320: fix read and write of elements by key.
2008-07-21 01:47:59 +00:00
Clint Adams
9f42d3211e
25319: fix zuntie, add -f option to ztie.
2008-07-21 00:55:15 +00:00
Peter Stephenson
02e0a4755f
25040: zpty should display context information more like eval
2008-05-15 15:50:57 +00:00
Peter Stephenson
16c03b4cbf
24972: Phil Pennock: zf_* variants of zsh/files builtins plus extra options
2008-05-08 09:03:49 +00:00
Peter Stephenson
2ca42b2025
24705: rationalise curses and term headers even more
2008-03-13 11:10:59 +00:00
Peter Stephenson
b5570971ef
24460: make zpty -rt more consistent by polling before every byte
2008-01-25 16:48:22 +00:00
Peter Stephenson
2fe664de46
Wayne: 24273: curses macros dont return a value
2007-12-17 09:41:08 +00:00
Peter Stephenson
44a9dde5b2
24252: dont define _XOPEN_SOURCE_EXTENDED for curses on OpenBSD
2007-12-14 15:14:04 +00:00
Peter Stephenson
6e58a1df8f
24197: interface to ztrftime() for insufficient memory was broken
2007-12-09 14:58:36 +00:00
Clint Adams
176b4aeb54
24173: fix thinko in 24171
2007-12-07 03:15:17 +00:00
Clint Adams
14121f3d42
24171: define USE_TERMINFO_MODULE when ncurses.h, ncurses/ncurses.h, or ncursesw/ncurses.h is present.
2007-12-07 00:11:44 +00:00
Clint Adams
6dc3cbafb1
24160: build terminfo module if ncursesw is present but curses.h is not.
2007-12-05 15:21:22 +00:00
Peter Stephenson
846a8b9075
24110: change ncurses includes again
2007-11-21 09:53:48 +00:00
Peter Stephenson
bb70fc6fe6
24107: extra search for ncurses headers but dont use if library isnt ncurses
2007-11-20 15:48:51 +00:00
Peter Stephenson
2402e10560
unposted: prepare for 4.3.4-dev-2
2007-11-20 09:41:44 +00:00
Peter Stephenson
1ff856951b
24089 plus tweak: fix curses on older systems
2007-11-12 12:16:50 +00:00
Peter Stephenson
bd6f46103a
Vin Shelton: 24088: error with no multibyte
2007-11-12 09:43:54 +00:00
Peter Stephenson
ed54878d7a
24083: add zcurses querychar
2007-11-10 20:29:27 +00:00
Peter Stephenson
e1f77d3e64
typo in mouse args in 24073
2007-11-08 12:13:20 +00:00
Peter Stephenson
bed48e22bc
typo in parameter setting 24073
2007-11-08 12:07:10 +00:00
Peter Stephenson
18c57f0aee
typo in parameter setting 24073
2007-11-08 12:04:02 +00:00
Peter Stephenson
a563cd8958
24073 (plus tweak): zcurses mouse handling
2007-11-07 22:35:13 +00:00
Peter Stephenson
ea15ee8867
24069: add zcurses_keycodes
2007-11-06 14:14:16 +00:00
Peter Stephenson
9b4cc61b09
fallout from 24050: add curses_keys.h to .cvsignore
...
add high res timestamps to NEWS
2007-11-04 16:45:53 +00:00
Peter Stephenson
2ab1bf71c6
24038: add "zcurses bg"
2007-10-30 21:03:10 +00:00
Peter Stephenson
12a38ba4f7
adapted 24030: work around Solaris cancelling curses key timeout
2007-10-30 11:03:13 +00:00
Peter Stephenson
8fe09747d8
fix crash when colo[u]r is not available in curses
2007-10-29 11:38:13 +00:00
Peter Stephenson
788320264e
add zcurses timeout
2007-10-28 20:28:29 +00:00
Peter Stephenson
0919edb315
24027: subwindows, "touch", optimized refresh
2007-10-28 19:52:40 +00:00
Peter Stephenson
52d3fdc80e
24026: default colors in zcurses
2007-10-28 00:21:54 +00:00
Peter Stephenson
0ba9388182
24025: new zcurses "clear" and "location" subcommands
...
zcurses window "stdscr"
various minor zcurses tweaks
2007-10-27 23:43:26 +00:00
Peter Stephenson
4f3e414a64
24025: new zcurses "clear" and "location" subcommands
...
zcurses window "stdscr"
various minor zcurses tweaks
2007-10-27 23:42:47 +00:00
Peter Stephenson
4540478d69
zcurses input: oops
2007-10-26 22:04:51 +00:00
Peter Stephenson
7f8e229818
24024: add zcurses input with keypad handling
2007-10-26 21:59:56 +00:00
Peter Stephenson
9fc8fe1785
24018: add zcurses scroll
2007-10-24 22:23:10 +00:00
Peter Stephenson
7489d51823
24017: fold zcurses color into attr
...
add some zcurses parameters
a bit of tidying
2007-10-24 21:53:48 +00:00
Peter Stephenson
7988fa65fe
24016: compilation with curses and not ncurses
2007-10-24 08:47:43 +00:00
Clint Adams
f9f16d9364
24012: rename "endwin", "c", and "s" to "endwin", "char", and "string" respectively.
2007-10-23 21:16:03 +00:00
Peter Stephenson
7ee95573ff
24011: various tweaks to zcurses commands including rearrangement to dispatching
2007-10-23 20:55:42 +00:00
Clint Adams
2ab16a2cd9
24010: fix max arguments for 'zcurses border' to 1.
2007-10-23 19:56:35 +00:00
Clint Adams
526f86ec15
24005: enforce min/max arguments on zcurses commands.
2007-10-21 21:16:07 +00:00
Clint Adams
dd4bcb2391
24002: change all the subcommands from option letters to words.
2007-10-20 13:40:00 +00:00
Peter Stephenson
4655eb4f99
24001: fix up zcurses -C
2007-10-20 12:15:15 +00:00
Clint Adams
c32078a813
23997: don't delete color pair hash on module unload unless it's been previously initialized.
2007-10-19 20:21:28 +00:00
Clint Adams
ba34574308
23989: add broken zcurses -C to set window colors.
2007-10-18 20:44:12 +00:00
Peter Stephenson
5128de28f2
23978: zcurses -s with wide characters: use waddwstr()
2007-10-18 08:29:33 +00:00