1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-23 01:31:27 +01:00
Commit graph

1227 commits

Author SHA1 Message Date
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