1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00
Commit graph

278 commits

Author SHA1 Message Date
Barton E. Schaefer
3e06aeabd8 32294: prevent buffer overflow when scanning very long directory paths for symbolic links 2014-01-19 19:39:31 -08:00
Barton E. Schaefer
5618116020 32061: Fix "use of uninitialized memory" in metafy 2013-11-27 22:09:48 -08:00
Barton E. Schaefer
b514fbe110 32023: better interrupt handling at RM_STAR_WAIT 2013-11-19 08:30:10 -08:00
Peter Stephenson
40a881569f 31650: use zlong for mailcheck parameters to ensure range 2013-08-11 20:19:53 +01:00
joe M
b9e16ac818 31648: fix timing errors in mailcheck 2013-08-10 19:48:13 +01:00
Bart Schaefer
d19e18c68d 31350: block SIGWINCH nearly all the time, except
when about to calculate prompts or do synchronous read, so
syscalls are not interrupted by window size changes.
2013-04-30 00:08:49 -07:00
Peter Stephenson
f73d92f5dc add missing mod_export 2012-12-16 18:43:24 +00:00
Peter Stephenson
e550c98d69 30647, 30649: allow underscores in numeric constants 2012-09-11 16:02:41 +00:00
Bart Schaefer
9af1cd4722 30530,30533: fix problems with COLUMNS or LINES < 1, and related issues 2012-06-27 07:10:29 +00:00
Peter Stephenson
cd1b5d86e0 users/17046: don't count too many elements when splitting quoted parameter
substitution on null parameter
2012-05-01 19:43:44 +00:00
Peter Stephenson
4f142f2794 30413: (q-) parameter flag should quote null string
(q-q) etc. should be treated as errors
2012-04-16 11:26:09 +00:00
Peter Stephenson
a76c8de44c 30351 + 30352: metafy strings on import into zsh variables 2012-03-13 09:47:01 +00:00
Peter Stephenson
86f8e8de69 30307 plus tweak suggsted by Wayne: use %lld for zlong when long long 2012-03-05 10:06:28 +00:00
Peter Stephenson
74eed99c31 29940: metafy() added null termination even if buffer was not modifiable 2011-12-03 23:15:37 +00:00
Bart Schaefer
7c5173ba0f users/16581: skip correction shortcut based on command table search when
the word is not in command position; on rejected command correction,
reset incremental path hashing.
2011-11-15 15:08:56 +00:00
Bart Schaefer
188abdd708 29799: swap order of RESET_PROMPT / REFRESH in adjustwinsize(). 2011-10-02 01:10:11 +00:00
Peter Stephenson
815e52cdbf users/16253, users/16255: a nulstring should be split like an empty string 2011-08-17 19:00:08 +00:00
Peter Stephenson
a3ae9f5d12 29643: set incompfunc to zero when executing hook or trap function 2011-08-04 08:30:50 +00:00
Peter Stephenson
45913f43e5 29561: Allow closing of fd's not recorded by the shell 2011-07-25 10:20:09 +00:00
Peter Stephenson
962624e8c3 29491: remove some variables set but not used 2011-06-19 16:26:10 +00:00
Peter Stephenson
d89361739a 29165: use term.h globally if needed at all. 2011-05-09 09:49:08 +00:00
Wayne Davison
9e0b7684e5 28977: fix copying of uninitialized memory when trying to
spell-correct a really long string.
2011-04-06 00:04:06 +00:00
Peter Stephenson
f2dca9e155 users/15864: turn zsh_directory_name into a hook 2011-03-11 16:32:07 +00:00
Peter Stephenson
6318e041d1 unposted: fix argument type for write_loop() 2011-01-06 21:31:06 +00:00
Bart Schaefer
87d6527628 28578: fix handling of numeric escapes that expand to "%" in printf
format strings, so they are not treated as format introducers.
2011-01-06 16:49:25 +00:00
Peter Stephenson
dd0ad1ac23 28568: buffer overflow examining paths 2011-01-05 18:22:08 +00:00
Peter Stephenson
a7bc22ca00 Paul 28538 / me 28540 / couple of unposted casts:
use char * for pointer arithmetic rather than void *
2010-12-20 10:28:43 +00:00
Peter Stephenson
c66f52bad9 Mikael: 28480: allow PROMPT_EOL_MARK to be an empty string 2010-12-06 19:34:32 +00:00
Peter Stephenson
2e37fda925 28559: flush shell output in PROMPT_SP handling 2010-11-27 17:13:29 +00:00
Wayne Davison
3f42b0a617 Use newer PROMPT_SP behavior for hasxn terms too. 2010-11-26 18:50:22 +00:00
Wayne Davison
d89e55fe0e Overwrite PROMPT_SP string if it should remain invisible,
even with an upcoming newline.
2010-11-25 17:16:27 +00:00
Peter Stephenson
cc9bc2dd0b 28424: new POSIX_STRINGS option 2010-11-22 11:42:47 +00:00
Peter Stephenson
bdb38058e4 28345: make ${(D)...} return a fully usable command line argument 2010-10-15 18:56:16 +00:00
Peter Stephenson
76aef28b31 28073: allow #! scripts to search path if interpreter not found 2010-07-15 18:44:12 +00:00
Peter Stephenson
64d431d98b 28025: (D) parameter flag 2010-06-11 20:08:01 +00:00
Peter Stephenson
147cedfb6f 27965, 27966: Improve ${(q)...}: newline appears as $'\n;, 2010-05-27 18:57:34 +00:00
Peter Stephenson
815cc9fc0d rationalise widths of non-printing characters to zero. 2010-03-27 19:04:35 +00:00
Peter Stephenson
43df0a21c0 27785: IFS doesn't have a null in it in POSIX
unposted: note & needs quoting in :s in glob qualifier
2010-03-11 22:38:58 +00:00
Peter Stephenson
bec3de98df 27754 plus NEWS change: add "zsystem flock" 2010-02-24 21:37:24 +00:00
Peter Stephenson
48315b019b unposted: add debug code to zclose() 2010-02-22 11:35:13 +00:00
Peter Stephenson
7977ce0747 27721: rationalise initialisation of file descriptors 2010-02-22 10:12:22 +00:00
Peter Stephenson
192c4f6ac1 27693: Missed this. 2010-02-09 14:24:01 +00:00
Wayne Davison
74d17bc282 Get rid of some "ignoring return value" compiler warnings
and provide read_loop() and write_loop() functions.
2009-12-16 18:38:44 +00:00
Peter Stephenson
512c62fc03 27503: fix crash with hook functions 2009-12-11 22:21:26 +00:00
Peter Stephenson
a92507d2b8 Mikael: 27337: fix bug searching for / when
scanning symlinks in cd
2009-11-03 10:00:34 +00:00
Peter Stephenson
500431077b Apple opensource patches suggested by Jun T. in 27300 2009-09-30 20:32:18 +00:00
Wayne Davison
2f8aaaf5e4 27286: Made movefd() return the targetfd on success. Added
a little more error checking in the callers of movefd().
2009-09-22 16:04:13 +00:00
Peter Stephenson
51409732d0 27284: better use of movefd() 2009-09-22 09:17:05 +00:00
Peter Stephenson
997eafdcad 27283: failure to dup fd caused mayhem 2009-09-21 20:49:21 +00:00
Peter Stephenson
ce4137c858 Eric Blake: 27109: don't attachtty() if not interactive 2009-07-09 20:20:53 +00:00