1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 00:41:44 +02:00
Commit Graph

298 Commits

Author SHA1 Message Date
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