1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-14 17:51:28 +02:00
Commit graph

329 commits

Author SHA1 Message Date
Peter Stephenson
29b7123647 23485: feature completion and autoloading 2007-05-29 14:16:02 +00:00
Peter Stephenson
b0c5f09169 see 23479: add initial features support for modules 2007-05-28 22:57:39 +00:00
Peter Stephenson
faf05be3d2 23440: Make $param[(R)value] substitute the empty string on failure 2007-05-21 09:30:24 +00:00
Peter Stephenson
3be3ca8805 23437: typo noted by Wayne 2007-05-14 09:25:30 +00:00
Peter Stephenson
599a7fd7a7 23436: consistency with null strings in local variables
unposted: Phil Pennock: POSIX RE's are extended
2007-05-13 20:18:28 +00:00
Peter Stephenson
05ff4fb3ab 23273: fix bad patterns in reverse array subscripting 2007-04-13 11:54:16 +00:00
Peter Stephenson
62b671f0d1 23159 plus minor doc tweaks: leave BAUD parameter unset by default 2007-02-08 10:43:28 +00:00
Peter Stephenson
0108088f52 23152: make ztrcmp() respect MULTIBYTE
make sorting of printed hash tables more consistent
2007-02-06 21:47:54 +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
b262d310b2 22686: unset array if assigning numeric parameter 2006-09-11 11:09:15 +00:00
Peter Stephenson
80acfd135c 22684: improve getkeystring() interface and make printf do octal escapes 2006-09-10 18:10:48 +00:00
Peter Stephenson
6d61a3859e 22578: ensure HISTCHARS/histchars never contains non-ASCII characters 2006-08-02 17:16: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
f95a6a913c 22524: searchable parameter subscripts with multibyte chars,
a few other fixes
2006-06-27 16:28:45 +00:00
Peter Stephenson
05bd0b2dd1 22518: Initial go at making parameter subscripts
use multibyte characters.
2006-06-26 18:17:31 +00:00
Peter Stephenson
8346a5e8d2 22483: add $sysparams to zsh/system 2006-06-05 13:21:56 +00:00
Peter Stephenson
dd5602f59b 22474: use variable argument lists to improve error message handling 2006-05-30 22:35:03 +00:00
Wayne Davison
4cb83571c4 Changed some structures to avoid gcc's type-punned warnings. 2006-03-07 21:30:36 +00:00
Bart Schaefer
20aae107b8 22321: optimize 22318. 2006-03-06 15:38:59 +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
30176eaf63 22198: do always set HOME in native emulation 2006-02-07 11:29:30 +00:00
Peter Stephenson
8b0cc87817 22195: don't set HOME in the shell 2006-02-06 11:57:03 +00:00
Peter Stephenson
e366ca8dbf users/9638: tweaks for FCEDIT etc.
21986: rewrite completion suffixes for wide characters
2005-11-07 09:37:34 +00:00
Peter Stephenson
337b9dba1f 21974: memory leak with tied parameters 2005-11-02 12:04:46 +00:00
Peter Stephenson
3c37057c34 21871: replace INULL() by inull() 2005-10-13 16:30:13 +00:00
Peter Stephenson
409296e22f 21736: improve tests for word and identifier characters with multibyte input 2005-09-20 15:10:26 +00:00
Peter Stephenson
7746eea52b adapted from 21719: add some mod_exports 2005-09-09 16:06:47 +00:00
Peter Stephenson
f2d873d811 21701: Negative subscripts of scalars before start were broken 2005-09-06 15:28:17 +00:00
Peter Stephenson
635b405c55 21678: Unsetting tied parameters caused various crashes 2005-08-22 11:43:36 +00:00
Peter Stephenson
d307660dee 21575 plus unposted: Add WARN_CREATE_GLOBAL option 2005-08-08 16:48:52 +00:00
Wayne Davison
03531ff379 The parsing of \c in $foo[(pws:\c:)1] should treat \c as an unknown
escape (resulting in a literal "c"), not remove the sequence (from
a patch by Thorsten Dahlheimer).
2005-07-24 05:37:23 +00:00
Clint Adams
5571605340 * 21124: Src/Zle/zle_main.c, Src/init.c, Src/params.c: have zle cache a
wide-char version of WORDCHARS each time it's changed (when ZLE_UNICODE_SUPPORT
 is defined).
2005-04-08 16:42:55 +00:00
Peter Stephenson
43d480057b 20959: fix crash unloading zsh/parameter and test the fix 2005-03-10 17:55:37 +00:00
Wayne Davison
e63e45ae62 Got rid of "unused parameter" compiler warning for nullsethashfn(). 2005-01-21 11:15:36 +00:00
Peter Stephenson
88a37cc187 c.f. 20675: improve zle as a basis for Unicode.
unposted: update version to 4.2.3-dev-1
2005-01-14 13:04:47 +00:00
Peter Stephenson
69b4b8bdde 20605: Use separate structure with get/set/unset methods fro parameters.
Separate justification width of parameters from base/precision.
2004-12-07 16:54:58 +00:00
Peter Stephenson
ba32e52292 users/8219: add $HISTCMD 2004-11-16 19:05:50 +00:00
Wayne Davison
74fb5712a2 - Call saveandpophiststack() with its new writeflags arg. 2004-10-01 19:48:57 +00:00
Wayne Davison
b8b11e7627 Silence unused-parameter warnings from the compiler. 2004-10-01 19:06:49 +00:00
Peter Stephenson
7d3d6f4a5a 20391: SHLVL wasn't updated in environment 2004-09-20 14:35:19 +00:00
Peter Stephenson
037485c4a4 20378: Matthias B.: fix bugs joining with metafied chars. 2004-09-17 09:25:38 +00:00
Peter Stephenson
6b1dc0f701 20331: Use internal zlong variables for consistency
20332: Add WIDGETSTYLE zle parameter
2004-09-09 10:12:42 +00:00
Peter Stephenson
4c8796b11d 20141: Crash restoring exported special parameters 2004-07-07 15:00:44 +00:00
Peter Stephenson
d591334e9d 20076, 20084: { ... } always { ... } syntax. 2004-06-22 13:09:55 +00:00
Wayne Davison
fb0937a69e Marked unused parameters with the new UNUSED() macro. 2004-06-02 22:14:25 +00:00
Wayne Davison
7c4ac8d60b - Added missing struct initializers to two last-in-list values.
- Fixed a few signed/unsigned comparisons.
2004-05-28 19:20:01 +00:00
Wayne Davison
79a802c74c Added a call to saveandpophiststack(0) to endparamscope() to enable
the new auto-pop feature.
2004-05-21 20:05:16 +00:00
Peter Stephenson
665b0950c6 19971: Fix environment nastiness in zexecve() 2004-05-21 11:19:30 +00:00
Oliver Kiddle
98e28ff3ed 19712, 19740: allow assigning to associations with i and r subscript flags 2004-04-06 13:00:50 +00:00
Oliver Kiddle
3023ddf132 19707: negative index into arrays should return scalar and not one element array 2004-03-30 16:35:30 +00:00
Peter Stephenson
514a476afe unposted: make 19655 a bit safer 2004-03-18 13:54:22 +00:00
Peter Stephenson
2f8a646d4e 19655, 19656, 19657: Memory leaks spotted by valgrind.
Also bug with multiple math function autoloads.
2004-03-18 12:23:31 +00:00
Peter Stephenson
8db5846e31 19552: missing mod_export 2004-03-08 11:01:10 +00:00
Peter Stephenson
915e17ee4b 19374: fix typo in 19361 2004-01-15 11:10:46 +00:00
Peter Stephenson
1a89fbabb4 19361: Memory leaks 2004-01-12 12:09:10 +00:00
Peter Stephenson
815bc92148 a la 19209: zcalloc -> zshcalloc 2003-10-29 19:17:30 +00:00
Peter Stephenson
eeb9ec4714 19129: extra argument to typeset -T gives character for joining array 2003-09-24 14:55:32 +00:00
Peter Stephenson
c016b2dcdc 18982: comments/rant for paramsubst() 2003-08-30 19:00:20 +00:00
Peter Stephenson
06b04ca1b2 18435: unsetting readonly returned status 0 2003-04-04 16:46:25 +00:00
Oliver Kiddle
c7564985e5 18337: use C locale when converting floats to scalars to avoid problems in
locales where `,' is the decimal separator
2003-03-11 17:29:47 +00:00
Wayne Davison
a2365a60db - Use floatsecondsgetfn() and floatsecondssetfn() inside the int* version
of the functions (for improved accuracy).
- Added getrawseconds() and setrawsecodns() to allow the code to save and
  restore the actual start time of the $SECONDS variable.
- Changed the code that was adding in the child's elapsed time into the
  parent $SECONDS variable to just restore the raw time.
2002-10-31 18:32:40 +00:00
Peter Stephenson
c2b5a21ae5 17873: When restoring SECONDS after a function call, included elapsed time. 2002-10-29 12:58:00 +00:00
Peter Stephenson
7bfc0f1b5c 17868: Allow $SECONDS to become floating point. 2002-10-29 10:31:12 +00:00
Oliver Kiddle
7a0ab2444d 17794: fix bugs with tied parameters 2002-10-10 11:06:42 +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
19817c34d1 17334: TYPESET_SILENT shell option and typeset -p option 2002-06-20 16:39:47 +00:00
Wayne Davison
c5015e19de Made SAVEHIST a special parameter. 2002-03-24 23:52:49 +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
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
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
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
Oliver Kiddle
52b8303537 16353: add += parameter assignments 2001-12-17 17:17:38 +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
d98a67c569 16201: introduce the PM_NAMEDDIR flag 2001-11-03 23:36:33 +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
Peter Stephenson
3f6a9e4522 fix setting of individual positional parameters after 14915 2001-06-15 13:07:50 +00:00
Peter Stephenson
d247b7f146 $* and $@ are special 2001-06-14 09:49:01 +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
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
Bart Schaefer
90a1316345 Fix re-set of integer special params after unset. 2001-05-19 00:31:22 +00:00
Peter Stephenson
0b56c15853 Use BDIGBUFSIZE in two other places 2001-05-01 09:46:09 +00:00
Bart Schaefer
ba9541fb5d BDIGBUFSIZE for binary conversions. 2001-04-28 17:38:00 +00:00
Bart Schaefer
e2e9121893 Subscripting optimization and error checking. 2001-04-24 05:45:16 +00:00
Bart Schaefer
fc4511ecb7 Fix subscripting bug with backslash-double-quote. 2001-04-23 15:30:22 +00:00
Bart Schaefer
eee9d49755 Fix bug in (kK) subscript flags. 2001-04-22 21:04:10 +00:00
Clint Adams
961564ddda 14065: decrease termcap/terminfo parameter fishiness 2001-04-22 14:46:59 +00:00
Bart Schaefer
219674c48b More parameter/subscript cleanup. 2001-04-21 18:49:12 +00:00
Bart Schaefer
220ad9aa23 Parameter repairs, mostly for subscripting. 2001-04-20 06:13:35 +00:00
Sven Wischnowsky
b0be035127 indent fix 2001-04-06 07:55:13 +00:00
Sven Wischnowsky
a971509182 test for unset in pipestatussetfn() (13917) 2001-04-06 07:49:27 +00:00
Sven Wischnowsky
4b56a40b6c (13916) 2001-04-06 07:38:36 +00:00
Sven Wischnowsky
ee553c9ec0 fix for reverse subscripting of strings as second part of subscript ($a[x,(r)..]) (13907) 2001-04-05 11:24:16 +00:00
Clint Adams
74ee4ba61d unposted: remove unused variable declaration 2001-02-14 23:37:39 +00:00
Andrey Borzenkov
d36dbe2337 13370: avoid in-place modification of environments variables when importing.
Zsh tried to free unallocated memory when importing colon arrays. Removed
redundant replenv().
2001-01-19 14:54:52 +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
Bart Schaefer
ad5f9584c1 ALL_EXPORT tweaks. 2000-11-25 23:50:01 +00:00
Bart Schaefer
07c0b1a306 Fix 12722. 2000-09-04 07:21:57 +00:00
Andrew Main
960728aad2 12722: [##base] for output base selection without a base prefix 2000-09-02 17:09:28 +00:00
Peter Stephenson
f6ecbb7f4d 12581: C_BASES option 2000-08-10 16:19:11 +00:00
Peter Stephenson
5d0ef3096c 12501: Andrej: use zgetenv, zputenv 2000-08-03 13:10:11 +00:00
Peter Stephenson
4a5882eeb3 12411, 12419: Andrej: environment handling with fewer assumptions 2000-07-28 09:10:35 +00:00
Peter Stephenson
d13f6631d7 12247: internal hostnam variable removed in favour of $HOST 2000-07-13 17:06:19 +00:00
Oliver Kiddle
708dc69d38 AIX dependency fixes 2000-07-04 15:04:17 +00:00
Peter Stephenson
a7f0716ddb 12138: setting arrays in math context 2000-07-03 10:10:07 +00:00
Bart Schaefer
d38f54a928 12112: Don't make namedirs out of hash elements. 2000-06-28 17:10:05 +00:00
Peter Stephenson
055d961f84 11867: restrict typeset -H application 2000-06-12 09:27:09 +00:00
Peter Stephenson
6b87e6fda3 11838: typeset -H 2000-06-09 15:37:05 +00:00
Oliver Kiddle
96e53995c9 AIX dependency fix 2000-06-05 19:54:03 +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
Wayne Davison
6e1d59eb2b Finish the job started in my last patch. 2000-06-01 20:54:59 +00:00
Wayne Davison
4fddbb8f5c Made $array[0,0] work just like $array[0]. 2000-06-01 20:52:26 +00:00
Peter Stephenson
3f8f279294 11696: local readonly specials bugs fixes 2000-05-31 21:58:32 +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
Sven Wischnowsky
22c3204495 add -[ak] options to compadd (11533) 2000-05-23 14:23:16 +00:00
Peter Stephenson
8d17d2f02d 11467: [#<base>] syntax for output base
zsh-users/3071: compdump tweak to avoid // in path
2000-05-19 18:22:50 +00:00
Oliver Kiddle
548fe00d96 Remove return value from uniqarray which caused a compile error on IRIX 2000-05-10 23:54:26 +00:00
Peter Stephenson
ade3663216 11314: fix for typeset -U not updating value in environment 2000-05-10 19:15:58 +00:00
Sven Wischnowsky
ad31ce0db8 renamed parameters for menu selection to MENUSELECT, MENUPROMPT and MENUSCROLL; no special value for LISTMAX to turn on list scrolling, this is done by setting LISTPROMPT now; default values for LISTPROMPT and MENUPROMPT when set but empty (10959) 2000-04-27 08:21:10 +00:00
Sven Wischnowsky
30a98cc4d6 scrolling in completion lists and menu-selection, version1 2000-04-17 11:17:10 +00:00
Peter Stephenson
6372332a92 10743: fix replenv() of imported special parameters 2000-04-13 17:57:45 +00:00
Peter Stephenson
cf92384eac 10738: pws: local parameters can be exported 2000-04-13 14:22:47 +00:00
Sven Wischnowsky
8488dcb806 keep association elements from being exported 2000-04-04 12:02:04 +00:00
Peter Stephenson
4852545255 Updated from list as far as 10376 2000-04-01 20:49:47 +00:00
Tanaka Akira
e74702b467 Initial revision 1999-04-15 18:05:38 +00:00