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