1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-16 14:41:02 +02:00
Commit graph

140 commits

Author SHA1 Message Date
Peter Stephenson
d26461a3c6 users/18298 (tidied up): add {<char>..<char>} expansion 2014-01-09 10:05:13 +00:00
Peter Stephenson
8e2d4c2cf7 32030: need to revert empty glob qualifier change.
It failed on an empty expansion that (N) was supposed to remove.
Add test for this case.
2013-11-20 17:35:57 +00:00
Barton E. Schaefer
12fb09c336 31995: Han Pingtian: glob qualifiers cannot follow an empty pattern, so a leading paren means grouping 2013-11-18 08:24:54 -08:00
Peter Stephenson
60debf388f 31764: Dewreakify havoc caused by pattern disables on glob qualifiers.
Don't use the zpc_specials array before it's defined, it's rude.
2013-09-23 21:02:31 +01:00
Barton E. Schaefer
27f9c515ff unposted: improve an error message. 2013-09-21 16:39:25 -07:00
Peter Stephenson
347a63da0c 31465: fix basic completion and globbing uses of disabled patterns 2013-06-13 18:40:36 +01:00
Peter Stephenson
68d0d76db5 31441: use array to decide which forms of pattern are enabled 2013-06-01 20:39:09 +01:00
Peter Stephenson
c3fb9dbfa3 Dima Kogan: 30515: fix globbing problem with large files:
failure owing to bad cast with large integers
2012-06-18 09:05: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
Mikael Magnusson
47a48ced0e 30276: Src/glob.c: Use zlong rather than int when calculating brace expansions of the form {1..9}. 2012-02-29 17:06:07 +00:00
Peter Stephenson
53f893d062 30181, plus rename of PF_* flags to PREFORK_*:
Pass sh-wordsplitting instructions to paramsubst() using flags,
avoiding side effects of explicitly setting and unsetting the
SHWORDSPLIT option.
2012-02-12 20:27:48 +00:00
Peter Stephenson
acb97e6115 29991: allow explicit "d" for days in time qualifiers 2011-12-11 17:22:59 +00:00
Oliver Kiddle
fe1dc5102a 29952: fix cut'n'paste error in nanosecond timestamp support 2011-12-07 01:31:20 +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
Peter Stephenson
dfc26195c9 28617: NO_EXEC option was doing too much work in
parameter subscripting, parameter assignment, and globbing
2011-01-10 18:24:17 +00:00
Peter Stephenson
25b12c5d11 28474, 28478: extended {START..END..STEP} syntax 2010-12-05 21:07:48 +00:00
Peter Stephenson
09960dc5b9 27951: Add $ZSH_EVAL_CONTEXT and $zsh_eval_contxt 2010-05-12 10:06:59 +00:00
Peter Stephenson
a589007d59 unposted: initially clear list for P glob qualifier 2010-02-13 20:25:49 +00:00
Peter Stephenson
f4f0becb63 27694: add P glob qualifier for prepending 2010-02-09 17:47:02 +00:00
Peter Stephenson
9defc9850d 26772: better error handling and fix runaway chdir on failed cd 2009-03-24 12:52:07 +00:00
Peter Stephenson
7c43fb69bf 26448: add glob sort operators oe and o+ 2009-01-27 09:55:22 +00:00
Clint Adams
29852fe214 unposted: revert 26014. 2008-11-08 06:31:01 +00:00
Clint Adams
3fc22d6eab 26014: don't allocate and leak a patprog if it's not going to be used. 2008-11-06 02:59:42 +00:00
Peter Stephenson
59dd1491c6 users/13295, tweaked: dont reset line numbers when parsing strings, sometimes 2008-09-29 08:46:21 +00:00
Peter Stephenson
58580d31f5 24996: improve xtrace output for patterns 2008-05-11 19:55:21 +00:00
Peter Stephenson
8dc2bc1350 oops 2008-04-29 19:53:47 +00:00
Peter Stephenson
0c0213b517 24887: geoff: typo 2008-04-28 08:55:27 +00:00
Peter Stephenson
234c6ed193 24878: add incremental pattern searches 2008-04-26 19:51:08 +00:00
Oliver Kiddle
fe5390a04c 24050: handle nanosecond resolution timestamps on systems that support them 2007-11-01 17:57:57 +00:00
Peter Stephenson
756cfc08e2 24006: (F) glob qualifier should unmetafy 2007-10-22 09:27:03 +00:00
Peter Stephenson
abae4fe16e 23562: add KSH_ZERO_SUBSCRIPT option and leave off by default 2007-06-18 13:25:03 +00:00
Peter Stephenson
553e011320 23118: improve sorting to make it work with locales 2007-01-21 22:47:36 +00:00
Peter Stephenson
aba936b17c 22981: Zvi Har'el: bad call from 22952
22980: add hook array for special functions
2006-11-08 10:38:05 +00:00
Peter Stephenson
f367a90505 22980: 22952 messed up parameter padding flag optional arguments 2006-11-07 22:47:07 +00:00
Peter Stephenson
d8207acddb 22952: fix some argument delimiters to work with multibyte characters 2006-11-02 18:43:19 +00:00
Peter Stephenson
9471bbcfa0 22934, modified, see 22937: add HIST_SUBST_PATTERN option
make ${.../#%...} anchor at both ends
2006-11-01 12:25:18 +00:00
Peter Stephenson
663b9376ad 22562: make ${...#...} etc. understand multibyte characters 2006-07-30 18:00:37 +00:00
Peter Stephenson
4a67f24798 22544: Improve use of ztype tests for multibyte characters. Add
POSIX_IDENTIFIERS option to control allowability of multibyte
alphanumeric characters in parameter and module names.
2006-07-10 13:08:22 +00:00
Peter Stephenson
dd5602f59b 22474: use variable argument lists to improve error message handling 2006-05-30 22:35:03 +00:00
Clint Adams
a915138852 22284: add --disable-dynamic-nss configure switch to disable use of getpw*(), getgr*(), initgroups() functions. 2006-02-19 19:36:31 +00:00
Peter Stephenson
b5a83cc754 users/9788: add (oN) glob qualifier for no sorting
22076: more documentation for multibyte handling
2005-12-15 10:38:55 +00:00
Peter Stephenson
3c37057c34 21871: replace INULL() by inull() 2005-10-13 16:30:13 +00:00
Peter Stephenson
cca66ab341 21862/21863: GLOB_SUBST shouldn't swallow up backslashes in parameter
substitutions that don't match anything.
2005-10-11 16:48:05 +00:00
Peter Stephenson
d551b0f483 21661: fix glob bug introduced in 21655 2005-08-18 10:17:47 +00:00
Peter Stephenson
b0ca393c47 21655: bug in ${..//../${..//../..}} 2005-08-17 23:45:31 +00:00
Wayne Davison
ed370a901a 21609: fixed a readlink() call in statfullpath(). 2005-08-15 16:04:32 +00:00
Peter Stephenson
15d4118cb9 21557: Thorsten Dahlheimer: BRACE_CCL fix 2005-08-02 09:23:38 +00:00
Oliver Kiddle
6245d3e32f 21317: fix bug where recursive glob within e qualifier would hang the shell 2005-06-21 08:58:43 +00:00
Bart Schaefer
813cb26e40 21174 adjustments to 21170 2005-04-24 18:38:38 +00:00
Peter Stephenson
5733e942f5 Optimise length calculations for ${...//.../...} 2005-04-24 00:38:07 +00:00
Peter Stephenson
51ec0b8079 20983: failed glob from fixed strings segments in globbed paths 2005-03-16 11:50:50 +00:00
Peter Stephenson
a92d2d84c0 20661: *(+func) = *(e:func:) 2005-01-10 17:31:07 +00:00
Peter Stephenson
c8e70ab5cf 20522: must-match optimisation in parameter substitution broken 2004-10-26 17:20:21 +00:00
Peter Stephenson
b115ca307a 20500: Unmetafy patterns where possible and other minor pattern fixes 2004-10-18 11:56:14 +00:00
Wayne Davison
fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Wayne Davison
88013bb195 Fixed signed/unsigned compiler warning. 2004-05-28 19:05:11 +00:00
Wayne Davison
5bae8f00b8 Minor optimization to qualnonemptydir() when a dir has a subdir. 2004-04-06 17:45:47 +00:00
Peter Stephenson
fda060370f 19717: (F) glob qualifier for full directories 2004-04-01 18:33:05 +00:00
Peter Stephenson
bbc409eefe 19167: fix NUL at start of BRACE_CCL range. 2003-10-06 22:42:35 +00:00
Oliver Kiddle
2e70a25d46 fix bug with f glob qualifier where an empty spec resulted in an infinite loop 2003-08-01 14:14:19 +00:00
Oliver Kiddle
945f54b001 18263: fix saving of glob state so that globs can be used from (e) glob qual 2003-02-20 08:17:38 +00:00
Oliver Kiddle
af0697b705 17503: fix various typos and spelling mistakes in source code comments 2002-08-05 12:35:59 +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
c5ebd0fad0 16942: Allow zero-length matches in parameter substitutions. 2002-04-08 17:54:21 +00:00
Oliver Kiddle
73a4362713 16620, 16697: add a and n parameter expansion flags 2002-02-22 17:28:04 +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
Peter Stephenson
cc0d931682 15931: EXIT traps from exit in subshell; 15965: glob -> zglob 2001-10-08 08:13:11 +00:00
Peter Stephenson
003ec8c7e8 15327: always use local LINENOs in parse_string(). 2001-07-09 16:05:13 +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
Peter Stephenson
55d4ee8c6d 15266: fix for ${(S)...%%...} 2001-07-05 23:53:05 +00:00
Peter Stephenson
b6a44fae76 Back off 14140 (tokenize comma) 2001-05-09 09:00:19 +00:00
Peter Stephenson
6a0c6b1b27 Make X{$~foo}Y where $foo contains commas behave as expected 2001-05-02 09:53:32 +00:00
Bart Schaefer
e2e9121893 Subscripting optimization and error checking. 2001-04-24 05:45:16 +00:00
Sven Wischnowsky
757168e2c8 remove 13108 (trap queues); replace with signal queueing to ensure that user signal handlers are only executed when it is safe to run them (13365) 2001-01-16 13:44:18 +00:00
Peter Stephenson
0c96a1b963 Joel Smith: 13230: avoid name clashes with Linux kernel 2000-12-05 10:34:23 +00:00
Bart Schaefer
5ca1864f94 Change some zerr to zwarn for consistency. 2000-10-02 18:40:35 +00:00
Bart Schaefer
fcaa17f396 Improve upon some of the PATH_MAX changes. 2000-09-18 06:50:54 +00:00
Sven Wischnowsky
55b07cb525 quoting 2000-08-03 13:35:43 +00:00
Wayne Davison
192dc1228a Fixed glob array indexing. 2000-06-02 10:09:13 +00:00
Wayne Davison
91d5f73434 Changed the array "len" to be "end" -- a 1-relative index of the last
item (or you can think of it as pointing one past the last item).
2000-06-02 01:54:16 +00:00
Peter Stephenson
7bf294f2b8 Wayne: pattern.c unitialised var
Zero-length arrays now possible with $array[1,0]
2000-05-31 08:56:23 +00:00
Peter Stephenson
184ea22946 11410: make tokenize() tokenize =, so $~foo allows =cmd expansion 2000-05-16 13:41:50 +00:00
Oliver Kiddle
ddd8614e51 AIX dependency fixes 2000-04-30 17:58:35 +00:00
Peter Stephenson
2295c59fcb 10756: fix (#s) and (#e) for parameter substitution forms 2000-04-14 11:49:31 +00:00
Clint Adams
18870148c5 10564: typo in _wanted
10565: maximum function depth configure option
10566: patgetglobflags has a second argument now
2000-04-07 02:27:44 +00:00
Peter Stephenson
3acc9f80ef Patches 10513, 10516 (Alexandre), 10519 (Oliver), 10524 2000-04-05 19:28:07 +00:00
Tanaka Akira
e74702b467 Initial revision 1999-04-15 18:05:38 +00:00