Oliver Kiddle
648d1c2756
add print -f option, %n format specifier and tests for print/printf (15973)
2001-10-08 10:47:46 +00:00
Peter Stephenson
cc0d931682
15931: EXIT traps from exit in subshell; 15965: glob -> zglob
2001-10-08 08:13:11 +00:00
Andrey Borzenkov
b109834dc2
15964: use SOCKLEN_T
2001-10-08 07:19:35 +00:00
Oliver Kiddle
a5890553e8
add printf builtin (15851, 15948)
2001-10-05 15:02:18 +00:00
Sven Wischnowsky
aac666130c
fix calculation of number of columns needed with list_packed (15946)
2001-10-05 12:44:00 +00:00
Clint Adams
1bbe1d1b0a
15919: use LinkLists in place of somewhat equivalent code
2001-10-02 02:35:00 +00:00
Bart Schaefer
b5c135b2da
Zftp control connection management cleanup.
2001-09-28 17:35:44 +00:00
Clint Adams
8c05772007
15886: use select if poll is not available, or complain if neither are available
2001-09-27 15:36:41 +00:00
Bart Schaefer
5fdcd3a2b4
Equivalence of $(...) and ...
in ${(e)...}.
2001-09-25 17:37:54 +00:00
Sven Wischnowsky
ae9c181d6b
15869
2001-09-25 12:50:45 +00:00
Sven Wischnowsky
c2266c1f5f
job text building code couldn't handle empty sublists (as in `coproc || test') (15868)
2001-09-25 12:10:05 +00:00
Bart Schaefer
63ecd0332b
Fix out-of-memory on corrupt history files.
2001-09-24 15:15:08 +00:00
Peter Stephenson
11b0734108
* Src/builtin.c, Src/exec.c: Unwind function calls before exiting
...
shell from exit command to allow EXIT traps to run.
2001-09-24 10:12:51 +00:00
Bart Schaefer
b27659c6b3
Fix misleading error message.
2001-09-20 14:45:07 +00:00
Wayne Davison
f38b2c5aa8
Further modify the "fc -l" code to tolerate out-of range values.
2001-09-18 17:50:26 +00:00
Wayne Davison
4fb4f4cd7a
Fixed doisearch() to not switch lines unless zlereadflags has
...
ZLRF_HISTORY set.
2001-09-17 18:30:49 +00:00
Wayne Davison
2a754dbb61
With HIST_NO_STORE, don't ignore what looks like a history command if
...
we're really going to call a user-defined shell function.
2001-09-15 06:28:15 +00:00
Wayne Davison
fc89b8135a
+ Changed addhistnum() to return firsthist()-1 or curhist+1 on error.
...
+ Ignore the "r" command if HIST_NO_STORE is set.
2001-09-13 18:19:11 +00:00
Wayne Davison
6a7d256a58
+ Changed fclist() to not not transform "fc -l 0 0" into "fc -l 1 1".
...
+ Changed fcgetcomm() to handle new error return from addhistnum().
2001-09-13 18:19:08 +00:00
Clint Adams
ab205e5bb9
15780: rename **arg to **dargs
2001-09-10 19:19:15 +00:00
Clint Adams
2e174804c8
15779: ztcp -d
2001-09-10 15:23:37 +00:00
Clint Adams
718fb33b29
stupid bugfixes
2001-09-10 12:37:21 +00:00
Clint Adams
cb0f8a08c7
unposted: stupid -a bug
2001-09-10 02:41:20 +00:00
Clint Adams
7093e779e6
15771: ztcp -t
2001-09-10 02:17:55 +00:00
Clint Adams
5eb6315b3e
15769: ztcp -a
2001-09-09 23:33:06 +00:00
Clint Adams
3756589f1b
1576x: take service names, stuff fd numbers into $REPLY
2001-09-09 22:08:55 +00:00
Clint Adams
394989e292
15766: ztcp -l
2001-09-09 09:39:24 +00:00
Clint Adams
a11772c617
15765: introduce [:ascii:] class
2001-09-09 06:17:02 +00:00
Clint Adams
9a31296b3e
1596x: ztcp -v
2001-09-08 22:08:04 +00:00
Clint Adams
b554563ece
15762: introduce ztcp builtin
2001-09-08 21:09:55 +00:00
Andrew Main
b73d71105e
15734: zle -K option to select a keymap, and zle KEYMAP parameter to
...
examine the current selection.
2001-09-03 01:39:19 +00:00
Sven Wischnowsky
c0ea4d62c8
handle possible NULL pointer returned from bufferwords() (15717)
2001-08-28 08:41:51 +00:00
Bart Schaefer
bc1bdea9db
Fix PS2 for dquote nested in braceparam.
2001-08-27 07:31:37 +00:00
Bart Schaefer
135eebde60
Fix crash on re-entry to loop() from preprompt().
2001-08-25 16:44:15 +00:00
Sven Wischnowsky
b70ec86efe
test if hash table pointer is NULL to avoid SEGV with compstate=() (15705)
2001-08-24 09:25:38 +00:00
Clint Adams
ffec7684a7
15675: Src/Builtins/rlimits.awk: handle case where RLIM_NLIMITS is set to a number within an enum.
2001-08-21 20:05:33 +00:00
Sven Wischnowsky
647674f6ab
undo most of 15650, do that in shell code (15669)
2001-08-20 13:13:49 +00:00
Bart Schaefer
87ca460fe5
Fix exit status of zsh -fc '! command'
2001-08-19 04:23:46 +00:00
Sven Wischnowsky
66576ecbf8
15650
2001-08-17 09:25:21 +00:00
Sven Wischnowsky
0f880152fc
15639
2001-08-16 08:48:27 +00:00
Geoff Wing
b67e8b380c
Don't segv if we were displaying n lines and screen was
...
resized to less than n lines
2001-08-15 15:17:42 +00:00
Geoff Wing
2eda2a0921
15621: display of status line was being mucked up; continuation
...
markers "<...." and "<....>" weren't being display properly
2001-08-15 14:48:48 +00:00
Bart Schaefer
d978bb894e
Fix and regression tests for crash on typeset of local array elements.
2001-08-13 17:43:04 +00:00
Wayne Davison
fe98c239b5
Silence "might be used uninitialized" warnings.
2001-08-08 07:44:00 +00:00
Wayne Davison
4afcd4b149
Got rid of unused variables.
2001-08-08 07:41:04 +00:00
Wayne Davison
21dba96cd6
Silence "might be used uninitialized" warning.
2001-08-08 07:41:01 +00:00
Sven Wischnowsky
7e23143359
follow-up to 15588; add -w option to _values (look at all words); change _dd back (15597)
2001-08-08 07:20:56 +00:00
Wayne Davison
f7e8ca1d96
When rewriting the history file, set histactive to 0 and restore it
...
when we're done. This prevents the loss of the file's last line
when a signal causes us to rewrite it. Also restore the value of
histsiz.
2001-08-07 19:53:19 +00:00
Peter Stephenson
23581f7664
15586: remove =alias expansion, leaving only =cmd.
2001-08-07 10:18:31 +00:00
Sven Wischnowsky
ab14a745a6
increment zwc fie version (which means changing the magic number) (15584)
2001-08-07 09:07:12 +00:00
Sven Wischnowsky
75d5e9bb8b
(15526)
2001-07-30 08:42:55 +00:00
Sven Wischnowsky
4da5c1b2e0
(15509)
2001-07-27 12:56:57 +00:00
Sven Wischnowsky
f29d50fe9c
move pattern matching in the loop to make sure all match specs are used (15487)
2001-07-25 14:49:32 +00:00
Sven Wischnowsky
c83d16f8ee
another fix for 15477 (separator strings); add list-separator style (15484)
2001-07-25 12:18:23 +00:00
Sven Wischnowsky
e1708022d2
fixlet for 15477, don't let it remove consecutive dummy matches (15482)
2001-07-25 10:45:59 +00:00
Sven Wischnowsky
eba59194d7
make display for groups in _describe nicer; improve packing with list_packed; leave space for type character (list_types) only in groups with at least one file name (15477)
2001-07-25 08:52:34 +00:00
Sven Wischnowsky
6d81779954
remove nulargs in here strings (15470)
2001-07-24 14:17:31 +00:00
Sven Wischnowsky
79dbcc8382
don't use compsuffix when it might be freed; use the right variable in that loop there, dammit (15433)
2001-07-20 10:54:38 +00:00
Sven Wischnowsky
facff10b11
yet another followup to 15497; make _describe filter out non-matching strings before calling compdescribe, otherwise some matches will be hiddens (15415)
2001-07-19 08:40:36 +00:00
Sven Wischnowsky
6a3e89d539
fix for 15407; there may be sets without matches (15409)
2001-07-18 13:52:53 +00:00
Sven Wischnowsky
8c1b953b5a
add list-grouped option to make options and such be grouped together if they have the same description; matches with line-display strings can be hidden; hi and du capabalities in complist are only used if set by the user (15407)
2001-07-18 13:10:07 +00:00
Sven Wischnowsky
bd629defe8
(15357)
2001-07-10 09:25:43 +00:00
Peter Stephenson
7060b34457
15334: use string "(eval)" as script name in debugging messages in eval's
2001-07-09 18:31:24 +00:00
Bart Schaefer
7457bdc19d
Fix function stack unwinding on autoload failures.
2001-07-09 16:20:53 +00:00
Peter Stephenson
003ec8c7e8
15327: always use local LINENOs in parse_string().
2001-07-09 16:05:13 +00:00
Bart Schaefer
d8aee67492
Fix infinite loop on `r OLD=NEW' when OLD is the empty string.
2001-07-08 00:33:45 +00:00
Bart Schaefer
22faf1fa4b
Suppress XTRACE during user-defined widgets.
2001-07-08 00:32:12 +00:00
Bart Schaefer
0467a101da
Don't always coerce to float when assigning to an unset parameter.
2001-07-08 00:30:43 +00:00
Peter Stephenson
2c75f5b0da
15291, 15292: fix bug setting scalar in math mode
2001-07-06 18:33:59 +00:00
Clint Adams
3dc88e102e
15250: still run setup even if pcre functions are unavailable
2001-07-06 18:04:39 +00:00
Peter Stephenson
f486329a16
15265: Src/parse.c: correction problems with new `for' syntax
2001-07-06 09:40:01 +00:00
Peter Stephenson
4a8b8bd752
15277: Src/glob.c: real backreferencing bug with ${(S)...%%...}
2001-07-06 09:23:55 +00:00
Peter Stephenson
40e17d980f
back out 15266
2001-07-06 09:03:46 +00:00
Bart Schaefer
a45ff6cdb7
Avoid static link of pcre module.
2001-07-06 08:32:14 +00:00
Peter Stephenson
55d4ee8c6d
15266: fix for ${(S)...%%...}
2001-07-05 23:53:05 +00:00
Andrey Borzenkov
7c0a534298
15253 : hash foo together with foo.exe on Cygwin
2001-07-05 11:43:10 +00:00
Clint Adams
b65dcc197b
15242: pcre_match -a and $match instead of pparams
2001-07-04 15:13:33 +00:00
Clint Adams
38833690cb
15228: AC_CHECK_LIB->AC_SEARCH_LIBS, set pparams with capture buffers
2001-07-03 16:42:36 +00:00
Clint Adams
ad57c03213
unposted: update distfiles for 15211
2001-07-03 14:19:15 +00:00
Clint Adams
bff61cf9e1
15211: zsh/pcre module
2001-07-02 19:39:34 +00:00
Oliver Kiddle
0f960cc8ca
fix IRIX 5.3 specific compilation problems and some error messages (15204)
2001-07-02 11:33:26 +00:00
Bart Schaefer
70c4e162c6
Reset errflag after executing precmd.
2001-06-30 18:30:54 +00:00
Wayne Davison
963466358a
Have prepnexthistent() remove any HIST_TEMPSTORE entry that is present.
2001-06-28 18:17:14 +00:00
Sven Wischnowsky
51503a87a2
(only the patch to compmatch.c from the mail); improve merging cline lists coming from different IPREFIX/PREFIX combinations and such by avoiding to generate cline structs for empty parts after a match spec anchor cline struct (15123)
2001-06-27 13:18:38 +00:00
Sven Wischnowsky
b275190ff4
add autocontinue option to automatically make stopped jos running when they are being disowned; make that the default for %job &!' and
%job &|' (15115)
2001-06-27 11:22:04 +00:00
Sven Wischnowsky
e067118efc
fix for finding the first ambiguous path component in compfiles (3946)
2001-06-26 09:05:10 +00:00
Sven Wischnowsky
2ca99605ed
make warning message for disowning stopped jobs more verbose (saying how to make the job running again) (15087)
2001-06-26 08:18:22 +00:00
Peter Stephenson
1897a361bf
15030: multi-parameter `for' loops
2001-06-25 16:07:51 +00:00
Sven Wischnowsky
bbd2a98f41
make expand-word not always restore the command line (3940)
2001-06-25 09:32:21 +00:00
Bart Schaefer
f0dd0ced30
PRINT_EXIT_VALUE for shell functions.
2001-06-25 00:15:04 +00:00
Bart Schaefer
2e4a17b32f
Change magic-space to respect !".
2001-06-24 03:42:09 +00:00
Bart Schaefer
f11e227cb0
POSIX exit status changes.
2001-06-23 18:30:55 +00:00
Andrey Borzenkov
791e11a084
15021: new %y character; %l semantic back
2001-06-22 09:44:06 +00:00
Bart Schaefer
e25f86419e
No POSIX "for" syntax with csh syntax.
2001-06-21 10:54:49 +00:00
Bart Schaefer
6c074dfaf3
POSIX "for" syntax.
2001-06-21 10:09:08 +00:00
Peter Stephenson
ef6193b89b
rewrite 14988 as per 14989
2001-06-20 11:02:47 +00:00
Peter Stephenson
79ed1a0e22
Bug restoring saving special parameters for function scope.
2001-06-20 10:06:51 +00:00
Bart Schaefer
0672033cfc
Compiler warnings.
2001-06-19 15:46:53 +00:00
Andrey Borzenkov
9b9e940117
14973: fix for reported problems on AIX.
2001-06-19 06:59:24 +00:00
Peter Stephenson
528d2af1e5
more handler -> zhandler
2001-06-18 09:29:48 +00:00
Sven Wischnowsky
39e152d297
make zcompile unlink() the zwc file first (in case it is currently mapped we don't want to overwrite it); also, create the file read-only (14952)
2001-06-18 07:34:34 +00:00
Sven Wischnowsky
3c7f60d084
rename handler() to zhandler() because it's now exported to modules (14951)
2001-06-18 07:24:22 +00:00
Wayne Davison
8b3a84fa4f
Removed bogus mkstemp() code.
2001-06-15 23:55:08 +00:00
Peter Stephenson
bd6302eae0
Use mkstemp where available
2001-06-15 22:19:44 +00:00
Peter Stephenson
3f6a9e4522
fix setting of individual positional parameters after 14915
2001-06-15 13:07:50 +00:00
Andrey Borzenkov
12e1cf567d
14931: fix socket/address length calculation
2001-06-15 13:01:42 +00:00
Peter Stephenson
d247b7f146
$* and $@ are special
2001-06-14 09:49:01 +00:00
Sven Wischnowsky
a5a5aa4e3e
fixes for display bugs for completion lists (cursor left one line to far up or down) (14903)
2001-06-13 14:03:44 +00:00
Peter Stephenson
6bb50488ab
mod_export handler
2001-06-13 11:50:09 +00:00
Sven Wischnowsky
71a9847d48
fix for comparguments (completing after single letter options that get their argument in the next word); make _values ignore some of the standard option it may get; make _mount use _dir_list in some places and improve that; `document' comparguments and compvalues with some comments in computil.c (14897)
2001-06-13 11:05:51 +00:00
Clint Adams
f6ae716fb8
14863: tcp_connect
2001-06-12 15:57:25 +00:00
Peter Stephenson
c26704f7a3
Added KSH_TYPESET option.
2001-06-12 10:34:57 +00:00
Clint Adams
ae09302120
14843: tcp_close
2001-06-11 14:21:57 +00:00
Sven Wischnowsky
9cc9cc9466
(14841)
2001-06-11 11:46:23 +00:00
Bart Schaefer
9fbdcb5311
Fix problems with zwcstat() on systems that do not USE_MMAP.
2001-06-09 18:06:32 +00:00
Clint Adams
fd6be2db0f
14815: fix thinko
2001-06-08 19:05:55 +00:00
Clint Adams
975c0b44c5
14813: autoload functions from deleted .zwc files
2001-06-08 18:34:53 +00:00
Bart Schaefer
6663b86f92
Fix #includes for gcc 2.95 compilation.
2001-06-08 03:05:50 +00:00
Bart Schaefer
2a9ceecf13
Untrustworthy return value of tgetflag().
2001-06-08 03:03:28 +00:00
Wayne Davison
b207aeeded
Don't mark a HIST_TMPSTORE entry with HIST_OLD so that the HFILE_FAST
...
algorithm in savehistfile() will recheck this hist num later.
2001-06-08 00:15:18 +00:00
Clint Adams
8e87930abb
unposted: add tcp module to .distfiles
2001-06-07 14:33:49 +00:00
Clint Adams
1b02f6d302
14778: rename zsh/tcp to zsh/net/tcp.
2001-06-06 19:14:30 +00:00
Clint Adams
ba81d70453
14770: tcp module from zftp
2001-06-06 18:53:56 +00:00
Andrey Borzenkov
6c187b251a
14766: unify %l substitution (tty0, pts/3 etc)
2001-06-06 16:38:50 +00:00
Andrey Borzenkov
4b44bbb3fb
unposted; based on 14679 (me) and 14693 (Bart): Allow processing by both
...
autoconf-2.13 and autoconf-2.50; remove config.status hack for autoconf-2.50
2001-06-06 08:37:21 +00:00
Sven Wischnowsky
0ce4b800a3
fix for exclusion of normal arguments (14630)
2001-06-01 08:53:50 +00:00
Sven Wischnowsky
171855e2e2
fix tag-order problem with _arguments (completion after an option that gets an argument in the same word); and a fix for completion after -ab, where -a gets an argument in the next word and -b gets one in the same word (14607)
2001-05-31 12:38:34 +00:00
Sven Wischnowsky
1b2d095217
fix two memory leaks (at least I hope they are fixed) and some out-of-bound array accesses, plus some defensive programming for heap allocated param structs (14605)
2001-05-31 09:43:59 +00:00
Bart Schaefer
14be3dd5e4
Improve gettermcap().
2001-05-30 15:39:31 +00:00
Clint Adams
ac4d669afb
145??: fix thinko
2001-05-29 21:41:53 +00:00
Clint Adams
e56c42c9fe
145??: repeat last vi history search if search string is blank
2001-05-29 20:20:34 +00:00
Clint Adams
23e2a3e5f8
14541: %# with capabilities prompt-expand to # iff Effective set non-empty or euid=0
2001-05-29 15:09:06 +00:00
Sven Wischnowsky
1bb5d5aeb5
print at least a warning when disowning a stopped job (14524)
2001-05-29 09:49:58 +00:00
Clint Adams
c58a4e7e28
14517: glibc 2.2.3 tweaks revisited
2001-05-28 23:26:23 +00:00
Bart Schaefer
ecbc4e4457
Silence compiler warnings.
2001-05-28 17:39:00 +00:00
Sven Wischnowsky
1d5fbf228d
fix for cursor positioning with that -y option of compctl (display strings) (14507)
2001-05-28 11:42:00 +00:00
Sven Wischnowsky
5fe1924155
make the zprof wrapper function be more careful, avoiding almost all of the code when the module is being unloaded (14504)
2001-05-28 09:23:39 +00:00
Sven Wischnowsky
96fd8a11d3
another attempt at fixing the job problem from 14327; make execpline() reset list_pipe_job to zero if it would be set for a job started in the background (14503)
2001-05-28 09:00:21 +00:00
Wayne Davison
f18dca3266
Fixed acceptandinfernexthistory() to work when called repeatedly.
...
Also changed it to not accept the line if the infer fails. Ignore
transient edits in the history when searching for an inference and
grabbing the next line (affecting acceptandinfernexthistory(),
infernexthistory(), and acceptlineanddownhistory()).
2001-05-26 20:57:16 +00:00
Oliver Kiddle
b5ad8bf0de
add mod_export in a couple of places where it was missing
2001-05-23 08:53:11 +00:00
Clint Adams
f670ec692f
14419: glibc 2.2.3 rlimits enum
2001-05-21 17:02:59 +00:00
Andrey Borzenkov
7270c28a39
14401: workaround for script execution under Cygwin
2001-05-20 10:59:27 +00:00
Wayne Davison
792135ba0b
Added some array-assignment boundary checks.
2001-05-20 09:20:46 +00:00
Peter Stephenson
6ea2dab092
Fix, test and comment unsetting and resetting of special tied parameters
2001-05-19 23:47:58 +00:00
Wayne Davison
f99520aeb0
Don't merge a HIST_TMPSTORE entry with a previous "duplicate" line.
...
Also, don't call addhistnode() on a HIST_TMPSTORE entry.
2001-05-19 09:22:10 +00:00
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.
2001-05-19 09:22:07 +00:00
Bart Schaefer
90a1316345
Fix re-set of integer special params after unset.
2001-05-19 00:31:22 +00:00
Peter Stephenson
4544933427
fix zmodload -uf for not-yet-loaded function
2001-05-18 15:23:08 +00:00
Sven Wischnowsky
11e3147466
try to make ${(e)..} work for complicated parameter expansions in the value; this means: keep Qstring tokens unchanged if they are inside double quotes and tokenizing patterns in parameter expansions (14381)
2001-05-18 12:39:24 +00:00
Bart Schaefer
071b084ea8
Signal queuing tweak.
2001-05-17 15:56:12 +00:00