1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +01:00
Commit Graph

793 Commits

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