Peter Stephenson
ddd172ebe2
20863: fix history (i)searching for Unicode
2005-02-25 10:20:38 +00:00
Peter Stephenson
29b6b82ade
20866: fix deliberate errors in 20861
2005-02-24 21:10:44 +00:00
Oliver Kiddle
ebe071866d
20862: attempt to fix configure scripts to detect iconv properly
2005-02-24 16:53:07 +00:00
Peter Stephenson
691dd7e529
20861: Fix statusline in Unicode, apart from isearch
2005-02-24 15:32:36 +00:00
Andrey Borzenkov
c4a4c1340a
20857: rewrite zle_refresh to use wide characters.
2005-02-23 16:29:56 +00:00
Peter Stephenson
0da7162ed6
20856: use VARARR for multibyte string.
2005-02-23 13:59:33 +00:00
Peter Stephenson
d9137fd4b6
20854: more Unicode stuff.
2005-02-23 13:50:09 +00:00
Andrey Borzenkov
70f9279060
20845: fix mbstate_t usage in getrestchar
2005-02-22 21:36:40 +00:00
Peter Stephenson
85b63c0c03
20844: prune trailing slashes from named directory
2005-02-22 18:23:16 +00:00
Peter Stephenson
b83f0e2290
Andrej: 20838: get ZLE_UNICODE_SUPPORT basically working
2005-02-22 13:12:35 +00:00
Peter Stephenson
ee5aada47b
20833: typo: int_t -> wint_t
2005-02-21 11:18:49 +00:00
Peter Stephenson
e34d2df070
20828: typos in 20822
2005-02-18 17:30:55 +00:00
Peter Stephenson
d7c13fb2c3
20822: Initial code for Unicode/multibyte input
...
20823: Debugging test in stat wrong for 64-bit systems
2005-02-18 13:57:25 +00:00
Peter Stephenson
213dc8b210
20816: update rlimits for new glibc
2005-02-16 17:40:29 +00:00
Peter Stephenson
20018230ee
20812: Add functions for exception handling
2005-02-15 18:31:41 +00:00
Peter Stephenson
aaec0ef0ad
20798: propagate an #ifdef to prototypes
2005-02-07 15:53:13 +00:00
Peter Stephenson
6ab69b60c9
20794: Change version to 4.3.0-dev-1
...
Don't compile in a static in init.c unless needed.
2005-02-07 12:33:48 +00:00
Peter Stephenson
05b06b1c08
fix autoloaded trap bug; rejig use of trapfuncs
...
(now traplists); improve trap tests
2005-02-06 20:36:09 +00:00
Bart Schaefer
facf0309bb
20774: fix e.g. "FOO=BAR BAR=FOO echo" failure to unset FOO after finishing.
2005-02-02 04:51:13 +00:00
Peter Stephenson
d1d6742848
20759, 20760, 20765: Improve Cygwin configuration
2005-02-01 10:52:50 +00:00
Clint Adams
efab849310
* 20753: use ZS_memmove instead of memmove.
2005-01-26 18:37:28 +00:00
Peter Stephenson
85e0b5f377
20752: fix access to ZLE parameters
2005-01-26 18:12:08 +00:00
Clint Adams
3934f7a402
* 20751: Src/Zle/zle_refresh.c: use '?' for character conversion error
2005-01-26 14:29:12 +00:00
Clint Adams
9453ea957e
* 20747: some wide char support in the zle refresh code.
2005-01-26 13:39:46 +00:00
Peter Stephenson
77bd05014d
20750: fix hang with 20742
2005-01-26 12:34:31 +00:00
Peter Stephenson
efd03cf9e8
20742: More Unicode conversion stuff.
2005-01-25 16:40:41 +00:00
Peter Stephenson
b80c6b0863
users/8422: [[ ... -nt ... ]] with bad stat caused
...
mayhem in initialisation files, functions, etc.
2005-01-24 11:02:59 +00:00
Clint Adams
8ae8a91b8b
* 20736: Src/Zle/zle_utils.c: change zlegetline() to return a metafied string.
2005-01-22 16:26:32 +00:00
Clint Adams
0038b1a682
* 2073x: Src/Zle/zle_utils.c, Src/hist.c: modify zlegetline() and zlegetline
...
caller so that the octet-based and wide-character versions should return
the same string.
2005-01-22 04:03:05 +00:00
Wayne Davison
2fb65d215f
Fixed compiler warning about a missing initializer.
2005-01-21 11:16:34 +00:00
Wayne Davison
e63e45ae62
Got rid of "unused parameter" compiler warning for nullsethashfn().
2005-01-21 11:15:36 +00:00
Peter Stephenson
f8d74c1aab
20728: add RLIMIT_SIGPENDING and RLIMIT_MSGQUEUE,
...
also use ulimit -x for RLIMIT_LOCK
2005-01-19 13:03:33 +00:00
Clint Adams
7c2424d022
* 20718: Src/Zle/zle_utils.c: minor cleanup for proto-Unicode stuff.
2005-01-16 16:24:28 +00:00
Peter Stephenson
88a37cc187
c.f. 20675: improve zle as a basis for Unicode.
...
unposted: update version to 4.2.3-dev-1
2005-01-14 13:04:47 +00:00
Peter Stephenson
81b9354238
users/8359: add Darwin completion directories by default
2005-01-12 17:28:58 +00:00
Oliver Kiddle
df7ffd2999
20701: fix compilation on Mac OS X: define is __APPLE__, not APPLE
2005-01-12 16:34:31 +00:00
Peter Stephenson
77166e259e
20695: Fix Cygwin problem with initialising from pointer to imported variable
2005-01-12 12:18:58 +00:00
Peter Stephenson
43ac170305
Fix .distfiles and .cvsignore
2005-01-12 10:53:06 +00:00
Clint Adams
8db6e42ecd
* 20657: Src/Zle/zle_tricky.c: sort completions partially based on LC_COLLATE setting.
2005-01-11 18:24:51 +00:00
Bart Schaefer
2bc51c9dbc
20666: Avoid creating unnecessary multios when a descriptor is closed and
...
then re-opened.
2005-01-11 17:09:19 +00:00
Peter Stephenson
a92d2d84c0
20661: *(+func) = *(e:func:)
2005-01-10 17:31:07 +00:00
Peter Stephenson
849b808da6
20632: incorrect propagation of signals to process group
2005-01-05 11:04:21 +00:00
Peter Stephenson
69b4b8bdde
20605: Use separate structure with get/set/unset methods fro parameters.
...
Separate justification width of parameters from base/precision.
2004-12-07 16:54:58 +00:00
Wayne Davison
bb78896c7f
A few minor style tweaks (as discussed in 20595 and 20596).
2004-12-01 18:18:23 +00:00
Wayne Davison
8b136c84d2
Corrected the error-return comment for zchdir() and optimized the
...
HAVE_FCHDIR error-return code.
2004-11-29 16:26:12 +00:00
Peter Stephenson
d2c67e5e19
20591: Stephane Chazelas: use of fchdir in zchdir leaked fd's
2004-11-29 12:09:13 +00:00
Peter Stephenson
cebe5f1d10
20592: Debian bug#283358: $((##)) failed erratically
2004-11-29 12:07:04 +00:00
Peter Stephenson
138c5df2bb
20576: fix core dump on TRAPEXIT
2004-11-23 16:29:50 +00:00
Peter Stephenson
5141e68daa
20572: Allow alternative signal names
2004-11-22 10:33:03 +00:00
Peter Stephenson
c1a3961657
20568: debug test in pattern.c was out of date
2004-11-19 15:15:23 +00:00
Peter Stephenson
e022a9814a
20566++: prefer SIGCHLD to SIGCLD and SIGPOLL to SIGIO
2004-11-19 09:57:22 +00:00
Peter Stephenson
ba32e52292
users/8219: add $HISTCMD
2004-11-16 19:05:50 +00:00
Peter Stephenson
fece5e8960
20556: change SOCKLEN_T to ZSOCKLEN_T to avoid clash
2004-11-16 11:04:25 +00:00
Bart Schaefer
33686bdc98
fix "compadd -k assoc1 assoc2"
2004-11-05 16:19:19 +00:00
Peter Stephenson
f9c66cd45e
20528: exec 8>>(grep a) waited incorrectly for grep to finish
2004-10-29 10:14:21 +00:00
Peter Stephenson
c8e70ab5cf
20522: must-match optimisation in parameter substitution broken
2004-10-26 17:20:21 +00:00
Wayne Davison
106329c82e
Fixed an arg in a call to times() (from Borzenkov Andrey).
2004-10-22 19:38:59 +00:00
Peter Stephenson
feca88ede6
20513: fix tests of zero-length patterns
...
trivial optimisation in jobs.c (unposted)
2004-10-22 15:36:35 +00:00
Wayne Davison
3ccc3e4bdc
Use the new gettempfile() function.
2004-10-21 00:33:50 +00:00
Wayne Davison
65729f5570
Added gettempfile(), which works like a custom mkstemp() (in addition
...
to the existing gettempname(), which works like a custom mktemp()).
2004-10-21 00:33:42 +00:00
Wayne Davison
7f1ad7a40e
Added bicat() that works like dyncat(), but uses permanent memory
...
instead of the heap.
2004-10-18 19:13:57 +00:00
Wayne Davison
8901caa58f
Call gettempname() with its new args.
2004-10-18 19:07:55 +00:00
Wayne Davison
9a4cf8cf72
- Fixed an unsafe use of gettempname().
...
- Call gettempname() with its new args.
2004-10-18 19:07:50 +00:00
Wayne Davison
1637c4eba6
Made gettempname() take a prefix arg and a use_heap arg. When prefix is
...
non-NULL, it uses the specified prefix instead of $TMPPREFIX.
2004-10-18 19:07:46 +00:00
Wayne Davison
945a40f7e6
- Improved lockhistfile() to use the new gettempname() for a unique
...
filename instead of a .PID suffix.
- Use bicat() to build the $HISTFILE.LOCK filename.
- Put the $HOST value into $HISTFILE.LOCK in addition to the PID.
2004-10-18 19:07:30 +00:00
Peter Stephenson
b115ca307a
20500: Unmetafy patterns where possible and other minor pattern fixes
2004-10-18 11:56:14 +00:00
Wayne Davison
0d6e174e23
Made zclose() avoid calling close() when fd < 0.
2004-10-18 03:32:16 +00:00
Wayne Davison
66baaced5d
In zleread(), initialize the first byte of the "line" buffer to '\0'
...
so that functions such as magicspace() won't be accessing uninitialized
memory when they look at "line".
2004-10-17 20:12:46 +00:00
Peter Stephenson
a82a2564dd
20490: Don't assume null termination for test string in pattern matching.
2004-10-15 10:21:02 +00:00
Peter Stephenson
cf89569c45
20482: but with completion inside interactive completion
2004-10-14 07:19:04 +00:00
Peter Stephenson
8a67a66a61
20467: Reintroduce rusage-based escapes for TIMEFMT.
2004-10-08 14:36:51 +00:00
Peter Stephenson
cc72740775
20462: Use getrusage for timing again.
...
Time processes from before rather than after fork.
2004-10-07 09:45:43 +00:00
Peter Stephenson
46141be5f9
20412, tweaked: Make test builtin more POSIX compatible
...
20435: Make pattern.c not alter strings.
2004-10-05 10:39:41 +00:00
Bart Schaefer
684da738b0
20418: report parse error rather than crash on unfinished pipelines.
2004-10-02 21:44:13 +00:00
Wayne Davison
74fb5712a2
- Call saveandpophiststack() with its new writeflags arg.
2004-10-01 19:48:57 +00:00
Wayne Davison
89eb92d8c2
- Added an arg to saveandpophiststack() to allow the caller to
...
specify what flags to send to savehistfile().
- Implemented the HFILE_NO_REWRITE support in savehistfile().
2004-10-01 19:48:53 +00:00
Wayne Davison
2e4db343c6
- Call saveandpophiststack() with its new writeflags arg.
...
- Use the new HFILE_NO_REWRITE flag when saving the history
file after a signal was received.
2004-10-01 19:48:44 +00:00
Wayne Davison
0c77a8e876
Changed HFILE_GOT_SIGNAL to HFILE_NO_REWRITE.
2004-10-01 19:10:59 +00:00
Wayne Davison
b8b11e7627
Silence unused-parameter warnings from the compiler.
2004-10-01 19:06:49 +00:00
Wayne Davison
aa5c13f71c
Added HFILE_GOT_SIGNAL.
2004-10-01 18:55:16 +00:00
Wayne Davison
cbaaa338fa
Use convbase() instead of a "%d" format to convert a zlong.
2004-10-01 18:51:44 +00:00
Wayne Davison
aee4661e96
We can't use "%d" on a histent number (which is a zlong these days).
...
Changed the sprintf() to convbase().
2004-10-01 18:48:27 +00:00
Peter Stephenson
0f1267a8aa
20398: allow clean exit from within widget function
2004-09-21 14:07:41 +00:00
Peter Stephenson
7d3d6f4a5a
20391: SHLVL wasn't updated in environment
2004-09-20 14:35:19 +00:00
Bart Schaefer
5741e2840f
20388: tweak ignoreeof behavior on user-defined widgets to match docs.
2004-09-20 14:03:36 +00:00
Bart Schaefer
2e9bbdc833
20387: revised algorithm for the fix in 20363.
2004-09-20 13:37:41 +00:00
Peter Stephenson
037485c4a4
20378: Matthias B.: fix bugs joining with metafied chars.
2004-09-17 09:25:38 +00:00
Peter Stephenson
1268f477b0
20363: Src/init.c, Src/Zle/zle_main.c
2004-09-13 13:04:39 +00:00
Peter Stephenson
b12c168505
20348: rejig WIDGETSTYLE and add WIDGETFUNC
2004-09-10 18:03:33 +00:00
Peter Stephenson
6b1dc0f701
20331: Use internal zlong variables for consistency
...
20332: Add WIDGETSTYLE zle parameter
2004-09-09 10:12:42 +00:00
Peter Stephenson
65bbf722d9
20330: rationalise zle return statuses
2004-09-08 15:23:47 +00:00
Bart Schaefer
e1d5c7df58
20325: consensus fix for "command -v" crash w/POSIXBUILTINS.
2004-09-08 08:24:41 +00:00
Bart Schaefer
72fdf24448
20320: rewrite of 20318, for sanity.
2004-09-08 08:24:00 +00:00
Bart Schaefer
91a08a2517
20318: Fix xtrace output bug introduced by 20308.
2004-09-04 16:59:35 +00:00
Peter Stephenson
97fd0d9b89
20308: add EVAL_LINENO option
2004-09-03 09:47:44 +00:00
Peter Stephenson
fb79072575
20303: zle -I test and running zle widgets in traps
2004-09-02 14:34:33 +00:00
Peter Stephenson
d24593bf38
20300: fix spurious EOF from ^C
2004-09-02 09:20:35 +00:00
Wayne Davison
0aa5829cc7
When downline() calls upline() or visa versa (due to a negative zmult),
...
the value of "n" that was returned should be negative but was positive.
Fixes some problems with {down,up}-line-or-history and others.
2004-08-24 15:47:04 +00:00
Peter Stephenson
7d3220f298
20251: integer conversion truncation
...
20258: save command status in prompt substitution
update FAQ
rename version to 4.2.1-dev-1
2004-08-16 09:52:56 +00:00
Geoff Wing
fd62429d19
still allow user specified text modifiers with a short terminal.
...
Only disallow if the terminal is really unknown or without
sufficient capabilities or if SINGLE_LINE_ZLE option is given
2004-08-07 08:43:56 +00:00
Peter Stephenson
640bbab78f
20221: $LINENO in trap '...' DEBUG was wrong.
2004-07-29 15:09:51 +00:00
Peter Stephenson
efe2876d92
20219: make zle parameter HISTNO writeable
...
add history-pattern-search widget
2004-07-29 14:21:57 +00:00
Peter Stephenson
e1d8ca1d70
20208: ternary path codes in prompt treat / as zero elements
2004-07-29 11:45:53 +00:00
Peter Stephenson
241aa1d40d
20214: fix debugging test with recursive functions
2004-07-28 10:34:31 +00:00
Peter Stephenson
17e576782c
20198: fix TRAPEXIT.
2004-07-26 13:18:07 +00:00
Peter Stephenson
f5d9a995f9
20173: fix crash when reallocating heaps
2004-07-17 19:24:59 +00:00
Peter Stephenson
0cfb07ee92
20153: make zle-line-init run after the first zrefresh()
2004-07-13 09:41:36 +00:00
Peter Stephenson
aad11eb618
unposted: improve 20150 by setting pointer to NULL
2004-07-12 10:05:46 +00:00
Peter Stephenson
86ae90bc1c
20149: improve prompt-reset code
...
20150: commit ancient memory leak fix(?) in completion
2004-07-11 22:53:01 +00:00
Peter Stephenson
4c8796b11d
20141: Crash restoring exported special parameters
2004-07-07 15:00:44 +00:00
Peter Stephenson
8784bbe97c
20126: tidy up before 4.2.1
...
20127: tweaked version of Wayne's patch to reexand prompts
2004-07-02 15:59:07 +00:00
Peter Stephenson
3c13204e55
7650: new reset-prompt zle widget
2004-07-01 14:55:54 +00:00
Peter Stephenson
bf21478722
20118: improvements to limits builtins
2004-06-30 11:10:35 +00:00
Peter Stephenson
7f26993e99
20112 changed c.f. 20113:
...
fix here string and here document expansion and quoting
2004-06-28 15:38:10 +00:00
Clint Adams
ceb7a09833
20091: Src/Modules/pcre.c: silence gcc "unused parameter" warnings.
2004-06-22 23:47:57 +00:00
Peter Stephenson
d591334e9d
20076, 20084: { ... } always { ... } syntax.
2004-06-22 13:09:55 +00:00
Peter Stephenson
ed76bafc5e
20029: fix randomness of mathfunc rand48(seed)
2004-06-08 21:51:11 +00:00
Felix Rosencrantz
ba2415ce67
20002 -- fix for matching spec core dump
2004-06-04 06:00:32 +00:00
Wayne Davison
fb0937a69e
Marked unused parameters with the new UNUSED() macro.
2004-06-02 22:14:25 +00:00
Wayne Davison
30a139fe89
Define the new UNUSED() macro for marking function parameters.
2004-06-02 18:11:43 +00:00
Wayne Davison
12b2ed63ab
Silenced one signed/unsigned comparison compiler warning.
2004-05-28 19:24:13 +00:00
Wayne Davison
b5d7902c20
Silenced three signed/unsigned comparison compiler warnings.
2004-05-28 19:23:47 +00:00
Wayne Davison
327481b391
Silenced one signed/unsigned comparison compiler warning.
2004-05-28 19:22:17 +00:00
Wayne Davison
14c7f464c2
Silenced two signed/unsigned comparison compiler warnings.
2004-05-28 19:21:05 +00:00
Wayne Davison
fea94cd79f
Fixed two signed/unsigned comparisons.
2004-05-28 19:20:29 +00:00
Wayne Davison
7c4ac8d60b
- Added missing struct initializers to two last-in-list values.
...
- Fixed a few signed/unsigned comparisons.
2004-05-28 19:20:01 +00:00
Wayne Davison
f297798397
Made a variable (t2) size_t so that it matched the size of the
...
other variable it gets compared with (fw).
2004-05-28 19:18:17 +00:00
Wayne Davison
f160996d51
Changed a few job-table variables into ints.
2004-05-28 19:16:55 +00:00
Wayne Davison
059162c442
Supply all initializers for the final struct reswd element.
2004-05-28 19:07:13 +00:00
Wayne Davison
88013bb195
Fixed signed/unsigned compiler warning.
2004-05-28 19:05:11 +00:00
Peter Stephenson
5ac05cab9f
19976: fix spurious job table full messages
2004-05-25 18:38:56 +00:00
Wayne Davison
79a802c74c
Added a call to saveandpophiststack(0) to endparamscope() to enable
...
the new auto-pop feature.
2004-05-21 20:05:16 +00:00
Wayne Davison
3e7b092bc7
- pushhiststack() now takes a level value and remembers it. If it was
...
the locallevel (instead of -1), the history list is marked to auto-pop
on function exit.
- The saveandpophiststack() function now interprets a 0 arg as a request
to do an auto-pop.
2004-05-21 20:05:12 +00:00
Wayne Davison
c39a15df42
- Added the -a option to "fc" and "history".
...
- Call saveandpophiststack() using the newest calling syntax.
2004-05-21 20:05:08 +00:00
Peter Stephenson
665b0950c6
19971: Fix environment nastiness in zexecve()
2004-05-21 11:19:30 +00:00
Wayne Davison
e8eca2ee4b
- Added functions to push and pop the current history list, allowing
...
functions to more easily switch to their own private history.
- Changed the existing history push/pop code in savehistfile() (which
uses a separate history buf to allow it to rewrite the on-disk
version of the history file without disturbing the in-memory list).
2004-05-20 22:23:02 +00:00
Wayne Davison
76ec200cc4
- Added the -p (push) and -P (pop) options to the "fc" builtin.
...
- Allow -p/-P to be given to "history".
- On exit, save & pop any pushed history stacks before we call the
normal savehistfile() function.
2004-05-20 22:22:43 +00:00
Wayne Davison
319af86611
Added a comment to resizehistents() to explain why the function is
...
weirder than expected at first glance.
2004-05-18 18:45:05 +00:00
Peter Stephenson
d3b14e887e
19941: fix (( 3, ))
2004-05-13 20:04:10 +00:00
Peter Stephenson
8723d530b3
fix bug I missed, somehow
2004-05-12 10:26:41 +00:00
Peter Stephenson
10744b66fd
19920: attempt to improve hrealloc()
2004-05-12 10:20:33 +00:00
Wayne Davison
1ec2b5c096
Fix the potential for an infinite loop in lockhistfile() if the
...
link() calls fails for some other reason than EEXIST.
2004-05-11 21:45:36 +00:00
Wayne Davison
c42420319f
Set the first character of buf to '\1' before the strftime() call so
...
we can try to distinguish a zero-length string from an error return
(a minor fix to Peter's patch).
2004-05-05 17:00:58 +00:00
Peter Stephenson
f57f65282b
19877: improved test for empty strftime strings
2004-05-04 16:43:29 +00:00
Clint Adams
c98b9dc800
* 19869: Src/prompt.c, Src/utils.c: avoid segfault when
...
prompt-expanding '%D{%p}' or '%D{%P}' under locales with null
strings for am_pm.
2004-05-04 04:17:26 +00:00
Peter Stephenson
885509c023
Fix TRAPS_ASYNC so that it handles signals correctly.
2004-05-02 19:55:54 +00:00
Peter Stephenson
aa7003e0ca
19840: vared takes one normal argument
2004-04-27 15:16:13 +00:00
Peter Stephenson
5fa91b1116
19837: restore vared -e
2004-04-27 11:03:06 +00:00
Peter Stephenson
63442b3eaa
19810: ksh autoloading
...
19812: autoloaded traps which are still buggy.
2004-04-23 11:17:13 +00:00
Peter Stephenson
5747147aff
19809: improve NO_TRAPS_ASYNC by queueing traps alone
2004-04-21 11:18:45 +00:00