1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 09:21:19 +02:00
Commit Graph

1072 Commits

Author SHA1 Message Date
Peter Stephenson
b673918c0f 17304: tweak to tweak the tweaked tweak for zle -I in 17301 2002-06-07 18:04:06 +00:00
Peter Stephenson
0e08b8c2e4 17299: Use reference counts in Eprogs so as to be able to free them as soon
as finished with.
2002-06-07 14:44:21 +00:00
Peter Stephenson
37199039b2 17301: improve zle -I. 2002-06-07 10:57:24 +00:00
Peter Stephenson
9e97cfa052 17293: support poll() as preferred alternative to select() in zle 2002-06-06 09:04:46 +00:00
Clint Adams
c2c3e7e886 17297: 17265 continued. 2002-06-06 05:47:35 +00:00
Clint Adams
956eebdf62 zselect 2002-06-06 04:54:50 +00:00
Peter Stephenson
9c8b79b993 17295: `zle -F' failed because of bad test 2002-06-05 21:12:08 +00:00
Peter Stephenson
b2226ac72f remove builtin when tcp module is unloaded. 2002-06-05 21:02:34 +00:00
Peter Stephenson
682d83503b 17292: shut up compiler if no OPEN_MEMSTREAM 2002-06-05 15:03:15 +00:00
Peter Stephenson
5ef61a44b1 17265: make the jobs command work in subshells 2002-06-05 14:57:05 +00:00
Peter Stephenson
5d010ca81a 17285: David Wolfe <dwolfe@gforcetech.com>: finally fix QNX rlimits problem 2002-06-05 09:15:33 +00:00
Sven Wischnowsky
5221570c4a don't use optimised completion list display code after the list has been erased or we're not in menu selection anymore anyway (17286) 2002-06-05 07:49:02 +00:00
Peter Stephenson
07047de129 17283: Src/parse.c: `func() { ... } this bit was ignored'. 2002-06-04 16:25:46 +00:00
Peter Stephenson
da6a201946 17272: inner function definition could define nonsense 2002-06-02 18:03:20 +00:00
Peter Stephenson
69b570e28c 17253: ztcp -L gives parseable information on tcp session 2002-05-30 15:16:18 +00:00
Peter Stephenson
1ca8378051 17250: dont't execsave()/execrestore() around synchronous traps 2002-05-29 14:28:05 +00:00
Peter Stephenson
7898d5b198 17249: fix user output from ztcp 2002-05-29 13:15:35 +00:00
Sven Wischnowsky
b36344b6ba follow-up to 17222, make the optimisation work for some more keys again (17237) 2002-05-27 07:41:07 +00:00
Clint Adams
189aa5c9f2 17235: strftime builtin 2002-05-26 22:43:56 +00:00
Sven Wischnowsky
9038bdb400 we have to disable 17219 for some keys because their code doesn't set up the variables we need (17222) 2002-05-24 15:02:32 +00:00
Peter Stephenson
00d476ac20 17220: Src/Modules/tcp.c: bugs using ztcp to list connections. 2002-05-24 13:01:57 +00:00
Sven Wischnowsky
205e07663f make re-display in menu selection faster; redraw only the previously and newly selected matches (17219) 2002-05-24 08:50:10 +00:00
Sven Wischnowsky
9b5b330799 report option arguments to _arguments in the original form (17196) 2002-05-23 12:22:58 +00:00
Sven Wischnowsky
d786ca4438 allow multiple lines in option completion lists to share the same description, for (hopefully) cleaner displays (17212) 2002-05-23 12:15:03 +00:00
Peter Stephenson
afe1b00e16 17141 plus mods: add `zle -F fd handler' feature. 2002-05-21 11:10:13 +00:00
Sven Wischnowsky
5a89ede77b fix for file-type-tests in nested quotes and don't count space file-type-character (17195) 2002-05-21 08:07:51 +00:00
Sven Wischnowsky
12f253e7e6 improve calculation of used columns for match-max-length (17194) 2002-05-21 08:04:34 +00:00
Sven Wischnowsky
654c4ab4ff fix for completion in nested quotes where the sub-word ends in a backslash (17192) 2002-05-21 07:47:34 +00:00
Sven Wischnowsky
d4ec8d06bf avoid printing in the last screen column when preparing a completion listing with compdescribe (17190) 2002-05-21 07:39:40 +00:00
Peter Stephenson
cd3578ed94 17175: Src/math.c: didn't handle parameters before a ternary expression
properly.
2002-05-17 15:14:03 +00:00
Peter Stephenson
dbe104ca8c 17171: Src/Modules/tcp.c: ztcp didn't return failure
when a connect() failed.
2002-05-16 14:05:27 +00:00
Peter Stephenson
bbefa484f4 17166: Src/Modules/zftp.c: check fileno of zftp control
connection before closing, not after
2002-05-15 20:38:17 +00:00
Sven Wischnowsky
cd50acd08d follow-up to 17135, backslash-quoted backslashes in double quotes weren't right, yet (17163) 2002-05-15 07:40:33 +00:00
Peter Stephenson
92e651c940 17162: Src/Modules/tcp.c: prevent warning on
gethostbyaddr() arguments.
2002-05-14 17:52:50 +00:00
Peter Stephenson
568d2e0aba 17161: Src/Modules/tcp.c: length parameter to accept()
wasn't initialised, causing random failures.
2002-05-14 17:29:49 +00:00
Sven Wischnowsky
b0e4b61a82 allow users to give the maximum number of display-columns the matches should take up via the style currently named max-match-length (17147) 2002-05-14 08:01:12 +00:00
Peter Stephenson
139b6d4841 17120, 17121: Src/init.c: work around problem with NIS tying up file
descriptors.
2002-05-13 09:36:53 +00:00
Sven Wischnowsky
0cfe1b30be fix for unquoting with `compset -q' with singly and doubly quoted strings (17135) 2002-05-13 09:31:59 +00:00
Peter Stephenson
12e6a9ad32 17102: looking up TCP sessions by fd returned the wrong pointer 2002-05-08 16:45:21 +00:00
Peter Stephenson
8c47be28f9 17097: closing all TCP sessions referenced freed memory. 2002-05-08 15:54:05 +00:00
Peter Stephenson
2f9ba2f0f9 17095: Bug in setting associative array; remove unused counter 2002-05-08 14:25:57 +00:00
Peter Stephenson
c5381b85ed 17081: New zselect module and documentation. 2002-05-08 13:13:52 +00:00
Andrey Borzenkov
e484b0f83c 17075, 17076: _urpmi and chkconfig/services 2002-05-08 09:18:12 +00:00
Bart Schaefer
d3454531d4 Detect variant tgetent() return value and test for it correctly. 2002-05-06 14:50:10 +00:00
Bart Schaefer
cefd2de2e1 Split tokenize() into shtokenize() and zshtokenize()
to improve SH_GLOB handling, particularly in completion
2002-05-06 14:46:11 +00:00
Peter Stephenson
f08fd02935 17046: Src/math.c: OCTAL_ZEROES with a `0' on its own was
swallowing up too many characters.
2002-04-25 15:45:42 +00:00
Peter Stephenson
421123b0f0 17040: Src/Modules/tcp.c: AF_INET6 wasn't copied into the
socket structure for IPv6.
17041: Src/Modules/zftp.c: Minor but fatal typos creating a data
connection for zftp using IPv6.
2002-04-25 14:06:47 +00:00
Sven Wischnowsky
f630c8abf4 remove one half of 17029; the part for zstyle wasn't right (17035) 2002-04-25 07:33:34 +00:00
Sven Wischnowsky
ed98c0bed8 fix two memory leaks (found by Felix): pre-compiled patterns when re-defining styles and compredirs-copies in comp_wrapper() (17029) 2002-04-24 07:59:17 +00:00
Peter Stephenson
2a55dc74ef 17011: Src/Modules/tcp.c, Src/Modules/zftp.c: restore
freehostent() incorrectly removed in 16172.
2002-04-18 11:39:13 +00:00
Peter Stephenson
91edfa3b25 Alexandre Duret-Lutz: 16930: Src/cond.c, Test/C02cond.ztst:
Careful with long filenames in internal condition test; fix block
file test for `-f'.
2002-04-17 17:17:42 +00:00
Sven Wischnowsky
f78df94c6a make compvalues unquote the string from the line like comparguments does (16998) 2002-04-17 07:28:17 +00:00
Sven Wischnowsky
e9a2060fe9 treat backslashed bangs in double quotes specially in get_comp_string(), they are more like $s there (16990) 2002-04-16 07:53:13 +00:00
Peter Stephenson
c5ebd0fad0 16942: Allow zero-length matches in parameter substitutions. 2002-04-08 17:54:21 +00:00
Wayne Davison
c5015e19de Made SAVEHIST a special parameter. 2002-03-24 23:52:49 +00:00
Wayne Davison
cbc7abb006 Added "savehistsiz" (for the new SAVEHIST special parameter), and used it
in place of getiparam("SAVEHIST").
2002-03-24 23:52:47 +00:00
Wayne Davison
18b090df5a Got rid of unused-variable compiler warning. 2002-03-24 07:56:42 +00:00
Oliver Kiddle
f40278ec0b 16862: allow print's -s and -z options to be used with -f 2002-03-19 14:34:01 +00:00
Sven Wischnowsky
45f9a36216 remove that -T option to compdef again and instead use comma-separated sub-contexts both for function and style lookup (16819) 2002-03-13 09:28:04 +00:00
Bart Schaefer
2260fe045e Fix parsing of binary infix operators of test builtin. 2002-03-07 16:20:00 +00:00
Sven Wischnowsky
6bfc325a94 don't try to build the redirection string for the loops (for, foreach, select) (16776) 2002-03-07 08:38:44 +00:00
Peter Stephenson
849f4068de 16767: Src/Zle/zle_hist.c, Doc/Zsh/zle.yo, Doc/Zsh/contrib.yo,
Functions/Zle/copy-earlier-word:  Enhance insert-last-word to
pick different lines from the history (including the current
line) and different words from that line.  Add copy-earlier-word
as suggested by Dominik Vogt to copy words from either the
current line, or (following an insert-last-word) a previous
history line.
2002-03-05 16:33:19 +00:00
Peter Stephenson
15630b234a 16759: Src/builtin.c: from Eric Norum <eric.norum@usask.ca>:
cd prints output whenever the target directory is not obvious
to the user.  This confuses scripts, so restrict it to
interactive mode.
2002-03-04 15:51:58 +00:00
Sven Wischnowsky
10490ec499 add $redirections array to completion system parameters, containing information about all redirections on the line; make this and compstate[redirect] contain the file descriptor number (16751) 2002-03-01 10:41:59 +00:00
Sven Wischnowsky
4e354ca36f allow nterruption of empty while-loops with ^C (16711) 2002-02-25 09:21:14 +00:00
Sven Wischnowsky
8dcd8e54c5 make _guard use _mesage -e'; make _message -e' use $curtag as a default; change uses of _guard (16708) 2002-02-25 09:09:31 +00:00
Wayne Davison
8fc5ffa60a Improved the output of the "history" command with a 1-line history buffer,
and also improved the error handling of explicitly-specified first/last
values.
2002-02-22 21:59:43 +00:00
Wayne Davison
663c6e794a In putoldhistentryontop(), ensure that we can't return with "next" set to
the value we just put on top.
2002-02-22 20:40:29 +00:00
Oliver Kiddle
73a4362713 16620, 16697: add a and n parameter expansion flags 2002-02-22 17:28:04 +00:00
Wayne Davison
cfcf7bda8d Yet another fix for prepnexthistent(). 2002-02-20 19:25:14 +00:00
Oliver Kiddle
6febc8fe67 16619, 16676: add -c, -l and -p options to the dirs builtin 2002-02-20 12:51:51 +00:00
Clint Adams
0de96fc478 16673: add langinfo module as an interface to locale information. 2002-02-19 02:14:08 +00:00
Geoff Wing
71749e822a 16635: make sure we display lists in singlelinezle mode 2002-02-19 00:06:54 +00:00
Wayne Davison
3b3bafac80 Fixed a just-introduced bug in prepnexthistent() when curline is in
the list.
2002-02-18 19:25:25 +00:00
Sven Wischnowsky
becf65dd7f allow an argument containing only a single colon as a separator between options to _arguments and specs (16669) 2002-02-18 14:36:01 +00:00
Sven Wischnowsky
fa509f5219 fix group handling nothing should now possibly be added to the wrong group again (16668) 2002-02-18 14:30:46 +00:00
Wayne Davison
d35af383df When savehistfile() rewrites the history file, there was a potential for
losing the entire history file if we couldn't lock the file for reading
(it timed out) but we could lock the file for write (and wrote nothing).
2002-02-16 09:21:34 +00:00
Wayne Davison
e706f12937 Optimized putoldhistentryontop() so that when resizehistents() calls it
repeatedly while HIST_EXPIRE_DUPS_FIRST is set, it doesn't re-scan the
already-checked hist items (avoiding potentially slow operation).
2002-02-16 09:15:07 +00:00
Wayne Davison
c24a38cdaa Improved resizehistents() so that it honors HISTEXPIREDUPSFIRST. 2002-02-13 18:13:14 +00:00
Wayne Davison
168aeada1a Silenced a compiler warning. 2002-02-12 19:34:53 +00:00
Wayne Davison
322c5abf00 The minimum size of histsiz (aka HISTSIZE) should be 1, not 2. 2002-02-12 19:32:57 +00:00
Sven Wischnowsky
9e0f74f07b fix for displaying matches in groups via _describe; go back to displaying one match per line when lines get too long (16582) 2002-02-07 08:40:01 +00:00
Clint Adams
7dea9669bb 16577: don't return a single dot as the path head of a slash. 2002-02-06 16:48:28 +00:00
Bart Schaefer
c6d589aadd 16556: No error on `print >&-'. 2002-02-04 19:38:40 +00:00
Oliver Kiddle
16f1f616f9 16494: extract outermost words with negative arguments to %_ and add %^ 2002-01-31 15:13:26 +00:00
Oliver Kiddle
149aafd65e 16493: correct typos 2002-01-31 15:04:33 +00:00
Oliver Kiddle
5d11abfa3b 16492: add RPROMPT2 variable for right prompts in multi-line commands 2002-01-31 14:44:06 +00:00
Andrew Main
b1dadd97d3 * 16527: Src/Zle/zle_refresh.c: Don't lose the rprompt when
clearing an otherwise-blank line.
2002-01-31 10:51:05 +00:00
Clint Adams
79e13d1209 16503: warn on fclose or fflush errors in bin_print. 2002-01-27 22:44:40 +00:00
Bart Schaefer
9113c2e2d6 16435: Fix core dump in `hash'. 2002-01-26 21:03:36 +00:00
Peter Stephenson
803131605b 16487: Src/glob.c: bug in 16486 when a qualifier in a set
consisted only of flags which were handled globally.
2002-01-22 13:52:29 +00:00
Peter Stephenson
13b57311de 16486: Doc/Zsh/expn.yo, Src/glob.c, Src/pattern.c: support
(#q...) EXTENDED_GLOB syntax for qualifiers.  May be chained,
ignored by pattern matching code.
2002-01-22 12:40:25 +00:00
Sven Wischnowsky
3807c902a2 add new generic fake style and changes to the C-code for that (different implementation of compadd -x) (16483) 2002-01-22 10:22:47 +00:00
Clint Adams
3708080538 unposted: remove ansi2knr from distfiles 2002-01-16 23:29:01 +00:00
Peter Stephenson
64ba6ab245 16448: math assignment bug introduced by 15291, 15292 2002-01-14 13:46:30 +00:00
Peter Stephenson
324e26d8ce 16423: append a `.' to converted floating point output
to stop it looking like an integer
2002-01-10 10:55:20 +00:00
Sven Wischnowsky
3013e98ca4 fix completion after var+= to use value context (16418) 2002-01-08 15:33:23 +00:00
Sven Wischnowsky
2ed74b89ea don't report _arguments-specs more than once (not even shared options with multiple sets) (16417) 2002-01-08 15:29:46 +00:00
Sven Wischnowsky
ba968d10de make sure auto menu isn't started accidentially when bashautolist is set (16408) 2002-01-07 14:43:40 +00:00
Bart Schaefer
0524ab98ff 16400, 16401: preserve empty words that result from brace expansion. 2002-01-06 01:09:09 +00:00
Bart Schaefer
9629b2dc53 15746: remove (with #if) an incorrect optimization in the maildir version
of mailstat().
2002-01-06 01:07:23 +00:00
Oliver Kiddle
1b608e1b9a 16372: allow signal names to be prefixed by `SIG' with kill builtin and fix
problem with no argument to kill -n and -s options
2001-12-21 16:33:39 +00:00
Geoff Wing
6ed0f4c4e9 16332: remove ansi2knr.c from our repository due to licence
differences.  Adjust the build process accordingly.  configure
will now abort if the user requests ansi2knr but no ansi2knr
is available.  ansi2knr is available from the main distribution
site and most mirrors
2001-12-20 23:48:38 +00:00
Oliver Kiddle
b9f675c0e0 16364: further to 16351, except specials from having their value cleared 2001-12-18 14:51:30 +00:00
Oliver Kiddle
68d739c67a small fix to += code from 16353 2001-12-18 09:16:17 +00:00
Clint Adams
0db3827ce2 unposted: back out idiotic patch 2001-12-18 01:24:23 +00:00
Clint Adams
9cf6e76e7d unposted: initialize save to NULL to avoid compiler warning. 2001-12-18 01:21:26 +00:00
Clint Adams
6feb3f57f4 16361: include <stdio.h> to avoid implicit declarations. 2001-12-18 01:13:22 +00:00
Oliver Kiddle
52b8303537 16353: add += parameter assignments 2001-12-17 17:17:38 +00:00
Clint Adams
8659013fb8 16357: change (n) to (u) so (n) can be reserved. for numeric sorting. 2001-12-17 14:06:27 +00:00
Oliver Kiddle
13ab7280aa fix bug in parameter unset code that caused seg fault (16351) 2001-12-17 11:10:46 +00:00
Clint Adams
56854a2fb6 ref 16347: tweaks 2001-12-17 01:16:36 +00:00
Clint Adams
1e103ebef3 16345: (n) flag to remove duplicate array values during expansion. 2001-12-16 20:53:44 +00:00
Bart Schaefer
dfb24f53ec 16269: Fix crash on reserved-word completion. 2001-11-28 18:30:51 +00:00
Bart Schaefer
01ce2a758c 16249: Clear here-documents on parse error. 2001-11-21 17:03:56 +00:00
Chmouel Boudjnah
195d8c5ec6 Add Mandrake completion directory to install 2001-11-15 12:35:47 +00:00
Peter Stephenson
b0c56c0561 16241: new rand48(param) math function 2001-11-15 12:10:22 +00:00
Oliver Kiddle
0e1845cbc6 16228: allow widths and precisions to work with printf's %b format specifier 2001-11-09 16:47:43 +00:00
Oliver Kiddle
d39feeffc4 16224: add -n option to kill and complete options from _kill 2001-11-06 15:06:59 +00:00
Bart Schaefer
c43a6be917 16094: zopenmax() need only return the highest-numbered open descriptor 2001-11-03 23:39:11 +00:00
Bart Schaefer
d98a67c569 16201: introduce the PM_NAMEDDIR flag 2001-11-03 23:36:33 +00:00
Bart Schaefer
7f1ce57089 16158: interpret TAB as "yes" only in spckword()
16201: introduce the PM_NAMEDDIR flag
2001-11-03 23:35:25 +00:00
Bart Schaefer
be640ed587 16215: save and restore mult_isarr in singsub() 2001-11-03 23:34:50 +00:00
Oliver Kiddle
19d2273cb7 16198: add %j prompt expansion and j test character for no. of jobs in prompt 2001-11-02 12:35:32 +00:00
Bart Schaefer
6a75b3c0c5 16197: limit' accepts unlimited'. 2001-11-01 15:41:40 +00:00
Wayne Davison
c1b837b152 Improved readhistline() to reject binary data better. (16184) 2001-10-26 23:47:10 +00:00
Peter Stephenson
c9e1fd9567 16176: Src/Modules/tcp.c, Src/Modules/zftp.c: after fdclose(),
TCP control fd is no longer valid, but we still need to remove
the session cleanly.
2001-10-26 17:15:17 +00:00
Peter Stephenson
6d798f6700 16172: freehostent -> zfreehostent to avoid name clash 2001-10-26 12:06:38 +00:00
Peter Stephenson
f1a55ddaa9 15793: Src/Modules/zftp.c: require zsh/net/tcp explicitly.
15171: Doc/Zsh/zftpsys.yo: minor changes of phrasing
2001-10-26 11:09:46 +00:00
Peter Stephenson
bb5d460f51 16145: try to handle identical RLIMIT_RSS and RLIMIT_VMEM better. 2001-10-25 11:18:51 +00:00
Geoff Wing
cc28002e54 16063: add transientrprompt option to remove right prompt from
display when accepting commands
2001-10-24 07:00:49 +00:00
Bart Schaefer
14e13fb407 Fix infinite loop on `case' with xtrace. 2001-10-23 16:17:03 +00:00
Oliver Kiddle
c1441714b5 zero %n value when reusing printf format (16122) 2001-10-23 11:22:33 +00:00
Peter Stephenson
acd69a7ba3 Pavel Roskin <proski@gnu.org>: compilation for QNX 2001-10-22 17:18:29 +00:00
Bart Schaefer
3793c1c05b Report error on setting a limit to a string that os not a decimal number. 2001-10-22 15:44:19 +00:00
Bart Schaefer
a698189843 Fix segfault in checkrmall(). 2001-10-20 17:48:23 +00:00
Oliver Kiddle
62829b856d allow arguments to be specified in printf format specifications (16080) 2001-10-18 14:22:21 +00:00
Oliver Kiddle
4aaa5b3257 fix return code and tests of printf and comment above bslashquote func (16064) 2001-10-16 11:16:04 +00:00
Clint Adams
6ef62b386b 16062: use O_EXCL when opening a temporary file. 2001-10-16 04:13:29 +00:00
Wayne Davison
34c4e565d0 Fix HIST_NO_SPACE when INTERACTIVE_COMMENTS is set and we get a
comment.
2001-10-15 18:42:52 +00:00
Oliver Kiddle
577ebe0b8a use arithmetic evaluation for numeric arguments to printf (16042) 2001-10-15 11:34:27 +00:00
Sven Wischnowsky
0e6f265516 for caching of compiled patterns: remember that singsub() might modify the string it gets, compare with unmodified string (16041) 2001-10-15 11:28:07 +00:00
Bart Schaefer
fdb4782642 Remove <arpa/telnet.h> from tcp.c. 2001-10-14 17:23:30 +00:00
Bart Schaefer
594ad37c37 Save/restore state around DEBUG trap call. 2001-10-13 17:54:28 +00:00
Sven Wischnowsky
dc472db5f0 hide all but one match with the same string in the list even for unsorted groups (15991) 2001-10-09 09:50:12 +00:00
Oliver Kiddle
bc0f49e09b remove duplicated includes which caused problems on IRIX 5 (15987) 2001-10-08 16:36:54 +00:00
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
Sven Wischnowsky
8e20d1da63 more fixage for expansion: just convert the command line to the original when expansion shouldn't or couldn't do something sensible on the line (14359) 2001-05-16 10:27:06 +00:00
Wayne Davison
4a28d81c47 Added HIST_TMPSTORE define. 2001-05-15 16:32:28 +00:00
Wayne Davison
9f9ced8c62 + Changed histreduceblanks() to preserve spaces at the start of the
line when HISTIGNORESPACE is set.
+ Flag a history entry with HIST_TMPSTORE when should_ignore_line()
  returns true (instead of dropping it from the history immediately).
+ Get rid of old HIST_TMPSTORE entries when a new command is entered.
+ The hist-file-reading code now handles destroying a foreign
  duplicate (when marked as duplicate by addhistnode()).
2001-05-15 16:32:25 +00:00
Wayne Davison
eb71464b09 Changed addhistnode() to not displace an already-hashed command with
one that is marked HIST_TMPSTORE.  Also changed the function to not
ever destroy the entry we're currently adding (the caller now destroys
the newly-added entry, if it so desires).
2001-05-15 16:32:22 +00:00