1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 09:21:19 +02:00
Commit Graph

459 Commits

Author SHA1 Message Date
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
Wayne Davison
8740d0b407 Pass the new Eprog argument to hend(). 2000-07-19 21:09:40 +00:00
Wayne Davison
495249342e Removed call to remhist(). 2000-07-19 20:43:51 +00:00
Wayne Davison
9e7b3f1d25 If an alias starts with a space, set aliasspaceflag to 1 instead of
calling remhist().
2000-07-19 20:42:37 +00:00
Wayne Davison
eaea5cc0db Define aliasspaceflag, and init it in parse_event(). 2000-07-19 20:40:18 +00:00
Sven Wischnowsky
e4c9131b83 a bit of security for a VARARR() (12314) 2000-07-19 14:04:57 +00:00
Sven Wischnowsky
67f16de104 don't let duplicate matches keep us from recognising exact matches if they produce the same string on the line (12297) 2000-07-18 08:37:14 +00:00
Wayne Davison
b50d754909 Changed several references to curhist into curline.histnum so that
they would work right even if we didn't store the current command
in the history.
2000-07-18 07:56:45 +00:00
Wayne Davison
b4c5de44f9 + Got rid of the spaceflag variable.
+ Make sure that the curline.histnum variable is accurate at the end
  of our history processing, even if we read in some foreign history
  and/or if we replaced the prior line because it was a duplicate of
  the current one.  This enables the history (fc -l) command to work
  properly, even if the current command was HIST_NO_SPACE-ed away.
+ Don't allow remhist() to remove the last line in the history if we
  didn't store the current command.
2000-07-18 07:55:13 +00:00
Wayne Davison
2e96c8f074 Removed the spaceflag variable. 2000-07-18 07:49:16 +00:00
Sven Wischnowsky
d666896fa3 don't treat non-option arguments as options (12266) 2000-07-17 08:05:56 +00:00
Wayne Davison
656bce6bf5 Fix the gethistent() function and enhanced the reliability of the
SHARE_HISTORY option.
2000-07-17 02:07:23 +00:00
Wayne Davison
2b602a93e6 + Needed to call unmeta() in a few spots that used the HISTFILE name.
+ The non-HAVE_LINK code in lockhistfile() was broken in a number of ways.
+ Added an extra unlink() call to the HAVE_LINK code in lockhistfile()
  since (Linix at least says that) O_EXCL over NFS is broken.
2000-07-16 20:12:19 +00:00
Peter Stephenson
d13f6631d7 12247: internal hostnam variable removed in favour of $HOST 2000-07-13 17:06:19 +00:00
Sven Wischnowsky
0982f4ee64 condition parsing with (z) flag 2000-07-13 12:28:12 +00:00
Peter Stephenson
fa699be45d 12242: based on code from Fr. Br. George (George V Kouryachy):
use negative integers in prompt to count from other end of string
2000-07-13 11:20:46 +00:00
Sven Wischnowsky
b46926af8d fix for _arguments with single-letter options: recognize option-strings with multiple options; in _main_complete stop trying completers when one called _message, don't display warnings in such cases (12241) 2000-07-13 11:03:59 +00:00
Sven Wischnowsky
663ecf8e12 fix zle widget -n num with num>9 (12238) 2000-07-13 09:11:54 +00:00
Sven Wischnowsky
c3082d546e slightly improved (z) flag for parsing conditions; recognising glob flags in conditions still doesn't work (12237) 2000-07-13 08:42:10 +00:00
Sven Wischnowsky
d861bb9805 fix for (z) flag, don't take # as comment (12228) 2000-07-12 10:31:29 +00:00
Peter Stephenson
6c1110da32 12222: handle EINTR for multios helper processes 2000-07-11 17:21:26 +00:00
Peter Stephenson
32d2d47fd5 12220: message for missing autoload function 2000-07-11 16:43:26 +00:00
Bart Schaefer
14428d46e4 12193: Rather than replace @RLIMITS_INC_H@ with /dev/null on platforms where
getrlimit() is not found, replace it with nothing and append /dev/null to
the awk command in rlimits.mdd, so that we don't end up with a dependency of
rlimits.h on /dev/null (which can cause rlimits.h to be needlessly remade).
2000-07-07 17:12:17 +00:00
Oliver Kiddle
708dc69d38 AIX dependency fixes 2000-07-04 15:04:17 +00:00
Peter Stephenson
4ae42bb70e shut compiler up 2000-07-04 10:02:26 +00:00
Peter Stephenson
7f5828f0fb 12149: guard against undefined h_errno in zftp 2000-07-04 08:44:03 +00:00
Peter Stephenson
a7f0716ddb 12138: setting arrays in math context 2000-07-03 10:10:07 +00:00
Peter Stephenson
43f3a58597 12121: stopmsg in precmd 2000-07-03 08:48:22 +00:00
Sven Wischnowsky
0ddb4fb835 change format style with warnings tag, don't add descriptions as matches; make a-a-i-n-h in menu selection work even without matches (12134) 2000-07-03 08:05:27 +00:00
Sven Wischnowsky
0f398e9d2f fix for `foo () print bar' (function definitions without braces) (12125) 2000-06-29 12:08:25 +00:00
Sven Wischnowsky
806e8aa6af quote brace-strings (12113) 2000-06-29 06:59:00 +00:00
Bart Schaefer
d38f54a928 12112: Don't make namedirs out of hash elements. 2000-06-28 17:10:05 +00:00
Sven Wischnowsky
04bf39bf2e fix for list-colors handling (12107) 2000-06-28 13:59:21 +00:00
Sven Wischnowsky
0334b4df7c make a-a-i-n-h in menu selection work with one match; better undo behaviour for menu selection (12093) 2000-06-28 07:29:59 +00:00
Sven Wischnowsky
c8812bb0c8 Andrej: don't close slave if not yet open (12084) 2000-06-27 14:25:05 +00:00
Peter Stephenson
dcd94d3786 Andrej: 12081: zpty under cygwin 2000-06-27 08:42:27 +00:00
Peter Stephenson
756a2aba9c unposted: move poll_read 2000-06-26 21:27:07 +00:00
Peter Stephenson
acda8dc256 12073: read -t to test for available input before reading 2000-06-26 15:00:27 +00:00
Sven Wischnowsky
3ff5a17d8c remove compfmt; a bit of explanation for compfiles and compgroups (12068) 2000-06-26 08:36:42 +00:00
Sven Wischnowsky
470515922c typo in _history; missing free()s in zle_tricky.c (12067) 2000-06-26 08:20:33 +00:00
Sven Wischnowsky
4d656bfb0e missing allocation of list for option arguments (12066) 2000-06-26 08:10:33 +00:00
Peter Stephenson
abd757eac4 12044: read -A bug 2000-06-23 09:45:38 +00:00
Peter Stephenson
12fd5d0065 12040: typeset -r bug 2000-06-22 20:57:14 +00:00
Sven Wischnowsky
37b5477437 *** empty log message *** 2000-06-22 09:42:10 +00:00
Sven Wischnowsky
b9a533f382 allow subscripts for compadd -[ak]; new style for history completion; better list-colors handling (12029) 2000-06-22 08:42:36 +00:00
Oliver Kiddle
3ecad25c83 AIX dependency fix 2000-06-20 16:38:10 +00:00
Sven Wischnowsky
cde71bb1a5 make undo break out of menu selection if nothing to undo inside it (11992) 2000-06-19 14:51:06 +00:00
Sven Wischnowsky
c071087d1f _arguments: small fix for -s and new `!...' for things not to complete (but to understand) (11985) 2000-06-19 13:09:06 +00:00
Sven Wischnowsky
11ec14c3b3 more careful when optimising patterns in compfiles (11981) 2000-06-19 11:43:12 +00:00
Sven Wischnowsky
083befef2b new match spec characters bBeE, match only word/line not both (11977) 2000-06-19 10:48:21 +00:00
Sven Wischnowsky
a295e82c1e allow _expand to expand braces; better detection of braces to complete in C (11973) 2000-06-19 09:55:31 +00:00
Sven Wischnowsky
2769b19881 improve filename completion; use accept-exact for in-path completion; new fake style (11971) 2000-06-19 09:32:30 +00:00
Bart Schaefer
1add53c578 Fix parsing of := for magicequalsubst. 2000-06-17 19:51:51 +00:00
Bart Schaefer
af1339bacf 11956: Fix off-by-one error. 2000-06-17 17:05:53 +00:00
Sven Wischnowsky
1416862b63 allow completion after `a{{b,c},'; fix for closing brace re-insertion when completing from both ends (CLF_MID) (11939) 2000-06-16 07:52:05 +00:00
Sven Wischnowsky
0b892d4492 zstyle -e option; change math-styles to boolean ones; change defaults for _expand styles (11937) 2000-06-16 07:31:09 +00:00
Sven Wischnowsky
f04b4c74a7 more security in completion matching (11924) 2000-06-15 09:41:47 +00:00
Bart Schaefer
20789f5f92 Delete stray whitespace. 2000-06-15 08:48:42 +00:00
Sven Wischnowsky
dc102b8130 fix for _arguments, it took non-option strings as options (11910) 2000-06-15 08:09:09 +00:00
Peter Stephenson
a777f021a2 11906: yet two more saving trap bugs 2000-06-14 22:00:39 +00:00
Peter Stephenson
4611530c45 11901: two more trap saving bugs 2000-06-14 15:14:49 +00:00
Peter Stephenson
ae8c986107 11895: trap exit problem when exiting from function scope 2000-06-14 14:19:20 +00:00
Sven Wischnowsky
5f81bbc869 nix kaboom with `time time' (?) 2000-06-14 09:26:55 +00:00
Sven Wischnowsky
53f5cc9465 better fix for menu selection on dumb terminal (11885?) 2000-06-14 06:54:44 +00:00
Sven Wischnowsky
9310826027 make -A take a pattern as argument to match non-arguments; allow single-letter option strings to have multiple arguments; fix to allow option completion with multiple sets (?) 2000-06-13 12:14:32 +00:00
Sven Wischnowsky
a2417f6863 fix for longer capability strings (sunsite still not responding, sigh) 2000-06-13 10:49:18 +00:00
Peter Stephenson
65b3fdc4ab Make PRINT_* flags unique again 2000-06-13 09:13:29 +00:00
Sven Wischnowsky
cedd1006e6 fixes for calling compfiles, for completing words with special characters; make compfiles optimisations work with globcomplete and simple match (sunsite isn't responding) 2000-06-13 09:05:35 +00:00
Peter Stephenson
055d961f84 11867: restrict typeset -H application 2000-06-12 09:27:09 +00:00
Bart Schaefer
bae526275a Alexandre: Fix colored listings crash (article number attribution may be
wrong in ChangeLog).
2000-06-11 08:15:27 +00:00
Bart Schaefer
060ac27a17 11850: Fix crash in menu-select on dumb terminals. Also, a ChangeLog entry
for PWS's 11842.
2000-06-10 17:30:22 +00:00
Peter Stephenson
6b87e6fda3 11838: typeset -H 2000-06-09 15:37:05 +00:00
Clint Adams
716f5d4e39 11839: endtrapscope() null pointer dereference prevention 2000-06-09 14:40:54 +00:00
Sven Wischnowsky
4997db3470 fix for menu-completion when another completion came right after it (11836) 2000-06-09 11:14:34 +00:00
Sven Wischnowsky
427b4b74f2 improve _path_files, move some code into C, try to optimise glob patterns and immediately accept exact directory matches (11833) 2000-06-09 07:49:44 +00:00
Peter Stephenson
45d95dde48 11820: metafication of command line arguments 2000-06-08 09:59:00 +00:00
Sven Wischnowsky
a95d051826 more anchor matching fixes (11817) 2000-06-08 09:25:24 +00:00
Sven Wischnowsky
2e1c0ec483 make C-code expansion add a space only when more than one word was generated (11814) 2000-06-08 07:20:31 +00:00
Sven Wischnowsky
b0b33a41a1 try to get the tests for `strings long enough' right in anchor matching code (11796) 2000-06-07 13:25:32 +00:00
Sven Wischnowsky
25ca4f8792 optimise command lookup in old and new completion (user/3124) 2000-06-07 11:21:42 +00:00
Sven Wischnowsky
9ac1ee5703 hopefully more consistent beeping with menu-selection (11794) 2000-06-07 08:39:56 +00:00
Sven Wischnowsky
9bb23440d2 -K option for zparseopts to keep previous array values (11792) 2000-06-07 07:38:02 +00:00
Sven Wischnowsky
4900804b61 make (e) flag be silent unless (X) is given, too (11768) 2000-06-06 08:35:54 +00:00
Oliver Kiddle
96e53995c9 AIX dependency fix 2000-06-05 19:54:03 +00:00