1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 17:31:33 +02:00
Commit Graph

742 Commits

Author SHA1 Message Date
Bart Schaefer
ecbc4e4457 Silence compiler warnings. 2001-05-28 17:39:00 +00:00
Sven Wischnowsky
1d5fbf228d fix for cursor positioning with that -y option of compctl (display strings) (14507) 2001-05-28 11:42:00 +00:00
Sven Wischnowsky
5fe1924155 make the zprof wrapper function be more careful, avoiding almost all of the code when the module is being unloaded (14504) 2001-05-28 09:23:39 +00:00
Sven Wischnowsky
96fd8a11d3 another attempt at fixing the job problem from 14327; make execpline() reset list_pipe_job to zero if it would be set for a job started in the background (14503) 2001-05-28 09:00:21 +00:00
Wayne Davison
f18dca3266 Fixed acceptandinfernexthistory() to work when called repeatedly.
Also changed it to not accept the line if the infer fails.  Ignore
transient edits in the history when searching for an inference and
grabbing the next line (affecting acceptandinfernexthistory(),
infernexthistory(), and acceptlineanddownhistory()).
2001-05-26 20:57:16 +00:00
Oliver Kiddle
b5ad8bf0de add mod_export in a couple of places where it was missing 2001-05-23 08:53:11 +00:00
Clint Adams
f670ec692f 14419: glibc 2.2.3 rlimits enum 2001-05-21 17:02:59 +00:00
Andrey Borzenkov
7270c28a39 14401: workaround for script execution under Cygwin 2001-05-20 10:59:27 +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
Wayne Davison
f99520aeb0 Don't merge a HIST_TMPSTORE entry with a previous "duplicate" line.
Also, don't call addhistnode() on a HIST_TMPSTORE entry.
2001-05-19 09:22:10 +00:00
Wayne Davison
7e17db1fdc The function addhistnode() is no longer called for a HIST_TMPSTORE
entry, so I removed the checking for that flag.  Also, freehistdata()
now avoids calling removehashnode() on a HIST_TMPSTORE entry.
2001-05-19 09:22:07 +00:00
Bart Schaefer
90a1316345 Fix re-set of integer special params after unset. 2001-05-19 00:31:22 +00:00
Peter Stephenson
4544933427 fix zmodload -uf for not-yet-loaded function 2001-05-18 15:23:08 +00:00
Sven Wischnowsky
11e3147466 try to make ${(e)..} work for complicated parameter expansions in the value; this means: keep Qstring tokens unchanged if they are inside double quotes and tokenizing patterns in parameter expansions (14381) 2001-05-18 12:39:24 +00:00
Bart Schaefer
071b084ea8 Signal queuing tweak. 2001-05-17 15:56:12 +00:00
Sven Wischnowsky
8e20d1da63 more fixage for expansion: just convert the command line to the original when expansion shouldn't or couldn't do something sensible on the line (14359) 2001-05-16 10:27:06 +00:00
Wayne Davison
4a28d81c47 Added HIST_TMPSTORE define. 2001-05-15 16:32:28 +00:00
Wayne Davison
9f9ced8c62 + Changed histreduceblanks() to preserve spaces at the start of the
line when HISTIGNORESPACE is set.
+ Flag a history entry with HIST_TMPSTORE when should_ignore_line()
  returns true (instead of dropping it from the history immediately).
+ Get rid of old HIST_TMPSTORE entries when a new command is entered.
+ The hist-file-reading code now handles destroying a foreign
  duplicate (when marked as duplicate by addhistnode()).
2001-05-15 16:32:25 +00:00
Wayne Davison
eb71464b09 Changed addhistnode() to not displace an already-hashed command with
one that is marked HIST_TMPSTORE.  Also changed the function to not
ever destroy the entry we're currently adding (the caller now destroys
the newly-added entry, if it so desires).
2001-05-15 16:32:22 +00:00
Sven Wischnowsky
dc9d78c659 (14350) 2001-05-15 13:52:22 +00:00
Peter Stephenson
231f077a75 14348: fix globalexport with typeset -g 2001-05-15 10:02:34 +00:00
Sven Wischnowsky
a2a1c2411a calculate the length of the region to map (for mapped zwc files) correctly, including the offset-page-boundary-adjustment (14346) 2001-05-15 08:38:59 +00:00
Sven Wischnowsky
015120a287 set list_pipe_job only for real pipelines (14327) 2001-05-14 08:51:59 +00:00
Peter Stephenson
7f7e58935b 14314: writing const variable under cygwin 2001-05-11 12:59:50 +00:00
Wayne Davison
6066bd7eeb Fixed an obscure local-history bug that could make the "history"
command output something that was slightly wrong. (14304)
2001-05-10 23:06:54 +00:00
Andrey Borzenkov
69f010c8c9 users/3872: rename inet_* routines to avoid clash with Solaris 7 headers. 2001-05-10 16:57:28 +00:00
Sven Wischnowsky
2c38f5bba1 barf if a empty string is given as one of the separators for _values (14293) 2001-05-10 08:52:30 +00:00
Peter Stephenson
b6a44fae76 Back off 14140 (tokenize comma) 2001-05-09 09:00:19 +00:00
Sven Wischnowsky
83032fe876 add -S option to specify separator between values and their arguments; make _values add the value-separator as a suffix for most types of actions (14257) 2001-05-08 12:24:21 +00:00
Peter Stephenson
8ff0785863 Fixes from Andrej for zpty on cygwin 2001-05-08 10:26:58 +00:00
Sven Wischnowsky
a3e01003c8 print space/backspace when reacing the last column while printing descriptions and the like to avoid a cursor positioning bug depending on the kind of terminal (autowrap) (14251) 2001-05-08 08:14:33 +00:00
Bart Schaefer
5aa1c04fd6 Prevent "no multi-letter values" error on values of '\:' and '' in compvalues(). 2001-05-06 22:37:51 +00:00
Sven Wischnowsky
1e79a3424f 14214 2001-05-03 07:13:37 +00:00
Peter Stephenson
6a0c6b1b27 Make X{$~foo}Y where $foo contains commas behave as expected 2001-05-02 09:53:32 +00:00
Sven Wischnowsky
ca29f22a86 remove quotes when looking at arguments in comparguments (14198) 2001-05-02 09:23:07 +00:00
Peter Stephenson
0b56c15853 Use BDIGBUFSIZE in two other places 2001-05-01 09:46:09 +00:00
Andrey Borzenkov
cd5e39ef50 Bart 14144: fix compilation problem on current Cygwin 1.3.1 (macros were
changed to external variables and cannot be used to initialize static array).
Modified by me __CYGWIN -> __CYGWIN__
2001-04-30 10:40:50 +00:00
Bart Schaefer
ba9541fb5d BDIGBUFSIZE for binary conversions. 2001-04-28 17:38:00 +00:00
Clint Adams
ee404f2cff 14125: remove static incleanup flag because it is unused 2001-04-26 15:54:06 +00:00
Clint Adams
6dc04f1329 14123: don't include curses.h in termcap.c if term.h doesn't need it 2001-04-26 15:48:14 +00:00
Bart Schaefer
17539b1e2c Another HAVE_TERM* compilation tweak. 2001-04-26 14:35:53 +00:00
Sven Wischnowsky
aa99b19c08 rename -W option to -w, add new -W option which makes _arguments complete options even after options that get their argument in the same word; new _guard function for conditionally displaying messages (14105) 2001-04-26 12:13:36 +00:00
Sven Wischnowsky
f18218f2ad fix a sizeof() to strlen() 2001-04-25 09:05:10 +00:00
Bart Schaefer
8baeec4637 Fix term* linkage _again_. 2001-04-24 06:48:54 +00:00
Bart Schaefer
e2e9121893 Subscripting optimization and error checking. 2001-04-24 05:45:16 +00:00
Andrey Borzenkov
7c45854508 14077: revert clint's build patches on 19.04.2001 2001-04-23 19:59:03 +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
6bf2ff1717 More term*.h inclusion un-confusion. 2001-04-21 21:41:28 +00:00
Bart Schaefer
219674c48b More parameter/subscript cleanup. 2001-04-21 18:49:12 +00:00
Clint Adams
ed28d19b96 14055: include termio.h in termcap.c for the benefit of Solaris 8 2001-04-20 14:22:23 +00:00
Clint Adams
92902608e4 14053: add $termcap special parameter 2001-04-20 13:31:24 +00:00
Bart Schaefer
220ad9aa23 Parameter repairs, mostly for subscripting. 2001-04-20 06:13:35 +00:00
Peter Stephenson
95733c61c2 bindkey -rp removes prefix bindings; bindkey -p bugfix 2001-04-19 19:43:45 +00:00
Clint Adams
3b09ee496a 14041: reduce unnecessary linking for modules 2001-04-19 17:55:02 +00:00
Clint Adams
28fe9e6027 14039: simulate old linking behavior 2001-04-19 17:00:52 +00:00
Clint Adams
a43aa761cd 14033: reduce unnecessary library linking for modules and main binary 2001-04-19 14:45:41 +00:00
Sven Wischnowsky
e4e2e4f916 use the right path patterns for completion functions 2001-04-19 10:39:45 +00:00
Clint Adams
60da953ac7 14018: honor STRIPFLAGS when installing modules 2001-04-19 01:44:29 +00:00
Sven Wischnowsky
a924eeba12 only use the exclusion lists of options that are not currently being completed, but keep options from being completed more than once (13999) 2001-04-17 09:52:32 +00:00
Wayne Davison
0c2ae111df Don't define gethostbyname2() as static, since it can clash with the
system header files on a system that provides the prototype but not
the object.
2001-04-13 16:54:58 +00:00
Bart Schaefer
02e0363afa Fix term*.h header file collisions. 2001-04-13 16:29:28 +00:00
Bart Schaefer
34f65c6f32 Fiddle with <term.h> vs. <termcap.h> inclusion. 2001-04-12 17:11:39 +00:00
Clint Adams
25bcf86626 13961: add ifdef for tputs in term.h in prototypes.h 2001-04-12 14:56:15 +00:00
Clint Adams
43cd922cd8 13955: boolnames et al., not boolcodes 2001-04-12 04:08:07 +00:00
Clint Adams
e05ca62a9c 13953: use curses capability inventories instead of hardcoding and presume
that they are terminfo
2001-04-12 02:49:14 +00:00
Clint Adams
15ff54f27a 13951: working ${(k)terminfo} and ${(kv)terminfo} 2001-04-12 00:32:29 +00:00
Wayne Davison
e3e22f715c Fixed a bug where the call to function "preexec" might pass the wrong
history line.  Added two extra args to preexec to give the user more
info on the command that is about to be executed.
2001-04-11 05:26:26 +00:00
Peter Stephenson
ca3f1a3b79 Mapfile fix from Bart: dupstring parameter name to avoid static buffer overuse 2001-04-11 00:09:05 +00:00
Wayne Davison
6d4a1bbc5c Slightly optimized should_ignore_line() by using getjobtext() rather
than getpermtext().
2001-04-10 18:03:58 +00:00
Wayne Davison
6ee3df56d0 Bart's change makes terminfo_nam[] needed when HAVE_TIGETSTR is not
defined.
2001-04-09 20:18:40 +00:00
Wayne Davison
6726606398 Silence several warnings when HAVE_TIGETSTR is not defined. 2001-04-09 20:11:57 +00:00
Bart Schaefer
a3a59f1f37 Fixes for 13922. 2001-04-09 17:26:57 +00:00
Bart Schaefer
5d0231e105 Make termcap and terminfo modules always loadable. 2001-04-09 15:58:54 +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
Sven Wischnowsky
6150ef8696 (13892) fixes for fpaths and completion matching 2001-04-03 11:25:11 +00:00
Sven Wischnowsky
956ef612e2 cleanup after function move 2001-04-02 14:36:36 +00:00
Sven Wischnowsky
3d7263ff67 after-move cleanup 2001-04-02 13:04:04 +00:00
Sven Wischnowsky
c05a2d2093 make _arguments -S' still complete long options after --<TAB>'; fix for cursor positioning with partial word match specs (13868) 2001-04-02 09:05:47 +00:00
Peter Stephenson
261193a5b7 Fix problem with traps not runing if shell exec'd final command 2001-03-30 16:51:54 +00:00
Bart Schaefer
30697061f2 Refuse to setopt noexec when interactive 2001-03-30 16:20:03 +00:00
Peter Stephenson
44ff671fe5 Don't assume we can change the string for the HOST parameter when used in
a prompt
2001-03-29 12:06:23 +00:00
Peter Stephenson
3278ad8490 disallow changing of parameter type
for autoloadable parameter (bug 219459 on Sourceforge).
2001-03-29 10:52:15 +00:00
Peter Stephenson
19a8356ff1 Add `bindkey -p' 2001-03-28 16:54:21 +00:00
Sven Wischnowsky
6d72dca54f try to make _h_c_w smarter at the beginning and end of the list; avoid list-beeping if the old completion list is re-used (3752) 2001-03-27 09:14:50 +00:00
Clint Adams
e7a25bf841 13777: maxfilelocks limit for glibc2.2 2001-03-26 15:59:37 +00:00
Sven Wischnowsky
5687662ec1 handle colons in xor lists (13770) 2001-03-26 10:02:23 +00:00
Sven Wischnowsky
4e994fddce avoid adding empty strings to the kill ring (13767) 2001-03-26 08:58:33 +00:00
Sven Wischnowsky
db0e5c2d8b skip redirections in execpline2() when looking for the command code (13706) 2001-03-22 12:13:15 +00:00
Sven Wischnowsky
873671e368 fix misaligned percent output of zprof (13673) 2001-03-20 09:35:47 +00:00
Sven Wischnowsky
d83665b7cf fix default colour for directories (3674) 2001-03-15 09:55:32 +00:00
Peter Stephenson
2d442fff86 13633: don't use termcap cursor keys if single key which is already bound 2001-03-14 12:20:17 +00:00
Peter Stephenson
c925a15aa7 13611, 13615: Bind cursor keys using termcap, including in viins. 2001-03-13 15:32:41 +00:00
Sven Wischnowsky
33ec971c33 two optimisations 2001-03-07 12:58:40 +00:00
Sven Wischnowsky
684c9eebe5 make the parser use real memory for the ecbuf to avoid having hrealloc() throw away lots of memory (13576) 2001-03-06 13:00:40 +00:00
Sven Wischnowsky
c8f2e51007 another fix for completion matching, CLF_MISS in the wrong cline struct (13575) 2001-03-06 11:31:20 +00:00
Sven Wischnowsky
eb41692bc5 fix for matching control, try harder to merge separately completed parts to avoid losing user-typed characters (13565) 2001-03-05 10:48:10 +00:00
Sven Wischnowsky
061c1ce912 add `aliases' option to be able to disable alias expansion (13554) 2001-02-28 09:12:54 +00:00
Sven Wischnowsky
85de1eae0b properly restore noaliases in bufferwords() (13530) 2001-02-26 09:43:08 +00:00
Sven Wischnowsky
fbe44ac838 more (|un)queue_signals(), this time for the job control builtins (13509) 2001-02-20 09:16:46 +00:00
Peter Stephenson
cd02c345af 13280: NewImproved handling of colon modifiers w.r.t. paths 2001-02-19 10:26:52 +00:00
Peter Stephenson
441648bf5d ?## fix from 13497 and site name change from Geoff 2001-02-18 00:58:07 +00:00
Bart Schaefer
af2ae90d25 Fix "${=foo=$@}". 2001-02-16 17:16:13 +00:00
Bart Schaefer
04e1ef5b68 Partial sh emulation fixs for ${1+"$@"} and "${foo=$@}". 2001-02-16 08:43:46 +00:00
Clint Adams
74ee4ba61d unposted: remove unused variable declaration 2001-02-14 23:37:39 +00:00
Clint Adams
e846a825fe 13478: whence shouldn't segfault on an empty path component 2001-02-14 23:36:23 +00:00
Andrey Borzenkov
fa6bab3083 13431: better check for shared libraries. 2001-02-13 14:35:07 +00:00
Sven Wischnowsky
326d682510 try to make the -t option of zpty smarter (13462) 2001-02-13 13:14:45 +00:00
Andrey Borzenkov
7194a50300 unposted: fix patterns previous patch 2001-02-02 08:44:53 +00:00
Andrey Borzenkov
79b9ccd285 13412: avoid duplicates in subdirecory list for recursive build 2001-01-31 10:08:14 +00:00
Andrey Borzenkov
e28d948e92 13389: normalize path in cd_do_chdir on Cygwin to get rid of DOS names 2001-01-26 12:47:37 +00:00
Sven Wischnowsky
193846af84 fix for mergin two CLF_MID entries in cline lists (with two equal prefixes it thought there were characters missing) (13388) 2001-01-25 15:16:27 +00:00
Sven Wischnowsky
b6fb83e4ff make signal queueing variables be exported to modules (13384) 2001-01-25 09:20:12 +00:00
Sven Wischnowsky
bdaa4f4c05 *** empty log message *** 2001-01-22 12:03:55 +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
c06782d95b *** empty log message *** 2001-01-18 14:41:40 +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
Sven Wischnowsky
052316fea3 fix for ol' compctl when completing hash keys (13364) 2001-01-16 12:39:21 +00:00
Sven Wischnowsky
4a39b5d9c5 two more fixes for completion matching and reporting interesting positions (13349) 2001-01-15 10:44:14 +00:00
Sven Wischnowsky
a11115ecee fix for 13339 (report each position only once) and fixlet for matching: a case where missing characters weren't remembered (13343) 2001-01-12 13:50:13 +00:00
Sven Wischnowsky
2a78c24842 *** empty log message *** 2001-01-11 10:06:40 +00:00
Sven Wischnowsky
9af83c6c2a fix cursor positioning with partial-word match specs using `**' (13336) 2001-01-10 09:24:45 +00:00
Sven Wischnowsky
4a376d7250 fix for listpacked for matches as long as screen is wide (minus added spaces); more security when freeing matches: make sure current menu match pointer isn't used afterwards (13331) 2001-01-08 15:25:01 +00:00
Bart Schaefer
bf23eb259c Back out 13285. 2000-12-18 02:14:57 +00:00
Clint Adams
ef13567352 13288: cast pointers for arg 2 of ztrapread/write 2000-12-17 21:47:54 +00:00
Clint Adams
fe8a55b640 13285: use vi-up and -down in vicmd mode 2000-12-16 16:25:41 +00:00
Peter Stephenson
f39af3954f Rename waitjob() to zwaitjob(). 2000-12-06 12:22:39 +00:00
Clint Adams
9ff637aea0 13242: don't segfault on $terminfo[nonexistentcap] 2000-12-06 01:16:12 +00:00
Peter Stephenson
bd588f625a terminfo tweaks 2000-12-05 11:00:08 +00:00
Peter Stephenson
0c96a1b963 Joel Smith: 13230: avoid name clashes with Linux kernel 2000-12-05 10:34:23 +00:00
Clint Adams
5d7a9e949b 13227: terminfo module fixes 2000-12-05 00:28:40 +00:00
Peter Stephenson
cfe1038ff1 Fix --enable-function-subdirs for new config.modules system. 2000-12-04 19:21:05 +00:00
Clint Adams
683cf32360 13216: docs for tc/ti modules 2000-12-03 23:32:09 +00:00
Clint Adams
13b93a5faa 13215: echotc, echoti, terminfo 2000-12-03 20:53:07 +00:00
Peter Stephenson
a59b51006b Function installation information now in config.modules 2000-11-30 18:36:21 +00:00
Sven Wischnowsky
4b1191e209 avoid compiler warning 2000-11-29 08:04:28 +00:00
Peter Stephenson
49a1ad7516 13194: change in module configuration system 2000-11-26 20:01:01 +00:00
Bart Schaefer
ad5f9584c1 ALL_EXPORT tweaks. 2000-11-25 23:50:01 +00:00
Sven Wischnowsky
2d77bd0d58 don't be sure that read-ahead doesn't contains nuls (13163) 2000-11-14 11:51:25 +00:00
Sven Wischnowsky
bbb0d75e25 use unmetafy() to allow writing special characters into a pty (13156) 2000-11-13 10:22:40 +00:00
Peter Stephenson
c292a3ae50 Sven: 13108: Handle traps synchronously
pws: 13109, 13111: clear up zle display when output produced in trap.
2000-11-11 19:50:27 +00:00
Bart Schaefer
0ce5e0f303 Try blocking read() in read_poll() only if select() returns error (or
doesn't exist).
2000-11-08 17:09:15 +00:00
Sven Wischnowsky
468e3b59dc *** empty log message *** 2000-11-08 15:27:54 +00:00
Bart Schaefer
12ca8495d4 Tweak interactiveness of cloned shell. 2000-11-06 06:41:59 +00:00
Bart Schaefer
49fc6b036c Make zpty more like eval. 2000-11-06 06:24:27 +00:00
Bart Schaefer
dbc0aebcd4 Assorted read_poll() and zpty cleanup. 2000-11-05 09:27:08 +00:00
Bart Schaefer
b4f76c13fd Better streaming behavior from `zpty -r', plus other cleanup. 2000-11-05 02:05:17 +00:00
Sven Wischnowsky
da9b5bb81a show current/previous job in $jobstates (3503) 2000-11-02 08:12:44 +00:00
Sven Wischnowsky
fb6fd42e00 make assignament to $nameddirs behave like hash -d (13095) 2000-10-30 08:19:44 +00:00
Sven Wischnowsky
6db6cde964 re-display list for cleanup only if we were in menu selection (13084) 2000-10-25 10:52:25 +00:00
Sven Wischnowsky
9e44b5ea29 add a counter for invalidatelist() to allow finding out if there is a new list (13082) 2000-10-25 08:18:43 +00:00
Sven Wischnowsky
ead3cee30d avoid printing file type characters in completion lists for matches ending in a slash (13071) 2000-10-24 07:50:24 +00:00
Bart Schaefer
de595fbc90 Fix "vared -e". 2000-10-22 02:34:16 +00:00
Bart Schaefer
9bf7fb75c5 Fix "vared -h" in shell scripts. 2000-10-21 03:15:36 +00:00
Sven Wischnowsky
16d7e31ae8 make non-blocking IO on ptys work again; add -t option to test if command is still alive (13035) 2000-10-19 08:46:54 +00:00
Wayne Davison
4be4c7575c Don't call histreduceblanks() if the line didn't parse right. 2000-10-19 07:12:26 +00:00
Sven Wischnowsky
8ec18a622c *** empty log message *** 2000-10-17 14:04:13 +00:00
Sven Wischnowsky
bb1fabf3ff two completion matching fixes; wrong (path) prefix matching (removed path components) and reverse order of sub-strings in match-strings (12995) 2000-10-13 08:44:57 +00:00
Sven Wischnowsky
adf7965951 add _all_matcher completer and supporting C-code for adding a special match representing all other matches; remove completions style from _expand(|_word) (12960) 2000-10-11 12:19:23 +00:00
Sven Wischnowsky
5d8adbee07 make user defined completion widgets leave menu selection without accepting the currently selected match (12959) 2000-10-11 10:57:40 +00:00
Sven Wischnowsky
bd4490b966 *** empty log message *** 2000-10-10 13:37:30 +00:00
Sven Wischnowsky
7bb0338a78 follow-up to 12930, make it first try exact character matches, but enable it to go back to try match specs if it fails after accepting such character matches (12941) 2000-10-10 08:36:32 +00:00
Sven Wischnowsky
3f63f13610 prefer exact character matches over match specs (so that nom' can match nomatch') (12930) 2000-10-09 12:50:20 +00:00
Sven Wischnowsky
a98a3049d9 don't return invalid Eprog after parse error (12898) 2000-10-05 09:31:21 +00:00
Sven Wischnowsky
a93e62c630 comparguments: don't use rest-argument-specification if it was inactivated (12897) 2000-10-05 08:55:35 +00:00
Sven Wischnowsky
6c4dfc3228 don't stop parsing too early when completing inside a command substitution (12885) 2000-10-04 13:54:00 +00:00
Sven Wischnowsky
213a453d08 don't forget a displayed list when starting menu completion (12884) 2000-10-04 13:24:45 +00:00
Bart Schaefer
5ca1864f94 Change some zerr to zwarn for consistency. 2000-10-02 18:40:35 +00:00
Clint Adams
8e628ac624 unposted: remove unused variable declaration from ztat() 2000-10-01 23:43:55 +00:00
Clint Adams
f42bd3a3f9 12863: remove ztrdupstrip, use VARARR in ztat 2000-09-27 19:31:44 +00:00
Bart Schaefer
74ff6d6dbe Tweak to STTY fix. 2000-09-26 15:08:35 +00:00
Bart Schaefer
756f8186f2 Fix STTY parameter. 2000-09-25 16:57:05 +00:00
Clint Adams
4225207e4c 12860: don't limit size of pwd in job table 2000-09-22 22:28:05 +00:00
Clint Adams
2a625db39d 12859: dynamically-allocate buffer in ztat(), ztrdupstring() 2000-09-22 22:16:15 +00:00
Clint Adams
9f012ce7c9 12847: dynamically allocate buf and z in bin_whence() 2000-09-19 16:47:38 +00:00
Clint Adams
946085efa5 12846: moved simple string manipulation functions to string.c 2000-09-19 15:54:30 +00:00
Clint Adams
3ce3caeec6 12845: dynamically allocate pbuf in domove() 2000-09-19 15:26:08 +00:00
Clint Adams
7c7e1f97cb 12836: bin_ln now independent of PATH_MAX 2000-09-18 17:29:07 +00:00
Bart Schaefer
0d96dc0879 Back out 12814. 2000-09-18 14:22:48 +00:00
Bart Schaefer
fcaa17f396 Improve upon some of the PATH_MAX changes. 2000-09-18 06:50:54 +00:00
Clint Adams
25747f7d59 12828: dynamically allocate 'dir' in mailstat 2000-09-18 04:11:27 +00:00
Clint Adams
64d591dbac 12827: dynamically allocate 'file' in mailstat 2000-09-18 03:52:59 +00:00
Clint Adams
2d9e68f3cb unposted: define mailstat as a macro if MAILDIR_SUPPORT is undefined 2000-09-18 03:36:22 +00:00
Clint Adams
04bf2c822f 12823: use zsh heap in lieu of perm. heap in bin_dot 2000-09-18 03:31:31 +00:00
Clint Adams
2abf9db381 12821: bin_dot is now independent of PATH_MAX 2000-09-17 16:24:05 +00:00
Bart Schaefer
bd7969bfa5 "typeset +m ..." and "typeset +g -m ..." 2000-09-17 05:38:36 +00:00
Clint Adams
abd9b6d820 12818: use tricat() in lieu of zasprintf 2000-09-17 04:28:50 +00:00
Clint Adams
2742cb14ce 12814: zasprintf 2000-09-16 18:57:45 +00:00
Bart Schaefer
a12ff424b6 12804: Fix "typeset -m". 2000-09-14 15:54:54 +00:00
Andrey Borzenkov
5c7a14857a 12779: remove sinix special case. Too lazy to add prototype check for
gettimeofday as it is not needed with currently supported versions of
ReliantUNIX
2000-09-08 12:51:10 +00:00
Peter Stephenson
88b886e603 12741: outputradix was stomped on by nested matheval 2000-09-04 15:52:16 +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
942009eb9f 12719: quoting arrays in vared with real backslashes 2000-08-29 20:27:47 +00:00
Sven Wischnowsky
f4f38507e5 fix for unbalanced calls to {push,pop}heap in docomplete()/get_comp_string() (12717) 2000-08-29 08:20:59 +00:00
Sven Wischnowsky
a8c7d3c0ee fix for `function' without names (12710) 2000-08-28 07:04:34 +00:00
Peter Stephenson
f008eb8531 Src/.cvsignore fix for Windows resources and icon 2000-08-16 13:34:54 +00:00
Peter Stephenson
c0ab630768 pws/Andrej: 12594, 12661: Windows resources and icon 2000-08-16 13:23:37 +00:00
Peter Stephenson
505a3e3a30 12658: cscope ignorance 2000-08-16 10:44:08 +00:00
Sven Wischnowsky
5821e7ef16 make $modules report aliases correctly (12654) 2000-08-16 09:25:39 +00:00
Bart Schaefer
934dd1c694 12652: Variable scoping problem. 2000-08-15 16:53:08 +00:00
Bart Schaefer
c88d3a57cf Andrej, 12623: Fix dynamic linking for cygwin. 2000-08-15 05:13:40 +00:00
Bart Schaefer
7a38b670a7 12621: Avoid bad free. 2000-08-14 16:54:04 +00:00
Bart Schaefer
ba14d4e1ee Andrej, 12620: Fix up mmap tests. 2000-08-14 16:46:18 +00:00
Sven Wischnowsky
b97dd45909 missing mod_export (12613) 2000-08-14 12:53:17 +00:00
Sven Wischnowsky
90c6d73b56 make all builtins in computil test if they were called from a completion function (12610) 2000-08-14 08:16:45 +00:00
Bart Schaefer
135b181aa6 12604: Remove calls to zpathmax(), minor fixes to zopenmax(). 2000-08-14 07:30:28 +00:00
Sven Wischnowsky
4f13bbd654 fixes for completion in math contexts (12592) 2000-08-11 12:19:35 +00:00
Peter Stephenson
f6ecbb7f4d 12581: C_BASES option 2000-08-10 16:19:11 +00:00
Clint Adams
cb89544d32 12568: check sysconf(_SC_OPEN_MAX) if available instead of OPEN_MAX/NOFILES. 2000-08-08 14:57:02 +00:00
Sven Wischnowsky
3bca186819 handle the right option in strings with multiple single-letter options (and correctly handle its argument) (12567) 2000-08-08 12:11:42 +00:00
Sven Wischnowsky
5c90cf1a51 more fixes for completion of special characters (quoting) (12565) 2000-08-08 10:32:47 +00:00
Peter Stephenson
40e4f4c40b unposted: Remove Src/Aliases stuff and remove aliased modules from xmods.conf 2000-08-08 09:28:26 +00:00
Peter Stephenson
c66544a86b 12561: Completion/Builtins/_zmodload, Doc/Zsh/builtins.yo,
Src/builtin.c, Src/module.c, Src/zsh.h: aliases for modules
done internally via `zmodload -[AR]'
2000-08-08 09:13:36 +00:00
Bart Schaefer
72f4ec6b76 users/3358: Zero shout when closing SHTTY in subshells. 2000-08-08 02:38:35 +00:00
Peter Stephenson
a021f6329b 12555: fix static linking on cygwin 2000-08-07 17:17:05 +00:00
Bart Schaefer
1d2948c2da 12549: Typo in 12547. 2000-08-05 09:51:19 +00:00
Bart Schaefer
1859bb2d0a 12548: Tweak 12547. 2000-08-05 06:52:14 +00:00
Bart Schaefer
1ff8518b16 12547: Handle ENOENT and ENOTDIR in zpathmax(). 2000-08-05 05:59:53 +00:00
Clint Adams
45ffc3b6c8 12541: zrealpath wrapper around realpath() 2000-08-05 01:30:19 +00:00
Clint Adams
971f7c0a19 12533: pathconf() without tail in mkdir 2000-08-04 14:58:05 +00:00
Sven Wischnowsky
8e740b7044 remove (wrong) test for linked-in modules in require_module() (12525) 2000-08-04 07:53:25 +00:00
Bart Schaefer
22cbf1b271 15216: Rewrite pathconf() support. 2000-08-04 07:09:12 +00:00
Sven Wischnowsky
55b07cb525 quoting 2000-08-03 13:35:43 +00:00
Peter Stephenson
5d0ef3096c 12501: Andrej: use zgetenv, zputenv 2000-08-03 13:10:11 +00:00
Sven Wischnowsky
a23d39ce38 make binding of ^D be used in first column if ignoreeof is set and ^D is bound to a shell function widget (12494) 2000-08-03 07:51:53 +00:00
Peter Stephenson
4f1aa826f5 Andrej: Dynamic loading on cygwin 2000-08-02 18:01:51 +00:00
Clint Adams
de7b6730bc 12489: pathconf for unlimited fs 2000-08-02 14:20:41 +00:00
Clint Adams
30e35ee2ed 12472: limited pathconf support 2000-08-02 13:54:17 +00:00
Sven Wischnowsky
d109322359 remove tests for kshautoload (use zcompile -z); fix for setting scriptname for functions that redefine themselves 2000-08-01 08:27:18 +00:00
Sven Wischnowsky
9bc05a5aa5 isalpha() -> ialpha(); avoid a compiler warning (12439) 2000-07-31 08:12:16 +00:00
Andrew Main
84b04a8728 12436: Doc/Zsh/invoke.yo, Src/init.c: Make -b behave like
the csh -b, permitting more options to be stacked after it and
take effect.  Make -b take effect depending on SH_OPTION_LETTERS,
consistent with all the other single-letter options, rather than
having a clashing check of emulation type.
2000-07-30 19:18:13 +00:00
Andrew Main
9743c19d61 12434: Doc/Zsh/invoke.yo, Src/init.c, Src/options.c, Src/zsh.h,
Src/zsh.mdd: Allow options to be specified on the zsh command line
in the form of GNU-style long options.  Also handle --version
and --help.  Do not permit extra option letters to be stacked
after `-whatever-' (they used to be ignored).  Exit if the
command line specifies an option name that doesn't exist.
2000-07-30 17:03:52 +00:00
Bart Schaefer
b7c6421796 The `wait' builtin accepts only PIDs it can find in the job table. 2000-07-28 16:35:47 +00:00
Peter Stephenson
7697f6134f 12421: extra tab in Makemod.in.in 2000-07-28 10:13:25 +00:00
Peter Stephenson
4a5882eeb3 12411, 12419: Andrej: environment handling with fewer assumptions 2000-07-28 09:10:35 +00:00
Peter Stephenson
19b4ca246a 12415: fix bug in last patch when quoting metafied field separator. 2000-07-27 22:02:45 +00:00
Peter Stephenson
0aee5e1bb4 12414: vared quotes separators when editing arrays 2000-07-27 17:48:47 +00:00
Sven Wischnowsky
d3ceb5e0eb compdescribe shouldn't use the sets after failed initialisation 2000-07-27 08:32:02 +00:00
Bart Schaefer
f303f2ea63 Belatedly fold in 12162, to replace command subst with eval. 2000-07-26 09:16:13 +00:00
Sven Wischnowsky
6585bea1fb fix parsing of `time' without a command (12337) 2000-07-21 07:50:07 +00:00
Wayne Davison
c6a3c250c1 Renamed shouldIgnoreLine() to should_ignore_line(). 2000-07-20 17:00:19 +00:00
Wayne Davison
01ea5e83c5 Support "builtin" in the HIST_NO_STORE check. 2000-07-20 07:09:34 +00:00
Wayne Davison
1ad69e3d44 Removed remhist() and HA_JUNKED, added an Eprog arg to hend(), and
added the shouldIgnoreLine() function that hend() now calls to figure
out if it needs to save the line or not.
2000-07-19 21:12:06 +00:00
Wayne Davison
90fdda1c33 Call hend() with a NULL arg. 2000-07-19 21:10:18 +00:00