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

1006 Commits

Author SHA1 Message Date
Bart Schaefer
d4c7657014 17760: Fix case-pattern parsing bug in sh emulation. 2002-10-06 18:38:14 +00:00
Bart Schaefer
fbc08ff52c 17714: Fix to 17357, add module dependencies even if not adding autoloads. 2002-10-06 18:25:39 +00:00
Bart Schaefer
a1d727e5dc 17692: Prevent typeset of a positional parameter before it can do damage,
and improve the error message about it.
2002-09-19 17:57:56 +00:00
Peter Stephenson
41b50445ea 17673: Fix bug with &&s and ||s in complex constructs 2002-09-17 10:42:17 +00:00
Oliver Kiddle
49bfbc1248 17678: ignore initial `--' argument to printf to satisfy POSIX 2002-09-16 18:24:47 +00:00
Peter Stephenson
56565320c1 17608: comment on use and abuse of BINF_SKIPINVALID 2002-09-03 19:33:00 +00:00
Peter Stephenson
25e363df2b 17602, 17603: Rationalise option handling, in particular for cd, pushd, popd. 2002-09-03 09:33:35 +00:00
Peter Stephenson
9634760d5e 17582: Improved option argument handling.
unposted: Updated version to 4.1.0-dev-6 because of interface change.
2002-08-27 21:10:30 +00:00
Peter Stephenson
7123f4413b 17544: implement read -s to suppress tty echo 2002-08-22 12:57:43 +00:00
Peter Stephenson
1c5d5bb1f4 17570: tweaks to socket module 2002-08-22 12:08:06 +00:00
Sven Wischnowsky
de670cbb58 fix typo in comment (17569) 2002-08-20 15:21:54 +00:00
Sven Wischnowsky
1229d05c19 fix default completion module loading, use compctl if it hasn't been loaded already and no completion widgets have been defined (17567) 2002-08-20 12:28:05 +00:00
Clint Adams
c6b5b1f147 17558: zsh/net/socket , zsocket builtin 2002-08-18 02:12:39 +00:00
Peter Stephenson
f60279ae24 17516, 17517: Attempted fixes for memory leaks shown by valgrind.
First with zstyle patterns, second with pwd in job structure.
2002-08-08 10:43:50 +00:00
Oliver Kiddle
af0697b705 17503: fix various typos and spelling mistakes in source code comments 2002-08-05 12:35:59 +00:00
Peter Stephenson
cc70b96162 17497: getopts skipped over zero-length arguments. 2002-08-01 15:50:07 +00:00
Peter Stephenson
8e90d2018c Dan Nelson: 17492: Quote output from xtrace 2002-08-01 15:06:25 +00:00
Sven Wischnowsky
273929e188 make sure invalidatelist() isn't called hwen we are inside menu selection and there's only one match left (17489) 2002-07-30 07:47:03 +00:00
Peter Stephenson
39bb8c9e8b 17485?: Incorrect test for TYPESET_SILENT 2002-07-29 16:02:53 +00:00
Sven Wischnowsky
def8d4afda remove qword, it isn't needed anymore (17439) 2002-07-08 09:03:04 +00:00
Sven Wischnowsky
135db923be improve interactive mode when there are no matches left (alow to go back with undo) (17429) 2002-07-05 08:18:50 +00:00
Clint Adams
19424d40a8 17417: remove unused fluff from datetime.c 2002-07-04 17:03:18 +00:00
Peter Stephenson
76c1e26713 17405: adapt 17390 to reset PREDISPLAY and POSTDISPLAY when zle is entered 2002-07-04 10:13:38 +00:00
Sven Wischnowsky
c2dd10edc9 in menu selection, use copies of comp{pre,suf}fix to make sure they exist; fix display problem with non-empty iprefix (17403) 2002-07-04 09:29:20 +00:00
Sven Wischnowsky
d98faffcaf fix for interactive mode when menu selection is called via the menu-select widget (17394) 2002-07-03 07:59:53 +00:00
Peter Stephenson
1a1b108b34 17390: new zle parameters $PREDISPLAY, $POSTDISPLAY 2002-07-01 16:50:41 +00:00
Peter Stephenson
a18f020282 17384: new recursive-edit widget. 2002-07-01 09:54:47 +00:00
Sven Wischnowsky
053629183d add new sepcial context -assign-parameter- for completing the parameter in an assignment (17387) 2002-07-01 08:25:15 +00:00
Bart Schaefer
6278159f6d 17357: Predefine autoloads in zsh emulation only. 2002-06-27 01:43:03 +00:00
Sven Wischnowsky
d28f67623f two new modes for menu selection: incremental search and interactive (17366) 2002-06-26 11:07:42 +00:00
Peter Stephenson
03105a5d6e 17360: more lenient accept-line-and-down-history behaviour
17361: more careful about NULL history entries in zle
2002-06-24 18:21:18 +00:00
Peter Stephenson
36765a58a6 17350: add $CUTBUFFER and $killring zle parameters 2002-06-24 09:51:59 +00:00
Peter Stephenson
19817c34d1 17334: TYPESET_SILENT shell option and typeset -p option 2002-06-20 16:39:47 +00:00
Peter Stephenson
98307b767c 17318: ${(z)...} added an extra space when the lexical analyser failed. 2002-06-14 17:52:05 +00:00
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