diff options
47 files changed, 952 insertions, 473 deletions
diff --git a/.gitignore b/.gitignore index d0172e39b..5fd574b1f 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,10 @@ Config/defs.mk CVS .#* +Doc/help +Doc/help.txt +Doc/help/[_a-zA-Z0-9]* + Doc/intro.a4.pdf Doc/intro.a4.ps Doc/intro.us.pdf @@ -1,9 +1,154 @@ +2013-12-01 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * unposted: Config/version.mk: 5.0.2-test-3. + +2013-11-30 Barton E. Schaefer <schaefer@zsh.org> + + * Hong Xu: 32069: Completion/Unix/Command/_git: completion for + "git submodule update --remote" + +2013-11-29 Barton E. Schaefer <schaefer@zsh.org> + + * 32066 (via 31985 Clemens Hammacher and 32064 Hong Xu): + Functions/VCS_Info/Backends/VCS_INFO_get_data_git, + Functions/VCS_Info/VCS_INFO_reposub: fix %r and %S in vcs_info + formats when a repository subdirectory is accessed via a symlink. + +2013-11-27 Barton E. Schaefer <schaefer@zsh.org> + + * 32061: Src/utils.c: Fix "use of uninitialized memory" in metafy + +2013-11-27 Peter Stephenson <p.stephenson@samsung.com> + + * unposted, see 32054 and thread: + Completion/Unix/Command/_cdrdao, Completion/Unix/Command/_git, + Completion/Unix/Command/_growisofs, Etc/ChangeLog-3.0, + Etc/ChangeLog-3.1, LICENCE, Src/Modules/clone.c, + Src/Modules/example.c, Src/module.c: Rationalise character + encodings: shell functions are strictly ASCII for maximum + portability; other files needed for building and documentation + are ASCII are UTF-8; test files may use ISO-8859-X (we don't + require the Euro symbol) where needed to get single character + input with the top bit set. + +2013-11-25 Peter Stephenson <p.stephenson@samsung.com> + + * unposted, see 32050, 32051: remove non-ASCII characters in + installed functions as this causes sed on MacOS problems. + +2013-11-25 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * unposted: Completion/Unix/Command/.distfiles, + Config/version.mk: update for 5.0.2-test-2. + +2013-11-25 Barton E. Schaefer <schaefer@zsh.org> + + * 32045 (as corrected by Martin Vaeth 32047): Config/defs.mk.in, + Doc/Makefile.in, configure.ac: use dependencies to determine + whether to rebuild helpfiles. + +2013-11-23 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * 32031 plus missed _run_help: Completion/Zsh/Command/_run-help, + Config/defs.mk.in, Config/installfns.sh, Doc/Makefile.in, + Functions/Misc/run-help, Makefile.in: turn @runhelpdir@ in + installed functions into the actual installation path. + +2013-11-20 Peter Stephenson <p.stephenson@samsung.com> + + * 32030: revert 31995 as it caused (N) to fail on an empty + failed glob. Add test for this case. + +2013-11-19 Barton E. Schaefer <schaefer@zsh.org> + + * 32023: Src/utils.c: better interrupt handling at RM_STAR_WAIT + +2013-11-18 Peter Stephenson <p.stephenson@samsung.com> + + * unposted but see 32012: Doc/help/.cvsignore, + Doc/help/.distfiles: were created in the wrong place, so move. + +2013-11-18 Barton E. Schaefer <schaefer@zsh.org> + + * Martin Vaeth: 32008: Completion/Zsh/Command/.distfiles + Completion/Zsh/Command/_run-help Doc/Makefile.in: follow-up to + 31988 - complete "." and ":" for run-help, distribute _run-help, + clean up better during make + + * Han Pingtian: 31995: Src/glob.c: glob qualifiers cannot + follow an empty pattern, so a leading paren means grouping + +2013-11-17 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * 32001: Src/subst.c: fix crash on empty arrays with array + intersection and disjunction. + +2013-11-15 Barton E. Schaefer <schaefer@zsh.org> + + * Martin Vaeth: 31988: Doc/Makefile.in, Util/helpfiles: remove + LC_CTYPE heuristics, assure clean environment, force LANG=C + +2013-11-14 Peter Stephenson <p.stephenson@samsung.com> + + * Jun T.: 31984: Completion/Unix/Command/_df: new completion. + + * 31983: Src/zsh.mdd: suppress warning from cmp that doesn't + indicate a problem when generating patchlevel header. + + * 31982: Src/math.c, Test/C01arith.ztst: detection of floating + point constants had run rampant in users/17445. Fix the original + problem another way. + +2013-11-13 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * 31977: Src/module.c: no error if autoloading a feature that + is already loaded in a consistent fashion. + + * Jun T.: 31971: locale fix for helpfiles. + + * Martin Vaeth: 31959: .gitignore, Doc/help/.cvsignore, + Doc/help/.distfiles: missed files. + +2013-11-12 Bart Schaefer <schaefer@zsh.org> + + * 31966: Util/helpfiles: skip introductory paragraphs processing + "man zshbuiltins" by assuming that all real command names start + with a lower case letter. Check "ztcp" file as a guess that all + builtins were processed. + +2013-11-12 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * Martin Vaeth: 31959: .gitignore, + Completion/Zsh/Command/_run-help, Doc/.cvsignore, + Doc/.distfiles, Doc/Makefile.in, Makefile.in, + StartupFiles/zshrc, Util/helpfiles, configure.ac: make help + files during installation. + + * 31961: Src/Zle/zle.h, Src/Zle/zle_main.c, + Src/Zle/zle_thingy.c: rationalise fd watch to use structures. + +2013-11-08 Peter Stephenson <p.stephenson@samsung.com> + + * unposted: fix ChangeLog to say 5.0.3 instead of 4.0.3. + + * unposted: NEWS: refer to zle -Fw. + + * 31940: Doc/Zsh/contrib.yo, Functions/Misc/zcalc: add -e option + to zcalc to use input from arguments to command. + +2013-11-07 Peter Stephenson <p.stephenson@samsung.com> + + * 31937: Doc/Zsh/zle.yo, Src/Zle/zle_main.c, + Src/Zle/zle_thingy.c, Src/Zle/zle_utils.c, Src/math.c, + Test/C01arith.ztst: zle -Fw uses widget semantics for + file descriptor handler. + 2013-11-06 Peter Stephenson <p.w.stephenson@ntlworld.com> * unposted: Completion/Debian/Command/.distfiles, Completion/Unix/Type/.distfiles, Config/version.mk, Etc/FAQ.yo, README, Src/pattern.c, Src/signals.c, Test/.distfiles: updates - for 4.0.2-test-1 in preparation for 4.0.3. Updated files + for 5.0.2-test-1 in preparation for 5.0.3. Updated files in .distfiles and add mod_export declarations. 2013-11-03 Peter Stephenson <p.w.stephenson@ntlworld.com> @@ -54,7 +199,7 @@ 2013-10-27 Peter Stephenson <p.w.stephenson@ntlworld.com> - * 31909: Jun T: Completion/Unix/Command/_cat: new completion. + * Jun T: 31909: Completion/Unix/Command/_cat: new completion. 2013-10-26 Barton E. Schaefer <schaefer@zsh.org> diff --git a/Completion/BSD/Command/_portaudit b/Completion/BSD/Command/_portaudit index bb942a824..788248d7f 100644 --- a/Completion/BSD/Command/_portaudit +++ b/Completion/BSD/Command/_portaudit @@ -6,7 +6,7 @@ _arguments -s \ '-d[print creation date of the database]' \ '-F[fetch the current database]' \ '-q[quiet mode]' \ - '-V[show portaudit version number]' \ + '-V[show portaudit version number]' \ '-v[verbose mode]' \ '-X[download a fresh database from least days old]:days:' \ '-f[check the packages listed in file]:file:_files' \ diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles index 178406ffd..663c7c495 100644 --- a/Completion/Unix/Command/.distfiles +++ b/Completion/Unix/Command/.distfiles @@ -44,6 +44,7 @@ _date _dbus _dd _devtodo +_df _dhclient _dict _diff diff --git a/Completion/Unix/Command/_cdrdao b/Completion/Unix/Command/_cdrdao index ce3742bc7..06b47c9b1 100644 --- a/Completion/Unix/Command/_cdrdao +++ b/Completion/Unix/Command/_cdrdao @@ -277,7 +277,7 @@ _cdrdao-copy () { # Type completion {{{1 __cdrdao-device () { - # Use cdrdao scanbus and also check what OS we’re running under and provide + # Use cdrdao scanbus and also check what OS we're running under and provide # additional stuff, like devices (/dev/sg0) local -a devices diff --git a/Completion/Unix/Command/_df b/Completion/Unix/Command/_df new file mode 100644 index 000000000..892f91fa0 --- /dev/null +++ b/Completion/Unix/Command/_df @@ -0,0 +1,79 @@ +#compdef df + +local context state state_descr line args spec +local -A opt_args + +if _pick_variant gnu=GNU unix --version; then + args=( + '(-B --block-size -k)'{-B+,--block-size=}'[specify block size]:size (bytes)' + '(-B --block-size -k)-k[like --block-size=1K]' + '(-P --portability)'{-P,--portability}'[use the POSIX output format]' + '(-h --human-readable -H --si)'{-h,--human-readable}'[print sizes in human readable format]' + '(-h --human-readable -H --si)'{-H,--si}'[human readable fomat, but use powers of 1000 not 1024]' + '(-i --inodes)'{-i,--inodes}'[list inode information instead of block usage]' + '--total[produce a grand total]' + '(-T --print-type)'{-T,--print-type}'[print file system type]' + '(-a --all)'{-a,--all}'[include dummy file systems]' + '(-l --local)'{-l,--local}'[limit listing to local file systems]' + '*'{-t+,--type=}'[limit listing to file systems of specified type]:file system type:_file_systems' + '*'{-x+,--exclude-type=}'[exclude file systems of specified type]:file system type:_file_systems' + '(--no-sync)--sync[invoke sync before getting usage info]' + '(--sync)--no-sync[do not invoke sync before getting usage info (default)]' + '-v[(ignored)]' + '(- : *)--help[display help and exit]' + '(- : *)--version[output version information and exit]' + '*:files:_files' + ) +elif [[ "$OSTYPE" == (darwin|freebsd|dragonfly)* ]]; then + args=( + '(-b -g -H -h -k -m)-b[use 512-byte blocks (default)]' + '(-b -g -H -h -k -m)-g[use 1024^3-byte blocks]' + '(-b -g -H -h -k -m)-H[human-readable output (base 10)]' + '(-b -g -H -h -k -m)-h[human-readable output (base 2)]' + '(-b -g -H -h -k -m)-k[use 1024-byte blocks]' + '(-b -g -H -h -k -m)-m[use 1024*1024-byte blocks]' + '-P[POSIX compliant output]' + '-a[show all mount points]' + '-i[include inode usage statistics (default)]' + '-l[only display locally-mounted file systems]' + '-n[use previously obtained statistics]' + '*:files:_files' + ) + spec='[only display file systems of specified types]:file system type:->fslist' + case "$OSTYPE" in + (darwin*) + args+=( + "-T+$spec" +# '-t[same as -T (obsolete)]:file system type:->fslist' + ) + ;; + (freebsd*|dragonfly*) + args+=( "-t+$spec" '-T[include file system type]' ) + ;; + esac +else + # POSIX + args=( + '-k[use 1024-byte blocks]' + '-P[POSIX compliant output]' + '-t[include total allocated-space figures in the output]' + '*:files:_files' + ) +fi + +_arguments -s -S : $args && return 0 + +case "$state" in + (fslist) + local -a fsys used pre disp expl + _file_systems -U -O fsys + pre=$IPREFIX + # offer 'no' only if at the beginning of the list + if ! compset -P '*,' && ! compset -P 'no'; then + disp=( 'no -- exclude file system types in the list' ) + _wanted list-prefix expl 'prefix to list' compadd -d disp 'no' + fi + used=( ${(s:,:)${${IPREFIX#$pre}#no}} ) + _wanted fsys-types expl "$state_descr" compadd -qS , -F used -a fsys + ;; +esac diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 119a705f6..43a01d9ff 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -449,9 +449,9 @@ _git-checkout () { case $state in (branch-or-tree-ish-or-file) - # TODO: Something about *:: brings us here when we complete at “-â€. I + # TODO: Something about *:: brings us here when we complete at "-". I # guess that this makes sense in a way, as we might want to treat it as - # an argument, but I can’t find anything in the documentation about this + # an argument, but I can't find anything in the documentation about this # behavior. [[ $line[CURRENT] = -* ]] && return if (( CURRENT == 1 )) && [[ -z $opt_args[(I)--] ]]; then @@ -642,7 +642,7 @@ _git-commit () { reset_author_opt='(--author)--reset-author[make committer the author of the commit]' fi - # TODO: --interactive isn’t explicitly listed in the documentation. + # TODO: --interactive isn't explicitly listed in the documentation. _arguments -w -S -s \ '(-a --all --interactive -o --only -i --include *)'{-a,--all}'[stage all modified and deleted paths]' \ '--fixup=[construct a commit message for use with rebase --autosquash]:' \ @@ -946,7 +946,7 @@ _git-grep () { '*:: :->tree-or-file' && ret=0 # TODO: If --cached, --no-index, -O, or --open-files-in-pager was given, - # don’t complete treeishs. + # don't complete treeishs. case $state in (tree-or-file) integer first_tree last_tree start end @@ -1176,7 +1176,7 @@ _git-notes () { ': :__git_commits' && ret=0 ;; (add) - # TODO: Only complete commits that don’t have notes already, unless + # TODO: Only complete commits that don't have notes already, unless # -f or --force has been given. _arguments -w -S -s \ '*'{-m,--message=}'[use given note message]:message' \ @@ -1643,6 +1643,7 @@ _git-submodule () { '--rebase[rebase current branch onto commit recorded in superproject]' \ '--reference=[remote repository to clone]: :__git_any_repositories' \ '--recursive[traverse submodules recursively]' \ + '--remote[use the status of the submodule''s remote-tracking branch]' \ '--force[discard local changes by checking out the current up-to-date version]' \ '--init[initialize uninitialized submodules]' \ '*: :__git_ignore_line_inside_arguments __git_submodules' && ret=0 @@ -2333,7 +2334,7 @@ _git-config () { # TODO: Is it fine to use functions like this before _describe below, # or do we need a tag loop? # TODO: It would be nice to output _message -e TYPE label when the - # following functions don’t generate any output in the case of + # following functions don't generate any output in the case of # multi-level options. case $IPREFIX in (alias.) @@ -2686,7 +2687,7 @@ _git-config () { ;; (gitcvs.dbdriver) # TODO: Would be nice to only include those that are installed, but I - # couldn’t figure out a good way of doing that when I wrote this code. + # couldn't figure out a good way of doing that when I wrote this code. __git_config_values -t dbi-drivers -l 'DBI driver' -- "$current" "$part[5]" \ SQLite:'use the SQLite database driver' \ Pg:'use the Pg database driver' && ret=0 @@ -2984,7 +2985,7 @@ _git-reflog () { case $state in (reflog-entry) - # TODO: __git_ignore_line doesn’t work here for some reason. + # TODO: __git_ignore_line doesn't work here for some reason. __git_ignore_line __git_reflog_entries && ret=0 ;; esac @@ -3312,7 +3313,7 @@ _git-rerere () { case $state in (command) - # TODO: This isn’t optimal, as forget get confused. + # TODO: This isn't optimal, as forget get confused. _values command \ 'clear[reset metadata used by rerere]' \ 'forget[resets metadata used by rerere for specific conflict]: :__git_cached_files' \ @@ -4215,9 +4216,9 @@ _git-diff-index () { local -a revision_options __git_setup_revision_options - # TODO: Description of -m doesn’t match that for git-rev-list. What’s going + # TODO: Description of -m doesn't match that for git-rev-list. What's going # on here? - # TODO: With --cached, shouldn’t we only list files changed in index compared + # TODO: With --cached, shouldn't we only list files changed in index compared # to given tree-ish? This should be done for git-diff as well, in that case. _arguments -S \ $revision_options \ @@ -4281,7 +4282,7 @@ _git-diff-tree () { (( $+functions[_git-for-each-ref] )) || _git-for-each-ref () { # TODO: Better completion for --format: should complete %(field) stuff, that - # is, %(refname), %(objecttype), %(objectsize), %(objectname) with optional ‘*’ + # is, %(refname), %(objecttype), %(objectsize), %(objectname) with optional '*' # in front. _arguments -w -S -s \ '--count=[maximum number of refs to iterate over]: :__git_guard_number "maximum number of refs"' \ @@ -4593,7 +4594,7 @@ _git-http-push () { '*: :__git_remote_references' } -# NOTE: git-parse-remote isn’t a user command. +# NOTE: git-parse-remote isn't a user command. (( $+functions[_git-receive-pack] )) || _git-receive-pack () { @@ -4773,7 +4774,7 @@ _git-patch-id () { _message 'no arguments allowed; accepts patch on standard input' } -# NOTE: git-sh-setup isn’t a user command. +# NOTE: git-sh-setup isn't a user command. (( $+functions[_git-stripspace] )) || _git-stripspace () { @@ -4831,8 +4832,8 @@ __git_is_treeish () { (( $+functions[__git_is_committish_range] )) || __git_is_committish_range () { - # TODO: This isn’t quite right. We would like to do parts=${(~s:..(.|))}, - # but that doesn’t work. (This would allow us to make sure that parts only + # TODO: This isn't quite right. We would like to do parts=${(~s:..(.|))}, + # but that doesn't work. (This would allow us to make sure that parts only # contains two elements and then apply __git_is_committish on them. [[ $1 == *..(.|)* ]] && __git_is_committish $(__git_committish_range_first $1) && @@ -5586,7 +5587,7 @@ __git_references () { # TODO: depending on what options are on the command-line already, complete # only tags or heads - # TODO: perhaps caching is unnecessary. usually won’t contain that much data + # TODO: perhaps caching is unnecessary. usually won't contain that much data # TODO: perhaps provide alternative here for both heads and tags (and use # __git_heads and __git_tags) # TODO: instead of "./.", we should be looking in the repository specified as @@ -5646,7 +5647,7 @@ __git_files_relative () { files=() - # Collapse “//†and “/./†into “/â€. Strip any remaining “/.†and “/â€. + # Collapse "//" and "/./" into "/". Strip any remaining "/." and "/". for file in ${${${${${(0)1}//\/\///}//\/.\///}%/.}%/}; do integer i n (( n = $#file > $#prefix ? $#file : $#prefix )) @@ -5999,7 +6000,7 @@ __git_setup_revision_options () { revision_options=( $diff_options # TODO: format pretty print format is a lot more advanced than this. - # TODO: You can’t actually specify --format without a format. + # TODO: You can't actually specify --format without a format. '(-v --header)'{--pretty=-,--format=-}'[pretty print commit messages]::format:((oneline\:"commit-ids and subject of messages" short\:"few headers and only subject of messages" medium\:"most parts of messages" @@ -6192,14 +6193,14 @@ __git_config_sections () { # -l can be used to specify a label to use (default: boolean). # # The first argument is the current value, so that the description of the -# current value can be suffixed with “ (current)â€. +# current value can be suffixed with " (current)". # # The second argument is the default value, so that the description of the -# default value can be suffixed with “ (default)â€. +# default value can be suffixed with " (default)". # # The third argument is the description to use for the true and false values. # -# The rest of the arguments can be used to provide additional “boolean†values +# The rest of the arguments can be used to provide additional "boolean" values # that should be included. They should be of the form that _describe expects. (( $+functions[__git_config_booleans] )) || __git_config_booleans () { @@ -6225,10 +6226,10 @@ __git_config_booleans () { # -l can be used to specify a label to use (default: value). # # The first argument is the current value, so that the description of the -# current value can be suffixed with “ (current)â€. +# current value can be suffixed with " (current)". # # The second argument is the default value, so that the description of the -# default value can be suffixed with “ (default)â€. +# default value can be suffixed with " (default)". # # The rest of the arguments are values of the form VALUE:DESCRIPTION to be # passed to _describe. @@ -6432,12 +6433,12 @@ __git_color_attributes () { _describe -t attributes attribute attributes $* } -# Now, for the main driver… +# Now, for the main drive... _git() { if (( CURRENT > 2 )); then local -a aliases local -A git_aliases - # TODO: Should use -z here, but I couldn’t get it to work. + # TODO: Should use -z here, but I couldn't get it to work. aliases=(${(f)${${${(f)"$(_call_program aliases git config --get-regexp '\^alias\.')"}#alias.}/ /$'\n'}/(#e)/$'\n'}) (( $#aliases % 2 == 0 )) && git_aliases=($aliases) diff --git a/Completion/Unix/Command/_growisofs b/Completion/Unix/Command/_growisofs index dcccf64a4..36b45d5ba 100644 --- a/Completion/Unix/Command/_growisofs +++ b/Completion/Unix/Command/_growisofs @@ -139,8 +139,8 @@ if (( index_of_find > 0 && index_of_find < CURRENT )); then [[ $words[CURRENT-1] == -([HLP]|-(help|version)) ]]) || [[ -d $words[CURRENT-1] ]]; then # TODO: all $words[index_of_find,CURRENT-1] must be -d. - # But we can perhaps assume that the user hasn’t gone back and changed an - # argument without thinking about it carefully…otherwise, all previous + # But we can perhaps assume that the user hasn't gone back and changed an + # argument without thinking about it carefully...otherwise, all previous # words of interest will have passed the -d test. _arguments \ $find_paths \ diff --git a/Completion/Unix/Command/_systemd b/Completion/Unix/Command/_systemd index 1aae4688b..d2a7895e1 100644 --- a/Completion/Unix/Command/_systemd +++ b/Completion/Unix/Command/_systemd @@ -1,6 +1,6 @@ #compdef systemctl systemd-loginctl -# Copyright (c) 2011 Foudil Brétel <foudil.newbie+zshsystemctl@gmail.com> +# Copyright (c) 2011 Foudil Bre'tel <foudil.newbie+zshsystemctl@gmail.com> # # This file is released under the GPLv3. # diff --git a/Completion/Zsh/Command/.distfiles b/Completion/Zsh/Command/.distfiles index 6feec496d..bf780a2a0 100644 --- a/Completion/Zsh/Command/.distfiles +++ b/Completion/Zsh/Command/.distfiles @@ -22,6 +22,7 @@ _precommand _print _prompt _read +_run-help _sched _set _setopt diff --git a/Completion/Zsh/Command/_run-help b/Completion/Zsh/Command/_run-help new file mode 100644 index 000000000..81adc4d84 --- /dev/null +++ b/Completion/Zsh/Command/_run-help @@ -0,0 +1,7 @@ +#compdef run-help +local d expl +local HELPDIR=${HELPDIR:-@runhelpdir@} +[[ -d $HELPDIR ]] && { + d=($HELPDIR/*(:t)) + (($#d)) && d+=('.' ':') && _wanted commands expl 'command' compadd -a d +} || _man diff --git a/Config/defs.mk.in b/Config/defs.mk.in index 58ef11066..2c813a3b2 100644 --- a/Config/defs.mk.in +++ b/Config/defs.mk.in @@ -51,6 +51,8 @@ sitefndir = @sitefndir@ scriptdir = @scriptdir@ sitescriptdir = @sitescriptdir@ htmldir = @htmldir@ +runhelpdir = @runhelpdir@ +runhelp = @runhelp@ # compilation CC = @CC@ diff --git a/Config/installfns.sh b/Config/installfns.sh index cf587c438..149f359c6 100755 --- a/Config/installfns.sh +++ b/Config/installfns.sh @@ -10,6 +10,8 @@ allfuncs="`grep ' functions=.' ${dir_top}/config.modules | allfuncs="`cd $sdir_top; echo ${allfuncs}`" +test -d installfnsdir || mkdir installfnsdir + # We now have a list of files, but we need to use `test -f' to check # (1) the glob got expanded (2) we are not looking at directories. for file in $allfuncs; do @@ -44,8 +46,22 @@ for file in $allfuncs; do ;; esac fi - test -d $instdir || /bin/sh $sdir_top/mkinstalldirs $instdir || exit 1 - $INSTALL_DATA $sdir_top/$file $instdir || exit 1 + basename=`basename $file` + ok=0 + if test -d $instdir || /bin/sh $sdir_top/mkinstalldirs $instdir; then + if sed "s|@runhelpdir@|$runhelpdir|" <$sdir_top/$file \ + >installfnsdir/$basename; then + if $INSTALL_DATA installfnsdir/$basename $instdir; then + ok=1 + fi + fi + fi + case $ok in + 0) + rm -rf installfnsdir + exit 1 + ;; + esac read line < $sdir_top/$file case "$line" in '#!'*) @@ -54,3 +70,5 @@ for file in $allfuncs; do esac fi done + +rm -rf installfnsdir diff --git a/Config/version.mk b/Config/version.mk index 351a29602..9abdcdc01 100644 --- a/Config/version.mk +++ b/Config/version.mk @@ -27,5 +27,5 @@ # This must also serve as a shell script, so do not add spaces around the # `=' signs. -VERSION=5.0.2-test-1 -VERSION_DATE='November 6, 2013' +VERSION=5.0.2-test-3 +VERSION_DATE='December 1, 2013' diff --git a/Doc/.cvsignore b/Doc/.cvsignore index 0ef3b52f5..606228be7 100644 --- a/Doc/.cvsignore +++ b/Doc/.cvsignore @@ -1,4 +1,5 @@ Makefile +help.txt version.yo zsh*.1 zsh.texi diff --git a/Doc/.distfiles b/Doc/.distfiles index 85dc15781..6c2b2119f 100644 --- a/Doc/.distfiles +++ b/Doc/.distfiles @@ -11,6 +11,7 @@ DISTFILES_SRC=' zshcompctl.1 zshcompsys.1 zshcompwid.1 zshexpn.1 zshmisc.1 zshmodules.1 zshoptions.1 zshparam.1 zshroadmap.1 zshzle.1 zshall.1 zshzftpsys.1 zshcontrib.1 zshtcpsys.1 + help.txt ' DISTFILES_DOC=' diff --git a/Doc/Makefile.in b/Doc/Makefile.in index dacbd5170..50e210fcf 100644 --- a/Doc/Makefile.in +++ b/Doc/Makefile.in @@ -34,6 +34,7 @@ VPATH = @srcdir@ sdir = @srcdir@ sdir_top = @top_srcdir@ INSTALL = @INSTALL@ +LN_S = @LN_S@ @DEFS_MK@ @@ -82,7 +83,7 @@ Zsh/seealso.yo Zsh/tcpsys.yo Zsh/zftpsys.yo Zsh/zle.yo # ========== DEPENDENCIES FOR BUILDING ========== -all: man texi ../META-FAQ +all: man $(runhelp) texi ../META-FAQ .PHONY: all everything: all dvi html pdf info @@ -183,6 +184,15 @@ $(sdir)/zsh.texi: $(YODLSRC) man: $(MAN) .PHONY: man +runhelp: help.txt +.PHONY: runhelp + +help.txt: zshbuiltins.1 + @-rm -f $(sdir)/help.txt $(sdir)/help/* + perl $(sdir_top)/Util/helpfiles \ + $(sdir)/zshbuiltins.1 $(sdir)/help $(sdir)/help.txt \ + || { rm -f $(sdir)/help.txt $(sdir)/help/*; false; } + $(MAN): zmacros.yo zman.yo zsh.1 zshall.1: Zsh/intro.yo Zsh/metafaq.yo Zsh/invoke.yo Zsh/files.yo \ @@ -285,12 +295,12 @@ Zsh/manmodmenu.yo: $(MODDOCSRC) # ========== DEPENDENCIES FOR INSTALLING ========== -# install just installs the manual pages -install: install.man +# install just installs the manual and runhelp pages +install: install.man install.runhelp .PHONY: install -# uninstall just unistalls the manual pages -uninstall: uninstall.man +# uninstall just uninstalls the manual and runhelp pages +uninstall: uninstall.man uninstall.runhelp .PHONY: uninstall # install man pages, creating install directory if necessary @@ -302,6 +312,18 @@ install.man: man done .PHONY: install.man +# install runhelp pages, creating install directory if necessary +install.runhelp: $(runhelp) + if test x"$(runhelpdir)" != x""; then \ + ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(runhelpdir); \ + $(INSTALL_DATA) $(sdir)/help/* $(DESTDIR)$(runhelpdir); \ + while read from to; do \ + rm -f $(DESTDIR)$(runhelpdir)/$$to || : ; \ + $(LN_S) $$from $(DESTDIR)$(runhelpdir)/$$to; \ + done < $(sdir)/help.txt; \ + fi +.PHONY: install.runhelp + # install info pages, creating install directory if necessary install.info: texi ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(infodir) @@ -334,6 +356,11 @@ uninstall.man: done .PHONY: uninstall.man +# uninstall runhelp pages +uninstall.runhelp: + test x"$(runhelpdir)" = x"" || rm -rf -- $(DESTDIR)$(runhelpdir) +.PHONY: uninstall.runhelp + # uninstall info pages uninstall.info: rm -f $(DESTDIR)$(infodir)/$(tzsh).info @@ -369,6 +396,7 @@ distclean-here: clean-here realclean-here: distclean-here cd $(sdir) && rm -f Zsh/modlist.yo Zsh/modmenu.yo Zsh/manmodmenu.yo cd $(sdir) && rm -f version.yo ../META-FAQ zsh.texi $(MAN) + cd $(sdir) && rm -f help.txt help/* .PHONY: realclean-here @CLEAN_MK@ diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 9d3fc7562..bb6613ece 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -3155,7 +3155,7 @@ sect(Mathematical Functions) startitem() findex(zcalc) -item(tt(zcalc) [ var(expression) ... ])( +item(tt(zcalc) [ tt(-ef) ] [ var(expression) ... ])( A reasonably powerful calculator based on zsh's arithmetic evaluation facility. The syntax is similar to that of formulae in most programming languages; see @@ -3195,6 +3195,10 @@ The output base can be initialised by passing the option `tt(-#)var(base)', for example `tt(zcalc -#16)' (the `tt(#)' may have to be quoted, depending on the globbing options set). +If the option `tt(-e)' is set, the function runs non-interactively: +the arguments are treated as expressions to be evaluated as if entered +interactively line by line. + If the option `tt(-f)' is set, all numbers are treated as floating point, hence for example the expression `tt(3/4)' evaluates to 0.75 rather than 0. Options must appear in separate words. diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 614924bfb..2d7756859 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -373,7 +373,7 @@ xitem(tt(zle) tt(-R) [ tt(-c) ] [ var(display-string) ] [ var(string) ... ]) xitem(tt(zle) tt(-M) var(string)) xitem(tt(zle) tt(-U) var(string)) xitem(tt(zle) tt(-K) var(keymap)) -xitem(tt(zle) tt(-F) [ tt(-L) ] [ var(fd) [ var(handler) ] ]) +xitem(tt(zle) tt(-F) [ tt(-L) | tt(-w) ] [ var(fd) [ var(handler) ] ]) xitem(tt(zle) tt(-I)) xitem(tt(zle) tt(-T) [ tt(tc) var(function) | tt(-r) tt(tc) | tt(-L) ] ) item(tt(zle) var(widget) tt([ -n) var(num) tt(]) tt([ -Nw ] [ -K) var(keymap) tt(]) var(args) ...)( @@ -487,7 +487,7 @@ This keymap selection affects the interpretation of following keystrokes within this invocation of ZLE. Any following invocation (e.g., the next command line) will start as usual with the `tt(main)' keymap selected. ) -item(tt(-F) [ tt(-L) ] [ var(fd) [ var(handler) ] ])( +item(tt(-F) [ tt(-L) | tt(-w) ] [ var(fd) [ var(handler) ] ])( Only available if your system supports one of the `poll' or `select' system calls; most modern systems do. @@ -502,6 +502,13 @@ Note that zle makes no attempt to check whether this fd is actually readable when installing the handler. The user must make their own arrangements for handling the file descriptor when zle is not active. +If the option tt(-w) is also given, the var(handler) is instead a +line editor widget, typically a shell function made into a widget using +tt(zle -N). In that case var(handler) can use all the facilities of +zle to update the current editing line. Note, however, that as handling +var(fd) takes place at a low level changes to the display will not +automatically appear; the widget should call tt(zle -R) to force redisplay. + Any number of handlers for any number of readable file descriptors may be installed. Installing a handler for an var(fd) which is already handled causes the existing handler to be replaced. diff --git a/Doc/help/.cvsignore b/Doc/help/.cvsignore new file mode 100644 index 000000000..0751b2579 --- /dev/null +++ b/Doc/help/.cvsignore @@ -0,0 +1 @@ +[_a-zA-Z0-9]* diff --git a/Doc/help/.distfiles b/Doc/help/.distfiles new file mode 100644 index 000000000..60962adf4 --- /dev/null +++ b/Doc/help/.distfiles @@ -0,0 +1,5 @@ +DISTFILES_SRC=' + .cvsignore + .distfiles + [_a-zA-Z0-9]* +' diff --git a/Etc/ChangeLog-3.0 b/Etc/ChangeLog-3.0 index b55186822..5a6f2188d 100644 --- a/Etc/ChangeLog-3.0 +++ b/Etc/ChangeLog-3.0 @@ -1093,20 +1093,20 @@ * Src/subst.c: Zoltan's patch for rcexpandparam bug, from zsh-workers 3548. -Thu Sep 26 01:57:07 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Sep 26 01:57:07 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0.5 released * Src/rlimits.awk: SunOS 4 nawk doesn't support /re/ || /re/ { ... } -Thu Sep 25 05:00:07 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Sep 25 05:00:07 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Spelling and zrealloc fix from Martin Buchholz <mrb@Eng.Sun.COM> (3478) * After a='a ' ${(o)=a}b should expand to two words, `a' `b'. -Sun Sep 21 07:48:07 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Sep 21 07:48:07 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_main.c, Src/zle_tricky.c: Use gotmult instead of zmult != 1 to test for prefix-arg. From Bart (3322) @@ -1130,14 +1130,14 @@ Sun Sep 21 07:48:07 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> determine the file marks. From Peter (3285) with some fixes by me. -Sat Sep 20 06:37:55 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Sep 20 06:37:55 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c: typeset -U array; array=(1 2 1) created a non-unique array. * Src/math.c: $((0x1+0x2)) did not work -Fri Sep 19 05:46:49 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Sep 19 05:46:49 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: Remove wrong (int (*)(void)) prototype from match_username cast. Go back to no prototype at all, since @@ -1147,7 +1147,7 @@ Fri Sep 19 05:46:49 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c: Keep the old environment until the new environment is completely built. -Tue Sep 16 04:43:25 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Sep 16 04:43:25 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: Show explanation if there are no or more than one possible completions. @@ -1160,14 +1160,14 @@ Tue Sep 16 04:43:25 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/utils.c: Setting LINES and COLUMNS manually now works, and it is equivalent to stty rows and stty columns. -Sat Aug 2 20:00:18 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Aug 2 20:00:18 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c, Src/utils.c, Src/zsh.h: RC_EXPAND_PARAM fixes * Src/parse.c: [[ bug bug ]] bug caused BUG: wrong character in hungetc() -Sun Jul 13 07:53:01 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jul 13 07:53:01 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c: */ should only glob searchable directories or directory links. @@ -1180,7 +1180,7 @@ Sun Jul 13 07:53:01 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: Read builtin cleanup, handle backslashes correctly -Mon Jun 30 04:48:17 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 30 04:48:17 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/jobs.c: bg should set STAT_NOSTTY. From SUZUKI Hisao <suzuki@otsl.oki.co.jp> @@ -1188,7 +1188,7 @@ Mon Jun 30 04:48:17 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/jobs.c, Src/zsh.h: Ignore tty settings set by background jobs -Mon Jun 23 05:57:10 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 23 05:57:10 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0.4 released @@ -1196,28 +1196,28 @@ Mon Jun 23 05:57:10 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c: The pattern *a~b did not match aa. From Peter (3249) -Sun Jun 22 23:08:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 22 23:08:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: zle refresh coredump fix from Geoff (3260) -Sat Jun 21 02:52:35 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jun 21 02:52:35 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/jobs.c: Do not inherit tty settings from suspended jobs. * configure, configure.in: Use case instead of sed hack to test for aix -Fri Jun 20 03:58:04 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jun 20 03:58:04 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/jobs.c: Another attempt to get tty settings right -Tue Jun 17 05:53:19 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 17 05:53:19 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c: paramsubst return the array elements directly without copying them which can lead to data corruption. From Zefram (3250) -Mon Jun 16 05:35:01 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 16 05:35:01 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: autoparamkeys and completeinword did not work well when : is pressed after a successfull completion @@ -1232,14 +1232,14 @@ Mon Jun 16 05:35:01 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c: Put only valid exported zsh parameters into the new environment -Fri Jun 6 06:23:29 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jun 6 06:23:29 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/jobs.c: zsh forgot stty settings when a backgrounded job terminated while zle was active. From Peter (3196) ---- Version 3.1 diverged from 3.0 at this point, later to become 4.0 ---- -Tue Jun 3 06:14:14 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 3 06:14:14 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0.3 released @@ -1247,30 +1247,30 @@ Tue Jun 3 06:14:14 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/jobs.c: pg(){ less;};:|pg caused suspended (tty input) -Mon Jun 2 07:17:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 2 07:17:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: Xterm cut & paste fixes from Geoff (3135) * Src/hist.c: Fix !# history expansion during completion. From Peter (3132) -Sun Jun 1 08:02:19 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 1 08:02:19 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/system.h: Use _POSIX_VDISABLE is available. Fixes ^@ in zle on some systems. -Thu May 29 05:17:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 29 05:17:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/cond.c: directories are always executable by root * META-FAQ: The zsh web page moved. -Tue May 20 05:22:16 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue May 20 05:22:16 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: if abort or edit used on a correct prompt, do not attempt to correct further words on the line. -Sun May 18 18:57:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun May 18 18:57:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/exec.c, Src/init.c, Src/signals.c, Src/jobs.c: Do not handle SIGPIPE specially for shells with job control @@ -1282,11 +1282,11 @@ Sun May 18 18:57:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/signals.c: `:`; while true; do; done was uninterruptible -Mon May 12 09:01:55 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon May 12 09:01:55 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hist.c: !:2-1 history expansion caused memory corruption -Sun May 11 08:52:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun May 11 08:52:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: $((foo);bar) syntax works @@ -1299,7 +1299,7 @@ Sun May 11 08:52:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: make sure zexit is not reentered when its execution is interrupted by a signal. -Fri May 9 07:59:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri May 9 07:59:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi: @br{} removed @@ -1309,7 +1309,7 @@ Fri May 9 07:59:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/jobs.c: printjobs() set errflag when the foreground process was interrupted. -Thu May 8 09:18:56 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 8 09:18:56 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/cond.c: [[ -x file ]] does stat for privileged users @@ -1320,40 +1320,40 @@ Thu May 8 09:18:56 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c, Src/hist.c, Src/lex.c, Src/parse.c: ((foo);bar) now works -Tue May 6 05:56:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue May 6 05:56:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/signals.c: WINCH traps did not work. From Peter (3093) -Wed Apr 30 07:40:30 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Apr 30 07:40:30 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/text.c: printing case commands were broken. From Zefram (3062) -Mon Apr 28 07:28:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Apr 28 07:28:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/system.h, acconfig.h, config.h.in, configure, configure.in, Src/rlimits.c: Use rlim_t if available * Etc/FAQ: March 24 1997 FAQ from Peter -Sat Apr 26 06:26:11 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Apr 26 06:26:11 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Functions/zed: Reenter zed if it fails to save the file * Functions/zed: Use bindkey -L to temporarily save bindings. From Zefram (3012) -Fri Apr 25 06:41:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Apr 25 06:41:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Functions/cdmatch, Misc/compctl-examples: compctl-examples improvements from Zefram (3006) * Src/globals.h: NOTIFY is off in sh/ksh mode. From Zefram (3003) -Sun Apr 20 07:24:12 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Apr 20 07:24:12 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c, Src/params.c, Src/utils.c: Remove setintenv() -Tue Apr 15 05:51:27 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Apr 15 05:51:27 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: SGTABTYPE can contain more than one bit set. From Geoff (2976) @@ -1366,7 +1366,7 @@ Tue Apr 15 05:51:27 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: vared path caused permanent allocation in arrayfixenv -Sat Mar 8 00:17:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Mar 8 00:17:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: Sometimes an incorrect compctl caused a core dump. From Peter (2942) @@ -1380,7 +1380,7 @@ Sat Mar 8 00:17:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> terminals centralized in zlevarsetfn(). From Bart and me (2956, 2957) -Fri Mar 7 23:54:18 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Mar 7 23:54:18 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle.h, Src/zle_misc.c, Src/zle_refresh.c, Src/utils.c: act as if single_line_zle were set when LINES < 3. @@ -1404,17 +1404,17 @@ Tue Feb 18 20:59:51 1997 Zoltan Hidvegi <hzoli@vnet.ibm.com> * Src/lex.c: eval \$\{$#\} did not work -Mon Jan 27 22:04:29 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jan 27 22:04:29 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/signals.c: temprarily set breaks to zero when executing a trap * Src/exec.c: do not reset breaks in doshfunc -Sun Jan 26 02:55:02 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jan 26 02:55:02 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c: set noerrexit to -1 in setupvals() -Sat Jan 25 20:07:46 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jan 25 20:07:46 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c, Src/utils.c: some assignments were missing from my spacesplit fix @@ -1425,7 +1425,7 @@ Sat Jan 25 20:07:46 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle.h, Src/zle_misc.c, Src/zle_refresh.c: redisplay fix for multiline prompts from Geoff (2817) -Mon Jan 20 21:11:22 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jan 20 21:11:22 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hashtable.h, acconfig.h, config.h.in, configure, configure.in: some old compilers cannot initialise a union @@ -1433,16 +1433,16 @@ Mon Jan 20 21:11:22 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_utils.c: move the mark when characters are inserted/deleted. From Peter (2807) -Sat Jan 18 22:34:17 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jan 18 22:34:17 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * acconfig.h, config.h.in, configure, configure.in: use the AC_FUNC_STRCOLL builtin autoconf test -Tue Jan 14 13:52:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jan 14 13:52:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_move.c: vi-goto-column did not move to the last column -Sat Jan 11 23:45:50 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jan 11 23:45:50 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/system.h: define lstat(X,Y) instead of lstst if HAVE_LSTAT is not defined @@ -1456,12 +1456,12 @@ Sat Jan 11 23:45:50 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: fix bugs when there was no current job after disown -Thu Jan 9 14:44:28 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jan 9 14:44:28 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hist.c: Peter's patch broke history expansion in some cases. From Peter (2755) -Wed Jan 8 22:02:51 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jan 8 22:02:51 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/globals.h, Src/hist.c, Src/lex.c: hist_ignore_dups did not work with fc in precmd(). From Peter (2748) @@ -1469,7 +1469,7 @@ Wed Jan 8 22:02:51 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: on NetBSD <sys/time.h> is needed for rlimit type checks. Based on article 2742 from Geoff -Tue Jan 7 23:10:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jan 7 23:10:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c, Src/builtin.c, Src/exec.c: print error when changing read-only variables, prevent core dump when assigning @@ -1477,12 +1477,12 @@ Tue Jan 7 23:10:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: compctl -S bugfix -Mon Jan 6 20:43:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jan 6 20:43:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, acconfig.h, config.h.in, configure, configure.in: better /dev/fd filesystem check -Sun Jan 5 23:33:32 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jan 5 23:33:32 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/system.h, Src/utils.c, acconfig.h, config.h.in, configure, configure.in: checks for quad_t and @@ -1496,17 +1496,17 @@ Sun Jan 5 23:33:32 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_main.c: EOF ignored in interactive mode when not in the first line. From Peter (2713) -Fri Jan 3 02:26:03 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jan 3 02:26:03 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Misc/compctl-examples: setopt/unsetopt compctl fixes -Thu Jan 2 20:57:33 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jan 2 20:57:33 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: alpha-linux defines signals in <asm/signum.h>. From David Krinsky <krinsky@hcs.harvard.edu> (2706) -Wed Jan 1 20:04:06 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jan 1 20:04:06 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c, Src/hashtable.h: remove the struct iparam hack which assumed that sizeof(long) == sizeof(void*) @@ -1514,7 +1514,7 @@ Wed Jan 1 20:04:06 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/system.h, configure, configure.in: dgux CLOBBERS_TYPEAHEAD. From Roderick Schertler <roderick@gate.net> (2623) -Tue Dec 31 02:28:09 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Dec 31 02:28:09 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c, Src/params.c, Src/utils.c: use dupstrpfx/ztrduppfx @@ -1523,7 +1523,7 @@ Tue Dec 31 02:28:09 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> foo='echo ' ; alias bar=foo, foo bar should expand to foo echo. From Peter (2558) -Sun Dec 29 22:34:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Dec 29 22:34:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Doc/zshexpn.man, Doc/zshmisc.man, Src/glob.c, Src/lex.c: brace related bugfixes @@ -1533,7 +1533,7 @@ Sun Dec 29 22:34:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/loop.c, Src/parse.c: case argument should not be globbed -Thu Dec 19 21:37:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Dec 19 21:37:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * zsh-3.0.2 repacked @@ -1543,7 +1543,7 @@ Thu Dec 19 21:37:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/FAQ: FAQ from Peter: Id: zsh.FAQ,v 2.22 1996/12/19 09:52:11 pws Exp -Tue Dec 17 20:08:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Dec 17 20:08:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0.2 released @@ -1552,7 +1552,7 @@ Tue Dec 17 20:08:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in: rlimits.h depends on rlimits.awk. Cosmetic changes. From Zefram (2589) -Mon Dec 16 03:33:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Dec 16 03:33:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * README: unknown limits should no longer be a problem @@ -1562,14 +1562,14 @@ Mon Dec 16 03:33:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: fg %% failed and disabled job control sometimes when there were no current job -Sun Dec 15 22:09:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Dec 15 22:09:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Doc/zshzle.man, Src/zle_hist.c: insert-last-word with numeric arguments inserts the given word from the previous history event. From Bart (2445), documentation by me. -Sat Dec 14 02:44:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Dec 14 02:44:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c (execcmd): builtin < / > / closed stdin @@ -1582,7 +1582,7 @@ Sat Dec 14 02:44:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: working fifos should be tested in /tmp -Wed Dec 11 02:30:39 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Dec 11 02:30:39 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c, Src/builtin.c, Src/exec.c, Src/globals.h, Src/hist.c, Src/init.c, Src/input.c, Src/lex.c, Src/zsh.h: @@ -1593,7 +1593,7 @@ Wed Dec 11 02:30:39 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c: use the heap in getstrvalue() -Tue Dec 10 02:27:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Dec 10 02:27:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: single line zle refresh bugfix from Geoff (2549) @@ -1608,7 +1608,7 @@ Tue Dec 10 02:27:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: use the heap in zexit() -Sun Dec 8 21:32:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Dec 8 21:32:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/input.c: no further input should be attempted when lexstop is true (e.g. after eof). @@ -1637,7 +1637,7 @@ Sun Dec 8 21:32:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: show metafied characters correctly in bad option errors. From Zefram (2497) -Tue Nov 26 02:45:15 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Nov 26 02:45:15 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: the STTY parameter did not work well when pipes were used. From Peter (2474) @@ -1645,11 +1645,11 @@ Tue Nov 26 02:45:15 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/FAQ: FAQ from Peter: Id: zsh.FAQ,v 2.21 1996/11/25 09:13:28 pws Exp -Sun Nov 24 22:44:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Nov 24 22:44:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_move.c: vi-goto-mark fix from Thorsten -Sat Nov 23 23:34:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Nov 23 23:34:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: ((...)) substituted the expression twice and coredumped on (()) @@ -1657,7 +1657,7 @@ Sat Nov 23 23:34:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Doc/zshcompctl.man: compctl -e clarification from Peter (2453) -Wed Nov 20 00:58:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Nov 20 00:58:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: The spell checker always tries to fix as many leading directory compontents as possible. From Bart (2429) @@ -1665,7 +1665,7 @@ Wed Nov 20 00:58:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: my spell-word fix used an uninitialised pointer. Fix from Bart (2428) -Sun Nov 17 21:21:22 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Nov 17 21:21:22 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c: remove a few memory leaks when initialising the parameter table. @@ -1676,7 +1676,7 @@ Sun Nov 17 21:21:22 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/parse.c, Src/text.c, Src/zsh.h: do not convert ((...)) to builtin let internally. -Sat Nov 16 23:57:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Nov 16 23:57:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: spell-word zle function did not work for word beginning with a tilde @@ -1690,11 +1690,11 @@ Sat Nov 16 23:57:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: the cursor moved back on TAB when it was on "". From Zefram (2415) -Thu Nov 14 12:59:25 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Nov 14 12:59:25 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: one more refresh fix from Geoff (2404) -Wed Nov 13 21:47:28 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Nov 13 21:47:28 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * config.guess, config.sub: recognize i[6-9]86 @@ -1709,11 +1709,11 @@ Wed Nov 13 21:47:28 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: zle_refresh scrolling change from Geoff (2351) -Tue Nov 12 21:35:18 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Nov 12 21:35:18 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c, Src/zle_refresh.c: zle-refresh patch from Geoff (2336) -Sun Nov 3 23:00:05 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Nov 3 23:00:05 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/system.h: set OPEN_MAX to 64 if NOFILE is not defined @@ -1723,7 +1723,7 @@ Sun Nov 3 23:00:05 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Functions/pushd: setopt localoptions must come after emulate -R zsh -Sat Nov 2 22:47:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Nov 2 22:47:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/compat.c, Src/hashtable.c, Src/utils.c: do not blindly assume that . and .. are always the first two enrties in a @@ -1732,7 +1732,7 @@ Sat Nov 2 22:47:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: max_zsh_fd should not be decreased below zero -Thu Oct 31 01:38:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Oct 31 01:38:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hist.c: zsh splitted lines longer than 1022 while reading the history file @@ -1741,7 +1741,7 @@ Thu Oct 31 01:38:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: read -c ignored its first parameter -Fri Oct 25 20:50:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Oct 25 20:50:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0.1 released @@ -1751,7 +1751,7 @@ Fri Oct 25 20:50:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_main.c: key binding coredump fix from Peter (2131) -Thu Oct 24 10:02:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Oct 24 10:02:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: A minor bugfix related to alwayslastprompt and compctl -X from Geoff (2255) @@ -1760,28 +1760,28 @@ Thu Oct 24 09:15:18 1996 pws <pws@ihf.de> * Etc/FAQ: checked in with -k by hzoli at 1996/10/25 19:57:51 -Mon Oct 21 20:39:19 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Oct 21 20:39:19 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Doc/zshoptions.man: Better documentation of GLOB_ASSIGN and MAGIC_EQUAL_SUBST from Peter (2164) -Sun Oct 20 00:08:41 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Oct 20 00:08:41 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: I made a stupid mistake in the Cray hacks for nis_list -Sat Oct 19 19:39:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Oct 19 19:39:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: allow cross-compiling -Fri Oct 18 20:34:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Oct 18 20:34:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.man, Doc/zsh.texi, Doc/zshall.man: Paul Falstad's preferred E-mail address is pjf@cts.com * Src/hist.c: A little simplifiction. -Wed Oct 16 22:58:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Oct 16 22:58:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/BUGS: sed in HP-UX 10.20 is broken. @@ -1789,7 +1789,7 @@ Wed Oct 16 22:58:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> that from the directory stack. popd should warn when the directory stack is empty. From Bart (zsh-users 437) -Tue Oct 15 21:07:03 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Oct 15 21:07:03 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_utils.c: use int instead of char in getzlequery @@ -1811,7 +1811,7 @@ Tue Oct 15 21:07:03 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: bugfix and optimisation for poor terminals from Geoff (2221) -Tue Oct 8 23:19:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Oct 8 23:19:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/BUGS, Etc/CONTRIBUTORS, Etc/MACHINES, Etc/NEWS: spell fixes from Geoff (2190) @@ -1821,7 +1821,7 @@ Tue Oct 8 23:19:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/prototypes.h, acconfig.h, config.h.in, configure, configure.in: make compilation possible on OSF/1 V4.x with gcc -Tue Oct 8 00:16:29 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Oct 8 00:16:29 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c: PS3 and PS4 were only initialized in non-interactive shells @@ -1845,7 +1845,7 @@ Tue Oct 8 00:16:29 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: a litle optimization -Sun Oct 6 12:21:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Oct 6 12:21:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Functions/cdmatch, Functions/cdmatch2, Functions/multicomp: add emulate -R zsh to some function examples. From Bart (2172) @@ -1857,7 +1857,7 @@ Sun Oct 6 12:21:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Doc/zshexpn.man, Etc/NEWS, Src/glob.c: trailing / in a glob pattern now works like in other shells. -Thu Oct 3 00:02:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Oct 3 00:02:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: on AIX curses should always be preferred to termcap @@ -1870,13 +1870,13 @@ Thu Oct 3 00:02:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c: echo foo(:t:r) gave no matches error -Tue Oct 1 00:50:49 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Oct 1 00:50:49 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/exec.c, Src/hashtable.h, Src/params.c, Src/zle_tricky.c: dots no longer appear in place of empty components of PATH, MANPATH etc. -Sat Sep 28 21:22:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Sep 28 21:22:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zsh.h, Src/builtin.c, Src/hashtable.h, Src/init.c, Src/jobs.c, Src/params.c, Src/utils.c, Src/zle_misc.c, @@ -1895,7 +1895,7 @@ Sat Sep 28 21:22:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c: initialise ttystrname in init_io to avoid duplicated call of ttyname -Tue Sep 24 19:45:30 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Sep 24 19:45:30 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: one character long prompts did not work. From Geoff (2118) @@ -1907,7 +1907,7 @@ Tue Sep 24 19:45:30 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_utils.c: ^C answer to a query printed a funny character. From hoh@approve.se (Goran Larsson) (2144) -Mon Sep 23 23:28:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Sep 23 23:28:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: array assignments stopped working after my previous fix @@ -1922,7 +1922,7 @@ Mon Sep 23 23:28:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: POSIX: shift n should fail with error message if n > $# -Sat Sep 14 04:19:41 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Sep 14 04:19:41 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: metafy/unmetafy speedups @@ -1937,13 +1937,13 @@ Sat Sep 14 04:19:41 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c: shift <number> did not work -Fri Sep 13 03:30:51 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Sep 13 03:30:51 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: read builtin simplifications and improvements * Src/builtin.c: the read builtin did not handle meta characters -Sat Sep 7 15:19:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Sep 7 15:19:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c, config.h.in, configure, configure.in: setting the USERNAME parameter executes initgroups() @@ -1951,7 +1951,7 @@ Sat Sep 7 15:19:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: define HAVE_NIS_PLUS only if the nis_list function is found -Tue Sep 3 20:33:07 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Sep 3 20:33:07 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: autoload has no effect for already defined functions & other cosmetic changes @@ -1959,7 +1959,7 @@ Tue Sep 3 20:33:07 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: control keys at a query prompt left ^ as a garbage on the screen. Fix from hoh@approve.se (Goran Larsson) -Sun Sep 1 22:58:11 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Sep 1 22:58:11 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/NEWS: more news @@ -1970,7 +1970,7 @@ Sun Sep 1 22:58:11 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: umask prints 0222 instead of 222 -Sat Aug 31 23:43:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Aug 31 23:43:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: fc -e should not change lastval @@ -2005,7 +2005,7 @@ Sat Aug 31 23:43:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: xterm cut&paste fix from Geoff (2095) -Thu Aug 29 21:07:24 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Aug 29 21:07:24 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c, Src/zle_tricky.c: run-help always uses the alias expanded word @@ -2013,13 +2013,13 @@ Thu Aug 29 21:07:24 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: fixes for slow refresh on some terminals from Geoff (2091) -Mon Aug 26 00:02:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Aug 26 00:02:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: save/restore underscore on execsave/execrestore * Src/zle_tricky.c: line was wrongly used unmetafied in getcurcmd() -Sun Aug 25 23:06:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Aug 25 23:06:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Functions/checkmail, Doc/zsh.texi, Doc/zshmisc.man, Src/cond.c, Src/parse.c: new -N contitional test to check if the access time @@ -2027,7 +2027,7 @@ Sun Aug 25 23:06:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> checkmail function is also included to check mailpath or the given forlers for new mails. - * Src/builtin.c: umask error message fix from János Farkas + * Src/builtin.c: umask error message fix from János Farkas <chexum@shadow.banki.hu> (2061) * Src/mem.c, Src/zsh.h: halloc simplification @@ -2043,7 +2043,7 @@ Sun Aug 25 23:06:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/globals.h, Src/signals.c, Src/signals.h, Src/utils.c: Some little speedups -Fri Aug 23 19:18:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Aug 23 19:18:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: compctl -X did not work @@ -2053,7 +2053,7 @@ Fri Aug 23 19:18:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c: $foo[(i)...], caused invalid subscript error -Thu Aug 22 21:57:47 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Aug 22 21:57:47 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * META-FAQ: ftp.uit.no now mirrors the primary site. ftp.nis.co.jp should be used instead of shirakaba.nis.co.jp @@ -2066,7 +2066,7 @@ Thu Aug 22 21:57:47 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/MACHINES: better description of the OSF/1 header bug workaround -Thu Aug 15 17:40:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Aug 15 17:40:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0.0 released @@ -2088,7 +2088,7 @@ Thu Aug 15 17:40:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: $(< nosuchfile) dumped core. From Peter (1985) -Wed Aug 14 17:02:39 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Aug 14 17:02:39 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/parse.c: ignore spaces in case foo in ( f* | b* ) ... @@ -2104,7 +2104,7 @@ Wed Aug 14 17:02:39 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Doc/zshoptions.man, Src/exec.c, Src/globals.h, Src/hashtable.h, Src/zsh.h: POSIX_BUILTIN option added -Tue Aug 13 20:36:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Aug 13 20:36:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Doc/zshparam.man, Src/init.c, Src/zle_misc.c: PS2 defaults to %_> , %_ prints all shell constructs. From Peter @@ -2112,7 +2112,7 @@ Tue Aug 13 20:36:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hist.c: a cast was missing in a debug test -Mon Aug 12 18:01:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Aug 12 18:01:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: limit fixes for Alpha/Linux 2.0.x from Jeff Blank <jfblank@mtu.edu> (1951) @@ -2135,7 +2135,7 @@ Mon Aug 12 18:01:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hist.c, Src/signals.c: Zsh coredumped on auto-logout -Sun Aug 11 19:46:50 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Aug 11 19:46:50 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/input.c: Fix history expansion in foo<!$. This may also fix some other rare bugs. From Peter (1930) @@ -2151,7 +2151,7 @@ Sun Aug 11 19:46:50 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: Untokenize and quote the current command before passing it to run-help. Based on art. 1920 from Bart. -Sun Aug 4 18:28:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Aug 4 18:28:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0-pre6 released @@ -2167,7 +2167,7 @@ Sun Aug 4 18:28:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: do not complete unset special parameters -Sat Aug 3 02:54:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Aug 3 02:54:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c, Src/builtin.c, Src/globals.h, Src/zsh.h: setopt prints non-default options. From Wayne (1907) @@ -2177,7 +2177,7 @@ Sat Aug 3 02:54:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_utils.c: zsfree used on the non-null-terminated vibuf[*].buf -Fri Aug 2 20:05:50 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Aug 2 20:05:50 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi: spelling fixes from Mark and added reference to obtaining precompiled documentation, zsh-doc.tar.gz from Clive @@ -2204,11 +2204,11 @@ Fri Aug 2 20:05:50 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hist.c: strinbeg/strinend increases/decreases strin. This fixes the here-document within command substitution bug. -Thu Aug 1 17:56:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Aug 1 17:56:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: \" should remain unchanged in here documents -Wed Jul 31 19:10:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jul 31 19:10:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0-pre5 released @@ -2249,7 +2249,7 @@ Wed Jul 31 19:10:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> message. This makes debugging easier since a breakpoint can be set to dputs. -Tue Jul 30 20:28:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jul 30 20:28:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c, Src/utils.c: zsh -s dereferenced wordchars while it was still NULL. Reported by Peter. @@ -2260,7 +2260,7 @@ Tue Jul 30 20:28:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshmisc.man, Src/hashtable.h: MANPATH is not special in sh/ksh mode -Mon Jul 29 23:44:19 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 29 23:44:19 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/mem.c: a little-bit improved ZSH_MEM_WARNING @@ -2282,7 +2282,7 @@ Mon Jul 29 23:44:19 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/parse.c: zsh -c 'echo foo ; & echo bar' should give parse error. -Sun Jul 28 22:34:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jul 28 22:34:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshoptions.man: SH_FILE_EXPN renamed to SH_FILE_EXPANSION, -s works as SHIN_STDIN again in sh/ksh mode, -t is @@ -2309,13 +2309,13 @@ Sun Jul 28 22:34:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/globals.h: -s is back in sh/ksh mode for SHIN_STDIN -Sat Jul 27 20:24:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jul 27 20:24:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/compat.c, Src/glob.c, Src/init.c, Src/mem.c, Src/zle_tricky.c: changes to make the upcoming gcc-2.8.0 more silent -Fri Jul 26 21:02:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jul 26 21:02:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0-pre4 released @@ -2341,7 +2341,7 @@ Fri Jul 26 21:02:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hashtable.c: print { } for empty funxtion definitions. From Peter (1778) -Thu Jul 25 21:50:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jul 25 21:50:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/signals.c, Src/subst.c: old compilers do not like char [] automatic initializers @@ -2375,14 +2375,14 @@ Thu Jul 25 08:08:47 1996 pws <pws@bolyai.cs.elte.hu> * Etc/FAQ: checked in with -k by hzoli at 1996/07/25 20:32:43 -Wed Jul 24 15:02:42 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jul 24 15:02:42 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/NEWS, Src/lex.c: disallow [[-z $foo]] again since it will cause problems with POSIX character classes (e.g. [[:ALPHA:]]). * Src/zle_misc.c: deletechar works at the end of lines. -Tue Jul 23 21:04:22 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jul 23 21:04:22 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/exec.c, Src/globals.h, Src/hashtable.c, Src/jobs.c, Src/signals.c, Src/zsh.h: more signal trap fixes @@ -2400,7 +2400,7 @@ Tue Jul 23 21:04:22 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: whence -c (and which) tells if the given command is not found. -Mon Jul 22 20:32:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 22 20:32:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshexpn.man, Doc/zshoptions.man, Doc/zshparam.man, Src/globals.h, Src/subst.c, Src/zsh.h: SH_FILE_EXPN option and @@ -2421,7 +2421,7 @@ Mon Jul 22 20:32:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> documentation. Updated to include changes made to man-pages pre2 -> pre3. FIXME: URL for ps & dvi. From Clive (1730) -Mon Jul 22 01:26:09 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 22 01:26:09 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Doc/zshmisc.man: traps defined by the trap builtin are unset in subshells @@ -2444,7 +2444,7 @@ Mon Jul 22 01:26:09 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> reorganization: setopt no_something is the same as unsetopt something. From Zefram. -Sat Jul 20 17:07:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jul 20 17:07:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * acconfig.h, config.h.in, configure, configure.in: configure check for working strcoll() @@ -2468,7 +2468,7 @@ Sat Jul 20 17:07:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: cmdstack changed bugfix from Zefram (1671) -Fri Jul 19 19:25:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jul 19 19:25:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c: parameter modifier fixes, better diagnostics @@ -2498,11 +2498,11 @@ Fri Jul 19 19:25:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: do not handle `<' in case patterns specially -Thu Jul 18 23:03:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jul 18 23:03:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c: a little simplification -Mon Jul 15 04:43:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 15 04:43:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0-pre3 released @@ -2534,7 +2534,7 @@ Mon Jul 15 04:43:43 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> always be raised up to the hard limits of the shell. Optimization: setrlimit() is only called when necessary. -Sat Jul 13 20:26:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jul 13 20:26:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/NEWS, Doc/zshmisc.man, Src/globals.h, Src/hashtable.h, Src/hist.c, Src/lex.c, Src/parse.c, Src/utils.c, @@ -2545,7 +2545,7 @@ Sat Jul 13 20:26:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: parsestr() failed if the string contained a backslash newline -Fri Jul 12 17:19:02 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jul 12 17:19:02 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_hist.c, Src/zle_main.c: always execute the zle command which ended an I-search. From Wayne (1613) @@ -2567,7 +2567,7 @@ Fri Jul 12 17:19:02 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> changed to foo () command for ksh and POSIX compatibility. This syntax does not require NO_SHORT_LOOPS. -Thu Jul 11 21:03:51 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jul 11 21:03:51 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: handle metacharacters in here documents @@ -2584,7 +2584,7 @@ Thu Jul 11 21:03:51 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: fix completing in $(...) -Wed Jul 10 20:52:55 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jul 10 20:52:55 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c, Src/subst.c, config.h.in, configure, configure.in: use strcoll for sorting. From Andrej Borsenkow @@ -2592,7 +2592,7 @@ Wed Jul 10 20:52:55 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: FOO=bar function leaved FOO=bar in the environment -Wed Jul 10 02:34:49 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jul 10 02:34:49 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: FOO=bar function leaved FOO=bar in the environment @@ -2603,7 +2603,7 @@ Wed Jul 10 02:34:49 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c, Src/zle_tricky.c: menu completion after ~/ and $foo/ fixed -Tue Jul 9 21:09:29 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jul 9 21:09:29 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Doc/zshmisc.man, Src/parse.c: case foo in (pattern) ... syntax documented and parsing improved @@ -2626,18 +2626,18 @@ Tue Jul 9 21:09:29 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: do not call exalias if errflag is true (fixes push-line-or-edit) -Mon Jul 8 20:37:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 8 20:37:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c: set shout fully buffered -Mon Jul 8 01:56:51 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 8 01:56:51 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/globals.h, Src/hist.c, Src/init.c, Src/input.c, Src/lex.c, Src/parse.c, Src/zsh.h: doexpandhist() no does not mess up the history. Here document are put into the history and some other here document fixes. -Sun Jul 7 16:03:48 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jul 7 16:03:48 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c: alloc_stackp debug check fix @@ -2646,16 +2646,16 @@ Sun Jul 7 16:03:48 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshbuiltins.man: improve ulimit documentation -Sun Jul 7 00:18:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jul 7 00:18:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: remove warning about the new <> behaviour -Sat Jul 6 18:17:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jul 6 18:17:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: fix completing in process and command substitutions -Fri Jul 5 21:58:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jul 5 21:58:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c, acconfig.h, config.h.in, configure, configure.in: configure check for NIS+ and some othe related @@ -2675,7 +2675,7 @@ Fri Jul 5 21:58:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> --enable-etcdir is back. The customized locations are put into the manual -Thu Jul 4 20:46:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jul 4 20:46:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0-pre2 released @@ -2694,17 +2694,17 @@ Thu Jul 4 20:46:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> PERMALLOC { l = dupstruct(list); } LASTALLOC; Idea from Bart and Zefram -Thu Jul 4 13:18:11 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jul 4 13:18:11 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshoptions.man: >| is preferred to >! -Mon Jul 1 20:59:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 1 20:59:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshmisc.man, Doc/zshoptions.man, Src/globals.h, Src/parse.c, Src/zsh.h: CSH_JUNKIE_PAREN option removed. From Bart Schaefer (1496) with some modifications -Mon Jul 1 20:13:26 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 1 20:13:26 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/mem.c, acconfig.h, config.h.in, configure, configure.in: check for brk/sbrk prototypes @@ -2716,7 +2716,7 @@ Mon Jul 1 20:13:26 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/system.h: RLIMIT_ definitions are not hidden in HPUX 10.x -Mon Jul 1 14:01:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 1 14:01:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: ulimit fixes @@ -2726,7 +2726,7 @@ Mon Jul 1 14:01:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> DIRSTACKSIZE, KEYTIMEOUT, LISTMAX, LOGCHECK, MAILCHECK, PERIOD, REPORTTIME, SAVEHIST and TMOUT are no longer special parameters. -Mon Jul 1 02:27:23 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 1 02:27:23 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/globals.h, Src/builtin.c, Src/exec.c, Src/init.c, Src/lex.c, Src/mem.c, Src/signals.c, Src/utils.c, Src/zle_main.c, @@ -2737,17 +2737,17 @@ Mon Jul 1 02:27:23 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> used instead of return between heapalloc/permalloc and lastalloc. From Bart Schaefer (1490) with some modifications -Mon Jul 1 01:13:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jul 1 01:13:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshbuiltins.man, Src/builtin.c, Src/exec.c, Src/hashtable.h: limit/unlimit/ulimit changes, bash/ksh compatible ulimit -Sun Jun 30 21:14:16 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 30 21:14:16 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/intro.ms, Doc/zsh.man, Doc/zshall.man: Paul Falstad's E-mail is pf@software.com -Sun Jun 30 15:46:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 30 15:46:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c (doshfunc): do not change the value of underscore @@ -2761,23 +2761,23 @@ Sun Jun 30 15:46:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: cmdoutpid and cmdoutval added to execstack -Sun Jun 30 01:30:27 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 30 01:30:27 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/mem.c: fill freed memory with zeros if ZSH_MEM_DEBUG is defined * Src/exec.c, Src/globals.h, Src/jobs.c, Src/signals.c, Src/zsh.h: cmdoutpid and cmdoutval added to execstack -Sat Jun 29 15:24:54 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jun 29 15:24:54 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/hist.c, Src/utils.c: fix problems with quad_t resource limits. From Geoff (1444,1471) -Fri Jun 28 17:52:52 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jun 28 17:52:52 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: use the heap during the execution of chpwd() -Fri Jun 28 15:00:11 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jun 28 15:00:11 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * ChangeLog: zsh-3.0-pre1 released @@ -2787,25 +2787,25 @@ Fri Jun 28 15:00:11 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Makefile.in: make release changes -Fri Jun 28 14:08:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jun 28 14:08:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/Makefile.in: zsh.info and zsh.dvi depends on zsh.texi * Doc/zsh.texi: Fixed compctl -d and -e. Added ref to ***/. HISTCHARS depreciated, use histchars. -Fri Jun 28 13:46:02 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jun 28 13:46:02 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c: foo.bar(:r) did not work -Fri Jun 28 01:27:57 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jun 28 01:27:57 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_misc.c: alwayslastprompt fix when listing in execute-named-command * Doc/zshparam.man, Src/jobs.c: %% represents % in TIMEFMT -Thu Jun 27 23:51:19 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jun 27 23:51:19 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/BUGS: I hope that all awk problems are solved by now @@ -2830,7 +2830,7 @@ Thu Jun 27 23:51:19 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * INSTALL, acconfig.h, config.h.in, configure, configure.in: --enable-etcdir added -Wed Jun 26 23:19:48 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jun 26 23:19:48 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hist.c, Doc/zshexpn.man: get !# work again. From Peter (1218 and 1219) @@ -2847,7 +2847,7 @@ Wed Jun 26 23:19:48 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshbuiltins.man, Src/builtin.c: POSIX conforming kill builtin -Wed Jun 26 08:58:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jun 26 08:58:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.man, Doc/zshall.man, Doc/zshbuiltins.man, Doc/zshcompctl.man, Doc/zshexpn.man, Doc/zshmisc.man, @@ -2857,11 +2857,11 @@ Wed Jun 26 08:58:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshbuiltins.man, Doc/zshmisc.man: -, command, exec and noglob are builtins -Tue Jun 25 23:15:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 25 23:15:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: \<nevline>c was interpreted as \c in dquote_parse() -Tue Jun 25 21:07:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 25 21:07:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/NEWS: AUTO_PUSHD and IFS change description @@ -2881,31 +2881,31 @@ Tue Jun 25 21:07:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: save underscore, lastval, noeval and badcshglob in execsave -Tue Jun 25 19:46:34 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 25 19:46:34 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshexpn.man: trailing newlines are removed in command substitution -Tue Jun 25 00:52:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 25 00:52:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/signals.c: new function execsave()/execrestore() used in dotrap() -Mon Jun 24 21:05:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 24 21:05:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: doshfunc must use the heap * Src/signals.c: dotrap should not change allocation state * Src/watch.c: do not watch utmp entries without a login name. - From János Farkas (1432) + From János Farkas (1432) * Src/utils.c: handle terminals faster than 100000 baud. From - János Farkas (1431) with modifications + János Farkas (1431) with modifications * Src/subst.c: fix nested $[$[...]] sunstitution -Fri Jun 21 14:40:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jun 21 14:40:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshexpn.man: <> is a redirection operator. From Mark Borges (1390) @@ -2925,7 +2925,7 @@ Fri Jun 21 14:40:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c: remove the undocumented [(foo)(bar)] glob feature since it is the same as (foo|bar). -Thu Jun 20 20:58:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jun 20 20:58:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/parse.c: enable < =(...) and > =(...) again @@ -2935,17 +2935,17 @@ Thu Jun 20 20:58:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: allow tilde and equals substitution with compctl -g -Wed Jun 19 20:55:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jun 19 20:55:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-2.6-beta21 released -Wed Jun 19 20:51:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jun 19 20:51:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: on Solaris RLIMIT_AS == RLIMIT_VMEM * configure, configure.in: remove -pedantic from gcc options -Wed Jun 19 20:21:33 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jun 19 20:21:33 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hashtable.c: fix printing of the command name tables and displaying of arrays etc. From Zefram (1259) @@ -2954,19 +2954,19 @@ Wed Jun 19 20:21:33 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> integer variables to zero before unsetting. From Zefram (1258) -Wed Jun 19 20:12:37 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jun 19 20:12:37 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/params.c, Src/subst.c, Src/utils.c: handle the case when the first character of IFS is a meta character -Tue Jun 18 21:05:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 18 21:05:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshexpn.man: [...] glob documentation * Doc/zshoptions.man: SH_GLOB disables numeric globbing on the result of parameter expansions and in some other cases. -Tue Jun 18 19:28:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 18 19:28:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c, Src/utils.c: handle null (but not unset) IFS @@ -2978,11 +2978,11 @@ Tue Jun 18 19:28:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> characters. in notstrcmp(): handle arbitrary big numbers if NUMERICGLOBSORT is used. -Mon Jun 17 18:33:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 17 18:33:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: reset lexstop to zero after most hungetc's -Mon Jun 17 02:14:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 17 02:14:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi: a major update from Clive Messer <clive@epos.demon.co.uk> @@ -2991,7 +2991,7 @@ Mon Jun 17 02:14:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/subst.c, Src/utils.c, Src/ztype.h: ksh/POSIX compatible IFS behaviour -Sun Jun 16 19:37:01 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 16 19:37:01 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c: ${(Oi)...} should sort case-independently in descending order. From Thorsten Meinecke (1337) @@ -3002,17 +3002,17 @@ Sun Jun 16 19:37:01 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: make noclobber a bit more secure -Sun Jun 16 18:50:47 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 16 18:50:47 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Misc/compctl-examples: compctl for the RedHat rpm utility -Sun Jun 16 14:50:42 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 16 14:50:42 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/system.h: include <sys/ioctl.h> if GWINSZ_IN_SYS_IOCTL is defined. This in fact just removes an earlier experimental patch which accicently got into the release. -Sat Jun 15 23:37:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jun 15 23:37:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshmisc.man, Etc/NEWS, Src/exec.c, Src/glob.c, Src/globals.h, Src/lex.c, Src/parse.c, Src/text.c, Src/zsh.h: @@ -3022,7 +3022,7 @@ Sat Jun 15 23:37:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: use heapalloc() in reversemenucomplete() -Tue Jun 11 21:03:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 11 21:03:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/glob.c, Src/globals.h, Src/lex.c, Src/parse.c, Src/text.c, Src/zsh.h: POSIX redirection changes. Epand word @@ -3038,7 +3038,7 @@ Tue Jun 11 21:03:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: use heapalloc() in do_menucomp() -Mon Jun 10 20:58:16 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 10 20:58:16 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c: treat pattern/ as pattern(-/) instead of pattern(/) @@ -3054,14 +3054,14 @@ Mon Jun 10 20:58:16 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: handle RLIMIT_AS in Linux 2.0 -Sun Jun 9 23:30:02 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 9 23:30:02 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: compctl -L fixes * Src/zle_tricky.c: compctl -l '' foo only worked for the first argument of foo. -Fri Jun 7 15:24:18 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jun 7 15:24:18 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-2.6-beta20 @@ -3081,7 +3081,7 @@ Fri Jun 7 15:24:18 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> mailpath, manpath, watch, psvar and path in sh/ksh compatibility mode. -Thu Jun 6 20:23:23 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jun 6 20:23:23 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c (doexpansion): move newlinklist() after heapalloc() @@ -3095,29 +3095,29 @@ Thu Jun 6 20:23:23 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> now only completes enabled commands. -d, -e documentation fixed. -Wed Jun 5 22:27:49 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jun 5 22:27:49 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: getcurcmd() did not use the heap when it called the lexer. I also added some debug tests. -Mon Jun 3 18:53:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 3 18:53:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hashtable.c, Src/zle_hist.c, Src/zle_main.c, Src/zle_tricky.c, Src/zle_utils.c: add some (char *) and (unsigned char *) casts -Mon Jun 3 16:55:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 3 16:55:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-2.6-beta20-test1 * Src/subst.c: multsub() did not like when prefork() resulted in an empty list -Mon Jun 3 03:14:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 3 03:14:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c: fix brace expansion bug -Mon Jun 3 01:42:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 3 01:42:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Makefile.in: config.status depends on Src/version.h @@ -3141,7 +3141,7 @@ Mon Jun 3 01:42:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/zle_tricky.c, Src/zle_vi.c, Src/zsh.h: reorganized option handling from Zefram (1227) -Sun Jun 2 23:36:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 2 23:36:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/builtin.c, Src/glob.c, Src/hashtable.h, Src/subst.c, Src/zsh.h: reorganize execcmd() again. Glob only @@ -3161,11 +3161,11 @@ Sun Jun 2 23:36:36 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/parse.c: give warnings when DEBUG is defined and the lexer is called with !useheap -Fri May 31 14:09:34 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri May 31 14:09:34 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/utils.c: nicezputs and nicechar fixes -Thu May 30 18:20:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 30 18:20:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: simplify makecline which also fixes a bug introcuced by the previous patch @@ -3176,17 +3176,17 @@ Thu May 30 18:20:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Interpret EXEC=exec ; $EXEC something like other shells. From Peter (1229) -Tue May 28 20:49:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue May 28 20:49:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_misc.c: fix gosmacs-transpose-chars bug when a line has less than two characters -Mon May 27 23:52:54 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon May 27 23:52:54 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: clwords initialisation after resizing clwords was wrong. From Zefram (1173) -Mon May 27 17:43:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon May 27 17:43:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: typeset -i2 a now works. Based on art. 1165 from SUZUKI Hisao <suzuki@oz.fantasy.otsl.oki.co.jp> @@ -3195,11 +3195,11 @@ Mon May 27 17:43:31 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshbuiltins.man: revised read manual entry from Peter (663) -Sun May 26 23:14:07 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun May 26 23:14:07 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/FAQ: New version from Peter -Thu May 23 20:14:05 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 23 20:14:05 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: further improve handling of null at the end of a completion word @@ -3214,7 +3214,7 @@ Thu May 23 20:14:05 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c (quotename): handle the (metafied) null character. From Zefram (1143) -Thu May 23 13:40:50 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 23 13:40:50 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-2.6-beta19 released @@ -3224,25 +3224,25 @@ Thu May 23 13:40:50 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c, Src/subst.c, Doc/zshexpn.man: ${...:#...} substitution now removes matching array elements -Thu May 23 01:29:48 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 23 01:29:48 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zshoptions.man: an attempt was made to document SH_GLOB * Src/builtin.c: popd now works even if chaselinks is set. From Anthony (1123) -Wed May 22 23:43:01 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed May 22 23:43:01 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c, Src/zle_tricky.c: add some remnulargs() * Src/builtin.c: print -m fixed -Wed May 22 21:00:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed May 22 21:00:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c, Src/globals.h, Src/init.c, Src/lex.c, Src/zsh.h: SH_GLOB option added -Wed May 22 20:19:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed May 22 20:19:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/signames.awk: revert changes made in beta18. @@ -3250,7 +3250,7 @@ Wed May 22 20:19:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c (getoutputfile): open the file before zfork() -Tue May 21 19:39:16 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue May 21 19:39:16 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-2.6-beta18 released @@ -3265,7 +3265,7 @@ Tue May 21 19:39:16 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * META-FAQ: Ftp site list changes -Mon May 20 01:24:24 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon May 20 01:24:24 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/signames.awk: change #else to \#else since some nawks did not like the former. From Johan Danielsson <joda@pdc.kth.se> @@ -3283,7 +3283,7 @@ Mon May 20 01:24:24 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: Undo Zefram's modifications in quotename() to fix a bug when completing ~/foo -Sun May 19 23:20:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun May 19 23:20:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: Reformat and add some comments. From Zefram (1092) @@ -3306,7 +3306,7 @@ Sun May 19 23:20:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Make substitution compatible with (ba)sh and other little cleanups in lex.c. -Fri May 17 20:23:47 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri May 17 20:23:47 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: 2.6-beta18-test1 @@ -3319,7 +3319,7 @@ Fri May 17 20:23:47 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/MACHINES: Note about GNU strip bug on OSF/1 -Thu May 16 23:46:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 16 23:46:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_hist.c, Src/zle_utils.c: Some simple cleanups in doisearch() and hstrnstr() @@ -3328,12 +3328,12 @@ Thu May 16 23:46:44 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> repeated on an empty search. It also fixes a rare isearch bug. From Wayne (1084) -Thu May 16 00:15:42 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 16 00:15:42 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * acconfig.h, config.h.in, configure, configure.in, Src/system.h: configure hacks against SCO bugs -Wed May 15 01:41:33 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed May 15 01:41:33 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_hist.c, Src/zle_misc.c: More 8-bit zle changes @@ -3342,7 +3342,7 @@ Wed May 15 01:41:33 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: compctl fixes from Zefram (1068) -Tue May 14 03:19:34 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue May 14 03:19:34 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c, Src/zle_hist.c, Src/zle_main.c, Src/zsh.h: Keep modified history lines until the next accept* function. Make @@ -3352,7 +3352,7 @@ Tue May 14 03:19:34 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: in getoutputfile() returned the ztrdupped name from the jobtable From Peter (1061) -Mon May 13 02:17:07 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon May 13 02:17:07 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: temporary 8-bit clean patches @@ -3380,16 +3380,16 @@ Mon May 13 02:17:07 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/utils.c: In metafy use -1 instead of zero if the len is unknown -Sun May 12 01:46:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun May 12 01:46:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c, Src/zle_hist.c, Src/zle_utils.c: Incremental search fixes from Wayne (1051) -Sat May 11 00:42:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat May 11 00:42:14 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * config.guess, configure: Use autoconf-2.10 -Fri May 10 21:01:56 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri May 10 21:01:56 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/glob.c, Src/hashtable.c, Src/utils.c, Src/zle.h, Src/zle_hist.c, Src/zle_main.c, Src/zle_misc.c, @@ -3409,7 +3409,7 @@ Fri May 10 21:01:56 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: Metafy was missing for autoloaded functions -Fri May 10 12:06:23 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri May 10 12:06:23 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Makefile.in: Improve check-rcs and handle dot-files (like Src/.indent.pro) @@ -3417,7 +3417,7 @@ Fri May 10 12:06:23 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: Use permanent allocation for cmdstr instead of the heap to prevent SEGV -Tue May 7 20:49:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue May 7 20:49:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/glob.c, Src/input.c, Src/zle_misc.c, Src/zle_tricky.c: Some changes to make Ultrix cc happy (1001) @@ -3428,11 +3428,11 @@ Tue May 7 20:49:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: Close process substitution file descriptors in the child process (987) -Tue May 6 23:59:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue May 6 23:59:59 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * zsh-2.6-beta17 released -Mon May 6 01:37:20 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon May 6 01:37:20 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/signals.h: SIGNAL_HANDTYPE is RETSIGTYPE (*)_((int)) @@ -3455,7 +3455,7 @@ Mon May 6 01:37:20 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> are marked in fdtable. Use /dev/fd/ if it is available for <(...) and >(...) process substitutions. -Fri May 3 03:38:28 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri May 3 03:38:28 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * README, META-FAQ, Util/zsh-development-guide: new maintainer. Some other changes in the README. @@ -3878,7 +3878,7 @@ Fri May 3 03:38:28 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Workaround a bug in GNU autoconf which makes configure think that there is no -lcourses and -lncurses if the test for - -ltermcap failed. From János Farkas <chexum@shadow.banki.hu> + -ltermcap failed. From János Farkas <chexum@shadow.banki.hu> (972) Sun April 27 1996 diff --git a/Etc/ChangeLog-3.1 b/Etc/ChangeLog-3.1 index a1a553794..22ea9bc66 100644 --- a/Etc/ChangeLog-3.1 +++ b/Etc/ChangeLog-3.1 @@ -7067,7 +7067,7 @@ * Clint: 9333: Completion/User/_a2ps: a2ps can take PostScript input files. - * Johan Sundström: 9331: Doc/Zsh/compwid.yo: typo. + * Johan Sundström: 9331: Doc/Zsh/compwid.yo: typo. * Sven: 9330: Src/mem.c: debugging message not needed when using mmap(). @@ -10568,7 +10568,7 @@ * pws: 7148: INSTALL: User subdirectory - * Thomas Köhler: 7146: Completion/User/_make: didn't work. + * Thomas Köhler: 7146: Completion/User/_make: didn't work. * pws: 7145: Completion/User/_sh: use compset -q for completing after -c option @@ -13536,7 +13536,7 @@ Tue Jan 6 23:29:43 1998 Andrew Main <zefram@fysh.org> Src/zsh.h: Option RM_STAR_WAIT to wait ten seconds at the `rm *' prompt. (zefram, 2999) -Tue Jun 3 06:14:14 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jun 3 06:14:14 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.1.2 released @@ -13544,7 +13544,7 @@ Tue Jun 3 06:14:14 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/jobs.c: pg(){ less;};:|pg caused suspended (tty input) -Mon Jun 2 07:52:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jun 2 07:52:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/paths.yo.in: Updated date @@ -13578,7 +13578,7 @@ Mon Jun 2 07:52:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c: The T glob flag did not work -Sun Jun 1 08:02:19 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jun 1 08:02:19 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/system.h: Use _POSIX_VDISABLE is available. Fixes ^@ in zle on some systems. @@ -13600,7 +13600,7 @@ Sun Jun 1 08:02:19 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/subst.c, Src/text.c, Src/utils.c, Src/watch.c: Declare functions used locally in one file static. -Sat May 31 07:29:53 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat May 31 07:29:53 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/comp.h, Src/prototypes.h, Src/makepro.sh, Src/Builtins/Makefile.in, Src/Makefile.in, @@ -13609,7 +13609,7 @@ Sat May 31 07:29:53 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> Generate prototypes for static functions. Ideas from articles 3123 and 3124 from Zefram. -Thu May 29 05:17:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 29 05:17:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/cond.c: directories are always executable by root @@ -13618,12 +13618,12 @@ Thu May 29 05:17:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * aclocal.m4, configure, configure.in: --enable-ansi2knr configure option added. From Zefram (3122) -Tue May 20 05:22:16 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue May 20 05:22:16 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: if abort or edit used on a correct prompt, do not attempt to correct further words on the line. -Sun May 18 18:57:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun May 18 18:57:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/exec.c, Src/init.c, Src/signals.c, Src/jobs.c: Do not handle SIGPIPE specially for shells with job control @@ -13635,14 +13635,14 @@ Sun May 18 18:57:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/signals.c: `:`; while true; do; done was uninterruptible -Mon May 12 09:01:55 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon May 12 09:01:55 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: on NetBSD <sys/time.h> is needed for rlimit type checks. From Geoff. * Src/hist.c: !:2-1 history expansion caused memory corruption -Sun May 11 08:52:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun May 11 08:52:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/lex.c: $((foo);bar) syntax works @@ -13655,7 +13655,7 @@ Sun May 11 08:52:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: make sure zexit is not reentered when its execution is interrupted by a signal. -Fri May 9 07:59:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri May 9 07:59:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: print_if_link (used by whence -s) did not work well. @@ -13667,7 +13667,7 @@ Fri May 9 07:59:00 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/jobs.c: printjobs() set errflag when the foreground process was interrupted. -Thu May 8 09:18:56 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu May 8 09:18:56 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/cond.c: [[ -x file ]] does stat for privileged users @@ -13680,11 +13680,11 @@ Thu May 8 09:18:56 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_tricky.c, Src/hist.c, Src/lex.c, Src/parse.c: ((foo);bar) now works -Wed May 7 14:50:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed May 7 14:50:08 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/Makefile.in: make clean should delete generated htmls -Tue May 6 06:33:06 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue May 6 06:33:06 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/Makefile.in: rules to create FAQ and FAQ.html from the yodl source @@ -13711,7 +13711,7 @@ Tue May 6 06:33:06 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> Allow adding/deleting nodes during scanhashtable. From Zefram (3058) -Mon May 5 09:29:22 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon May 5 09:29:22 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hist.c: % word designator fix from Bruce Murphy <packrat@iinet.net.au> (3065) @@ -13751,7 +13751,7 @@ Mon May 5 09:29:22 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/builtin.c, Src/params.c: local parameters can hide special parameters. From Zefram (3048) -Sun May 4 06:16:44 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun May 4 06:16:44 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Builtins/Makefile.in, Src/Makefile.in, Src/Modules/Makefile.in, Src/Zle/Makefile.in, aczsh.m4, @@ -13772,7 +13772,7 @@ Sun May 4 06:16:44 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> created. rlimits.c moved to Src/Builtins and converted into a loadable module. -Wed Apr 30 07:40:30 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Apr 30 07:40:30 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/Zsh/grammar.yo, Src/globals.h, Src/lex.c, Src/loop.c, Src/parse.c, Src/text.c, Src/zsh.h: ksh style ;& case @@ -13804,7 +13804,7 @@ Wed Apr 30 07:40:30 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> acconfig.h, aclocal.m4: The config part of the nameclash patch from Zefram (3028). The code part does not work with ansi2knr. -Mon Apr 28 07:28:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Apr 28 07:28:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/comp.h, Src/Zle/comp1.c, Src/Zle/compctl.c, Src/Zle/deltochar.c, Src/Zle/zle.h, Src/Zle/zle_bindings.c, @@ -13865,7 +13865,7 @@ Mon Apr 28 07:28:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_main.c, Src/Zle/zle_tricky.c: menu completion did not work well with auto_param_keys. From Zefram (3011) -Sat Apr 26 06:26:11 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Apr 26 06:26:11 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Functions/zed: Reenter zed if it fails to save the file @@ -13888,7 +13888,7 @@ Sat Apr 26 06:26:11 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> allow autoloading multiple builtins from a single file in one command. From Zefram (2997) -Fri Apr 25 06:41:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Apr 25 06:41:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zman.yo: use UPPERCASE yodl macro @@ -13928,11 +13928,11 @@ Fri Apr 25 06:41:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> Doc/Zsh/seealso.yo, Doc/zsh.yo, Doc/zshmodules.yo: Module documentations from zefram (2994) -Sun Apr 20 07:24:12 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Apr 20 07:24:12 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c, Src/params.c, Src/utils.c: Remove setintenv() -Tue Apr 15 05:51:27 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Apr 15 05:51:27 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_refresh.c: SGTABTYPE can contain more than one bit set. From Geoff (2976) @@ -13958,16 +13958,16 @@ Tue Apr 15 05:51:27 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_main.c: vared path caused permanent allocation in arrayfixenv -Sat Apr 12 04:27:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Apr 12 04:27:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_misc.c: Overwrite mode did not work -Sat Mar 8 00:17:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Mar 8 00:17:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/compctl.c: Sometimes an incorrect compctl caused a core dump. From Peter (2942) -Fri Mar 7 23:54:18 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Mar 7 23:54:18 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in: zle_binding.pro is not used @@ -14037,7 +14037,7 @@ Tue Feb 11 20:25:59 1997 Zoltan Hidvegi <hzoli@cs.elte.hu> * config.h.in, Src/compat.c, Src/utils.c, configure, configure.in: stupid AIX 3.2 does not have fchdir -Tue Jan 28 00:57:37 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jan 28 00:57:37 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.1.1 released @@ -14046,7 +14046,7 @@ Tue Jan 28 00:57:37 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> Doc/zshmisc.1, Doc/zshoptions.1, Doc/zshparam.1, Doc/zshzle.1: yodl generated generated documentation -Mon Jan 27 22:04:29 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jan 27 22:04:29 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/signals.c: temprarily set breaks to zero when executing a trap @@ -14054,7 +14054,7 @@ Mon Jan 27 22:04:29 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/parse.c: words following for ((...)) are in command position. -Sun Jan 26 23:29:48 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jan 26 23:29:48 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/hashtable.h: fix cd -, use unrecognized option arguments literally @@ -14066,7 +14066,7 @@ Sun Jan 26 23:29:48 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c: set noerrexit to -1 in setupvals() -Sat Jan 25 20:07:46 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jan 25 20:07:46 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c, Src/utils.c: some assignments were missing from my spacesplit fix @@ -14079,7 +14079,7 @@ Sat Jan 25 20:07:46 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Modules/Makefile.in, Src/Modules/clone.c: new builtin: start a forked instance of the current shell on a new terminal -Thu Jan 23 15:45:27 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jan 23 15:45:27 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_refresh.c, Src/globals.h, Src/prompt.c: redisplay fix for multiline prompts from Geoff (2817) @@ -14099,14 +14099,14 @@ Thu Jan 23 15:45:27 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/Zsh/zle.yo: what-cursor-position zle function documented -Wed Jan 22 00:54:02 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jan 22 00:54:02 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/Zsh/builtins.yo: cd -sLP documentation * Doc/Zsh/builtins.yo, Src/module.c: zmodload -au removes defined but not yet loaded builtins -Tue Jan 21 20:38:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jan 21 20:38:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/ztexi.yo: sitem() fix for TeX @@ -14114,7 +14114,7 @@ Tue Jan 21 20:38:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/Zsh/builtins.yo, Doc/ztexi.yo: TeX changes -Mon Jan 20 21:11:22 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jan 20 21:11:22 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/hashtable.h, acconfig.h, config.h.in, configure, configure.in: some old compilers cannot initialise a union @@ -14142,14 +14142,14 @@ Mon Jan 20 21:11:22 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Modules/files.c: rm -r works with arbitrary deep hierarchies. rm -r can be interrupted -Sun Jan 19 13:30:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jan 19 13:30:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c: glob arbitrary deep directory structures * Src/mem.c, Src/Zle/zle_keymap.c, Src/subst.c, Src/utils.c, Src/zsh.h: add real hrealloc() -Sat Jan 18 22:34:17 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jan 18 22:34:17 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_keymap.c: in bindkey -s the string was not zrdupped. @@ -14165,7 +14165,7 @@ Sat Jan 18 22:34:17 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> alloca() and VARARR macro added which defines a variable sized automatic array -Tue Jan 14 23:17:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jan 14 23:17:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/glob.c: debugging changes (the change is mostrly reindentation) @@ -14179,13 +14179,13 @@ Tue Jan 14 23:17:34 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/options.c, Src/init.c: the -r command line option turns on restricted mode -Mon Jan 13 21:28:35 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jan 13 21:28:35 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/exec.c, Src/hashtable.h, Src/init.c, Src/options.c, Src/params.c, Src/text.c, Src/zsh.h: RESTRICTED option added -Sun Jan 12 01:00:04 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jan 12 01:00:04 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_tricky.c: automenu starts iff lastambig is true. From Zefram (2781) @@ -14204,7 +14204,7 @@ Sun Jan 12 01:00:04 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle.h, Src/Zle/zle_hist.c, Src/Zle/zle_utils.c: remove some code duplications and undo fixes. From Zefram (2769) -Sat Jan 11 23:45:50 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Jan 11 23:45:50 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/compat.c: lstat is defined to stat on systems without lstat @@ -14222,14 +14222,14 @@ Sat Jan 11 23:45:50 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: fix bugs when there was no current job after disown -Thu Jan 9 16:07:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jan 9 16:07:31 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/rlimits.c: zstrtorlimit was defined instead of zstrtorlimt * Src/Modules/Makefile.in, Src/Zle/Makefile.in: some buggy makes could not find out how to make .so from .c -Wed Jan 8 22:02:51 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jan 8 22:02:51 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/Zsh/zle.yo, Doc/zsh.texi, Doc/zshzle.man, Src/Zle/zle.h, Src/Zle/zle_bindings.c, Src/Zle/zle_main.c, Src/Zle/zle_misc.c, @@ -14268,7 +14268,7 @@ Wed Jan 8 22:02:51 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> Doc/zshoptions.yo, Doc/zshparam.yo, Doc/zshzle.yo, Doc/ztexi.yo: documentation rewritten into yodl format by Zefram. -Tue Jan 7 23:10:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Jan 7 23:10:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c, Src/builtin.c, Src/exec.c: print error when changing read-only variables, prevent core dump when assigning @@ -14276,7 +14276,7 @@ Tue Jan 7 23:10:24 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_tricky.c: compctl -S bugfix -Mon Jan 6 20:43:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Jan 6 20:43:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, acconfig.h, config.h.in, configure, configure.in: better /dev/fd filesystem check @@ -14307,7 +14307,7 @@ Mon Jan 6 20:43:36 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/Zle/zle_thingy.c, Src/Zle/zle_tricky.c, Src/Zle/zle_vi.c, Src/mods.conf: first zle extendability patch from Zefram (2710) -Sun Jan 5 23:33:32 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Jan 5 23:33:32 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/exec.c: do builtin autoloading in execcmd and do not ignore BINF_PSPECIAL and BINF_MAGICEQUALS flags for the @@ -14335,7 +14335,7 @@ Sun Jan 5 23:33:32 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_main.c: EOF ignored in interactive mode when not in the first line. From Peter (2713) -Fri Jan 3 02:26:03 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Jan 3 02:26:03 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Misc/compctl-examples: setopt/unsetopt compctl fixes @@ -14364,7 +14364,7 @@ Fri Jan 3 02:26:03 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/prompt.c: my long directories in prompt fix broke prompt truncation. From Zefram (2687) -Thu Jan 2 20:57:33 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Jan 2 20:57:33 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: alpha-linux defines signals in <asm/signum.h>. From David Krinsky <krinsky@hcs.harvard.edu> @@ -14400,7 +14400,7 @@ Thu Jan 2 20:57:33 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/conf.sed, Src/mkbltnmlst.sh, Src/mkstamp.sh: move big shell scripts from the Makefile to separate files. -Wed Jan 1 20:04:06 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Jan 1 20:04:06 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/options.c: remove union initialisation hacks and use optno for aliases @@ -14411,7 +14411,7 @@ Wed Jan 1 20:04:06 1997 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/system.h, configure, configure.in: dgux CLOBBERS_TYPEAHEAD. From Roderick Schertler <roderick@gate.net> (2623) -Tue Dec 31 02:28:09 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Dec 31 02:28:09 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in, Src/Modules/Makefile.in, Src/Zle/Makefile.in: improve proto dependency rules @@ -14428,7 +14428,7 @@ Tue Dec 31 02:28:09 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_tricky.c, Src/params.c, Src/utils.c: use dupstrpfx/ztrduppfx -Mon Dec 30 23:24:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Dec 30 23:24:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in, Src/init.c, Src/mods.conf, Src/xmods.conf: automatic generation of linked-in module boot code and automatic @@ -14458,7 +14458,7 @@ Mon Dec 30 23:24:46 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Rearrange functions so that they are already defined when first referenced. -Sun Dec 29 22:34:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Dec 29 22:34:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Doc/zshexpn.man, Doc/zshmisc.man, Src/glob.c, Src/lex.c: brace related bugfixes @@ -14468,7 +14468,7 @@ Sun Dec 29 22:34:21 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/loop.c, Src/parse.c: case argument should not be globbed -Sat Dec 28 19:55:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Dec 28 19:55:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/options.c (optlookup): no prefix was ignored @@ -14477,7 +14477,7 @@ Sat Dec 28 19:55:04 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> addbuiltins() and deletebuiltins() functions to add/delete a group of builtins. From Zefram (2646) -Fri Dec 27 23:33:20 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Dec 27 23:33:20 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Modules/example.c, Src/Zle/compctl.c, Src/Zle/zle_main.c, Src/init.c, Src/module.c: addbuiltin can now set all members of @@ -14492,7 +14492,7 @@ Fri Dec 27 23:33:20 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: minor noclobber changes -Thu Dec 26 22:43:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Dec 26 22:43:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/hist.c, Src/lex.c, Src/mem.c, Src/params.c, Src/subst.c, Src/text.c, Src/utils.c: all "can't happen" @@ -14541,7 +14541,7 @@ Thu Dec 26 22:43:13 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c, Src/compat.c, Src/utils.c: handle arbitrary long pathnames in pwd -Wed Dec 25 16:04:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Dec 25 16:04:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Doc/zshoptions.man, Src/Makefile.in, Src/Zle/zle_tricky.c, Src/builtin.c, Src/glob.c, Src/globals.h, @@ -14549,7 +14549,7 @@ Wed Dec 25 16:04:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/utils.c, Src/zsh.h, Src/options.c: New hash table for options, option aliases. From Zefram (2612) -Tue Dec 24 02:25:20 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Dec 24 02:25:20 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_tricky.c, Src/glob.c, Src/hashtable.c, Src/utils.c: move . and .. special case handling into zreaddir(). From @@ -14567,7 +14567,7 @@ Tue Dec 24 02:25:20 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> improvements, better support for builtin modules. From Zefram (2611) -Sat Dec 21 02:00:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Dec 21 02:00:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.1.0 released @@ -14583,7 +14583,7 @@ Sat Dec 21 02:00:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: SunOS 4 shared libraries do not work when they are stripped -Thu Dec 19 21:27:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Dec 19 21:27:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c: work around a bug in NeXTStep 3.2 which caused slow refresh @@ -14591,19 +14591,19 @@ Thu Dec 19 21:27:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/FAQ: FAQ from Peter: Id: zsh.FAQ,v 2.22 1996/12/19 09:52:11 pws Exp -Wed Dec 18 23:51:24 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Dec 18 23:51:24 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Doc/zsh.texi, Etc/FAQ, META-FAQ: ftp.prz.tu-berlin.de no longer mirrors zsh, uiarchive.uiuc.edu name correction -Tue Dec 17 20:08:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Dec 17 20:08:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c: remove some compiler varnings * Src/Makefile.in: rlimits.h depends on rlimits.awk. Cosmetic changes. From Zefram (2589) -Mon Dec 16 03:33:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Dec 16 03:33:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * README: unknown limits should no longer be a problem @@ -14613,13 +14613,13 @@ Mon Dec 16 03:33:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: fg %% failed and disabled job control sometimes when there were no current job -Sun Dec 15 01:07:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Dec 15 01:07:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * README: beta warning * Misc/compctl-examples: compctl for zmodload -Sat Dec 14 22:50:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Dec 14 22:50:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_main.c: Remove unnecessary prefix delay in zle. From Zefram (2583) @@ -14635,7 +14635,7 @@ Sat Dec 14 22:50:00 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: working fifos should be tested in /tmp -Wed Dec 11 02:30:39 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Dec 11 02:30:39 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_tricky.c, Src/builtin.c, Src/exec.c, Src/globals.h, Src/hist.c, Src/init.c, Src/input.c, Src/lex.c, Src/zsh.h: @@ -14646,7 +14646,7 @@ Wed Dec 11 02:30:39 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/params.c: use the heap in getstrvalue() -Tue Dec 10 02:27:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Dec 10 02:27:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_refresh.c: single line zle refresh bugfix from Geoff (2549) @@ -14661,7 +14661,7 @@ Tue Dec 10 02:27:35 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: use the heap in zexit() -Sun Dec 8 21:32:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Dec 8 21:32:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c, Doc/zshbuiltins.man, Src/hashtable.h, Src/module.c: zmodload can be used to define atoloaded builtins and module @@ -14709,7 +14709,7 @@ Sun Dec 8 21:32:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: show metafied characters correctly in bad option errors. From Zefram (2497) -Thu Dec 5 03:59:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Dec 5 03:59:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in, Src/Modules/Makefile.in, Src/Modules/example.c, Src/Zle/Makefile.in, Src/Zle/deltochar.c, Src/Zle/zle.h, @@ -14726,7 +14726,7 @@ Thu Dec 5 03:59:45 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> cleanup_modname is back since on elf all module use one common name space. Lots of other changes. -Wed Nov 27 03:20:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Nov 27 03:20:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_main.c, Src/Zle/zle_vi.c: ANSI was broken and fixed again in zle_main.c ESC in vi command mode caused SEGV. From @@ -14736,7 +14736,7 @@ Wed Nov 27 03:20:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> --enable-zsh-debug. Link non-debugged zsh with -s. From Zefram (2479) -Tue Nov 26 02:45:15 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Nov 26 02:45:15 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: the STTY parameter did not work well when pipes were used. From Peter (2474) @@ -14767,7 +14767,7 @@ Tue Nov 26 02:45:15 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Etc/FAQ: FAQ from Peter: Id: zsh.FAQ,v 2.21 1996/11/25 09:13:28 pws Exp -Mon Nov 25 02:39:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Nov 25 02:39:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/module.c: try to load the modules with .DL_EXT appended first. Honor PATH_DIRS when loading a module. @@ -14784,7 +14784,7 @@ Mon Nov 25 02:39:08 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/init.c, Src/main.c, Src/module.c: modules can now statically compiled into zsh. From Zefram (2455) -Sun Nov 24 22:44:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Nov 24 22:44:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_move.c: vi-goto-mark fix from Thorsten @@ -14795,7 +14795,7 @@ Sun Nov 24 22:44:12 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/lex.c, Src/loop.c, Src/parse.c, Src/utils.c, Src/zsh.h: for ((expr; expr; expr)) command added -Sat Nov 23 23:34:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Nov 23 23:34:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c: ((...)) substituted the expression twice and coredumped on (()) @@ -14813,7 +14813,7 @@ Sat Nov 23 23:34:58 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/subst.c, acconfig.h, config.h.in, configure, configure.in: added configure check for variable-length automatic arrays -Wed Nov 20 00:58:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Nov 20 00:58:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: The spell checker always tries to fix as many leading directory compontents as possible. From Bart (2429) @@ -14825,7 +14825,7 @@ Wed Nov 20 00:58:06 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Zle/zle_tricky.c: my spell-word fix used an uninitialised pointer. Fix from Bart (2428) -Sun Nov 17 21:21:22 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Nov 17 21:21:22 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in: fix the .SUFFIXES list @@ -14847,7 +14847,7 @@ Sun Nov 17 21:21:22 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/exec.c, Src/parse.c, Src/text.c, Src/zsh.h: do not convert ((...)) to builtin let internally. -Sat Nov 16 23:57:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Nov 16 23:57:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: spell-word zle function did not work for word beginning with a tilde @@ -14871,14 +14871,14 @@ Sat Nov 16 23:57:40 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_tricky.c: the cursor moved back on TAB when it was on "". From Zefram (2415) -Thu Nov 14 12:59:25 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Nov 14 12:59:25 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/zle_refresh.c: one more refresh fix from Geoff (2404) * Src/Makefile.in, Src/Modules/deltochar.c, Src/Modules/example.c, configure, configure.in: move modules into Src/Modules -Wed Nov 13 21:47:28 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Nov 13 21:47:28 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Modules/deltochar.c, Src/Modules/example.c, Src/module.c: unload the module if the boot routine failed @@ -14905,7 +14905,7 @@ Wed Nov 13 21:47:28 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> Src/zle_main.c, Src/zle_misc.c, Src/zle_tricky.c, Src/zle_vi.c: zle function modules from Peter (2339) -Tue Nov 12 21:35:18 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Tue Nov 12 21:35:18 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/init.c, Src/zle_refresh.c: zle-refresh patch from Geoff (2336) @@ -14914,7 +14914,7 @@ Tue Nov 12 21:35:18 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in: added automatic ansi2knr rules -Mon Nov 11 21:55:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Mon Nov 11 21:55:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in, Src/Modules/example.c, Src/module.c, configure, configure.in: various module changes from Zefram (2338) @@ -14922,12 +14922,12 @@ Mon Nov 11 21:55:17 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * configure, configure.in: a $ was missing. IRIX gcc needs -shared for modules. From Peter -Wed Nov 6 20:54:33 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Wed Nov 6 20:54:33 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in, Src/mod_example.c: moduule modifications for old compilers -Sun Nov 3 23:00:05 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sun Nov 3 23:00:05 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/system.h: set OPEN_MAX to 64 if NOFILE is not defined @@ -14937,7 +14937,7 @@ Sun Nov 3 23:00:05 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Functions/pushd: setopt localoptions must come after emulate -R zsh -Sat Nov 2 22:47:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Sat Nov 2 22:47:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/compat.c, Src/hashtable.c, Src/utils.c: do not blindly assume that . and .. are always the first two enrties in a @@ -14946,7 +14946,7 @@ Sat Nov 2 22:47:53 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/utils.c: max_zsh_fd should not be decreased below zero -Thu Oct 31 01:38:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Thu Oct 31 01:38:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/Makefile.in, Src/globals.h, Src/hashtable.c, Src/hashtable.h, Src/init.c, Src/mod_example.c, Src/module.c, @@ -14960,6 +14960,6 @@ Thu Oct 31 01:38:10 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/builtin.c: read -c ignored its first parameter -Fri Oct 25 20:50:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> +Fri Oct 25 20:50:38 1996 Zoltán Hidvégi <hzoli@cs.elte.hu> * Src/version.h: zsh-3.0.1 released diff --git a/Functions/Misc/run-help b/Functions/Misc/run-help index c817b67d6..e351dd6a6 100644 --- a/Functions/Misc/run-help +++ b/Functions/Misc/run-help @@ -10,7 +10,7 @@ emulate -RL zsh -local HELPDIR="${HELPDIR:-/usr/share/zsh/$ZSH_VERSION/help}" +local HELPDIR="${HELPDIR:-@runhelpdir@}" [[ $1 == "." ]] && 1="dot" [[ $1 == ":" ]] && 1="colon" diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc index e9dcc78b9..1f3392d92 100644 --- a/Functions/Misc/zcalc +++ b/Functions/Misc/zcalc @@ -85,10 +85,13 @@ # similarly -##<base>; they set the default output base, with and without # a base discriminator in front, respectively. # -# -# To do: -# - separate zcalc history from shell history using arrays --- or allow -# zsh to switch internally to and from array-based history. +# With the option -e, the arguments are evaluated as if entered +# interactively. So, for example: +# zcalc -e -\#16 -e 1055 +# prints +# 0x41f +# Any number of expressions may be given and they are evaluated +# sequentially just as if read automatically. emulate -L zsh setopt extendedglob @@ -97,7 +100,8 @@ setopt extendedglob # begin with _. local line ans base defbase forms match mbegin mend psvar optlist opt arg local compcontext="-zcalc-line-" -integer num outdigits outform=1 +integer num outdigits outform=1 expression_mode +local -a expressions # We use our own history file with an automatic pop on exit. history -ap "${ZDOTDIR:-$HOME}/.zcalc_history" @@ -114,7 +118,7 @@ float PI E (( PI = 4 * atan(1), E = exp(1) )) # Process command line -while [[ -n $1 && $1 = -(|[#-]*|f) ]]; do +while [[ -n $1 && $1 = -(|[#-]*|f|e) ]]; do optlist=${1[2,-1]} shift [[ $optlist = (|-) ]] && break @@ -130,11 +134,11 @@ while [[ -n $1 && $1 = -(|[#-]*|f) ]]; do arg=$1 shift else - print "-# requires an argument" >&2 + print -- "-# requires an argument" >&2 return 1 fi if [[ $arg != (|\#)[[:digit:]]## ]]; then - print - "-# requires a decimal number as an argument" >&2 + print -- "-# requires a decimal number as an argument" >&2 return 1 fi defbase="[#${arg}]" @@ -142,10 +146,18 @@ while [[ -n $1 && $1 = -(|[#-]*|f) ]]; do (f) # Force floating point operation setopt forcefloat ;; + (e) # Arguments are expressions + (( expression_mode = 1 )); + ;; esac done done +if (( expression_mode )); then + expressions=("$@") + argv=() +fi + for (( num = 1; num <= $#; num++ )); do # Make sure all arguments have been evaluated. # The `$' before the second argv forces string rather than numeric @@ -156,7 +168,13 @@ done psvar[1]=$num local prev_line cont_prompt -while vared -cehp "${cont_prompt}${ZCALCPROMPT}" line; do +while (( expression_mode )) || + vared -cehp "${cont_prompt}${ZCALCPROMPT}" line; do + if (( expression_mode )); then + (( ${#expressions} )) || break + line=$expressions[1] + shift expressions + fi if [[ $line = (|*[^\\])('\\')#'\' ]]; then prev_line+=$line[1,-2] cont_prompt="..." diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git index c44be398e..e6791cb7a 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git @@ -132,7 +132,7 @@ fi VCS_INFO_adjust VCS_INFO_git_getaction ${gitdir} -gitbase=${PWD%/${$( ${vcs_comm[cmd]} rev-parse --show-prefix )%/##}} +gitbase=$( ${vcs_comm[cmd]} rev-parse --show-toplevel ) rrn=${gitbase:t} local patchdir=${gitdir}/patches/${gitbranch} diff --git a/Functions/VCS_Info/VCS_INFO_reposub b/Functions/VCS_Info/VCS_INFO_reposub index 0fab863f1..1c16f0e7b 100644 --- a/Functions/VCS_Info/VCS_INFO_reposub +++ b/Functions/VCS_Info/VCS_INFO_reposub @@ -5,9 +5,9 @@ setopt localoptions extendedglob NO_shwordsplit local base=${1%%/##} -[[ ${PWD} == ${base}/* ]] || { +[[ $(pwd -P) == ${base}/* ]] || { printf '.' return 1 } -printf '%s' ${PWD#$base/} +printf '%s' ${$(pwd -P)#$base/} return 0 @@ -11,7 +11,7 @@ may simply be omitted. -- The Z Shell is copyright (c) 1992-2009 Paul Falstad, Richard Coleman, -Zoltán Hidvégi, Andrew Main, Peter Stephenson, Sven Wischnowsky, and +Zoltán Hidvégi, Andrew Main, Peter Stephenson, Sven Wischnowsky, and others. All rights reserved. Individual authors, whether or not specifically named, retain copyright in all changes; in what follows, they are referred to as `the Zsh Development Group'. This is for convenience diff --git a/Makefile.in b/Makefile.in index 197276c42..cb74e94ef 100644 --- a/Makefile.in +++ b/Makefile.in @@ -63,8 +63,8 @@ install-strip: $(MAKE) install STRIPFLAGS="-s" # install/uninstall most things -install: install.bin install.modules install.fns install.man -uninstall: uninstall.bin uninstall.modules uninstall.fns uninstall.man +install: install.bin install.modules install.fns install.man install.runhelp +uninstall: uninstall.bin uninstall.modules uninstall.fns uninstall.man uninstall.runhelp # install/uninstall just the binary install.bin uninstall.bin: @@ -78,13 +78,17 @@ install.modules uninstall.modules: install.man uninstall.man: @cd Doc && $(MAKE) $(MAKEDEFS) $@ +# install/uninstall just the runhelp files +install.runhelp uninstall.runhelp: + @cd Doc && $(MAKE) $(MAKEDEFS) $@ + # install/uninstall just the shell functions install.fns: if test x$(fndir) != x && test x$(fndir) != xno; then \ test x$(sitefndir) != xno && \ $(SHELL) $(sdir_top)/mkinstalldirs $(DESTDIR)$(sitefndir); \ sdir_top="$(sdir_top)" fndir="$(fndir)" dir_top="$(dir_top)" \ - scriptdir="$(scriptdir)" \ + scriptdir="$(scriptdir)" runhelpdir="$(runhelpdir)" \ FUNCTIONS_SUBDIRS="$(FUNCTIONS_SUBDIRS)" \ INSTALL_DATA="$(INSTALL_DATA)" \ INSTALL_PROGRAM="$(INSTALL_PROGRAM)" \ @@ -28,6 +28,11 @@ to be an ordinary character even if the option EXTENDED_GLOB is set, use The variable editing builtin vared can be given custom editing widgets for initialisation and finishing. +The line editor's capability for listening on file descriptors +additional to the terminal has been enhanced so that the handler for +such file descriptors can be a line editor widget. Previously the +handler always behaved as a standard shell function. + Hooks for adding history (the function zshaddhistory and the array zshaddhistory_functions) can return status 2 to indicate that history is to be saved internally within the shell but not written. diff --git a/Src/Modules/clone.c b/Src/Modules/clone.c index 6fdf534c0..5db1c9222 100644 --- a/Src/Modules/clone.c +++ b/Src/Modules/clone.c @@ -3,7 +3,7 @@ * * This file is part of zsh, the Z shell. * - * Copyright (c) 1997 Zoltán Hidvégi + * Copyright (c) 1997 Zoltán Hidvégi * All rights reserved. * * Permission is hereby granted, without written agreement and without @@ -12,16 +12,16 @@ * purpose, provided that the above copyright notice and the following * two paragraphs appear in all copies of this software. * - * In no event shall Zoltán Hidvégi or the Zsh Development Group be liable + * In no event shall Zoltán Hidvégi or the Zsh Development Group be liable * to any party for direct, indirect, special, incidental, or consequential * damages arising out of the use of this software and its documentation, - * even if Zoltán Hidvégi and the Zsh Development Group have been advised of + * even if Zoltán Hidvégi and the Zsh Development Group have been advised of * the possibility of such damage. * - * Zoltán Hidvégi and the Zsh Development Group specifically disclaim any + * Zoltán Hidvégi and the Zsh Development Group specifically disclaim any * warranties, including, but not limited to, the implied warranties of * merchantability and fitness for a particular purpose. The software - * provided hereunder is on an "as is" basis, and Zoltán Hidvégi and the + * provided hereunder is on an "as is" basis, and Zoltán Hidvégi and the * Zsh Development Group have no obligation to provide maintenance, * support, updates, enhancements, or modifications. * diff --git a/Src/Modules/example.c b/Src/Modules/example.c index fa86f260c..45ca2cffa 100644 --- a/Src/Modules/example.c +++ b/Src/Modules/example.c @@ -3,7 +3,7 @@ * * This file is part of zsh, the Z shell. * - * Copyright (c) 1996-1997 Zoltán Hidvégi + * Copyright (c) 1996-1997 Zoltán Hidvégi * All rights reserved. * * Permission is hereby granted, without written agreement and without @@ -12,16 +12,16 @@ * purpose, provided that the above copyright notice and the following * two paragraphs appear in all copies of this software. * - * In no event shall Zoltán Hidvégi or the Zsh Development Group be liable + * In no event shall Zoltán Hidvégi or the Zsh Development Group be liable * to any party for direct, indirect, special, incidental, or consequential * damages arising out of the use of this software and its documentation, - * even if Zoltán Hidvégi and the Zsh Development Group have been advised of + * even if Zoltán Hidvégi and the Zsh Development Group have been advised of * the possibility of such damage. * - * Zoltán Hidvégi and the Zsh Development Group specifically disclaim any + * Zoltán Hidvégi and the Zsh Development Group specifically disclaim any * warranties, including, but not limited to, the implied warranties of * merchantability and fitness for a particular purpose. The software - * provided hereunder is on an "as is" basis, and Zoltán Hidvégi and the + * provided hereunder is on an "as is" basis, and Zoltán Hidvégi and the * Zsh Development Group have no obligation to provide maintenance, * support, updates, enhancements, or modifications. * diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h index cf44b47d2..870e2149d 100644 --- a/Src/Zle/zle.h +++ b/Src/Zle/zle.h @@ -497,3 +497,15 @@ typedef REFRESH_ELEMENT *REFRESH_STRING; #define METACHECK() #define UNMETACHECK() #endif + + +typedef struct watch_fd *Watch_fd; + +struct watch_fd { + /* Function to call */ + char *func; + /* Watched fd */ + int fd; + /* 1 if func is called as a widget */ + int widget; +}; diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 5798e74b4..040b7cb83 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -197,10 +197,11 @@ static int delayzsetterm; */ /**/ int nwatch; /* Number of fd's we are watching */ +/* + * Array of nwatch structures. + */ /**/ -int *watch_fds; /* The list of fds, not terminated! */ -/**/ -char **watch_funcs; /* The corresponding functions to call, normal array */ +Watch_fd watch_fds; /* set up terminal */ @@ -586,7 +587,7 @@ raw_getbyte(long do_keytmout, char *cptr) */ fds[0].events = POLLIN; for (i = 0; i < nwatch; i++) { - fds[i+1].fd = watch_fds[i]; + fds[i+1].fd = watch_fds[i].fd; fds[i+1].events = POLLIN; } # endif @@ -611,7 +612,7 @@ raw_getbyte(long do_keytmout, char *cptr) FD_SET(SHTTY, &foofd); if (!errtry) { for (i = 0; i < nwatch; i++) { - int fd = watch_fds[i]; + int fd = watch_fds[i].fd; FD_SET(fd, &foofd); if (fd > fdmax) fdmax = fd; @@ -723,42 +724,51 @@ raw_getbyte(long do_keytmout, char *cptr) * handler function. */ int lnwatch = nwatch; - int *lwatch_fds = zalloc(lnwatch*sizeof(int)); - char **lwatch_funcs = zarrdup(watch_funcs); - memcpy(lwatch_fds, watch_fds, lnwatch*sizeof(int)); + Watch_fd lwatch_fds = zalloc(lnwatch*sizeof(struct watch_fd)); + memcpy(lwatch_fds, watch_fds, lnwatch*sizeof(struct watch_fd)); + for (i = 0; i < lnwatch; i++) + lwatch_fds[i].func = ztrdup(lwatch_fds[i].func); for (i = 0; i < lnwatch; i++) { + Watch_fd lwatch_fd = lwatch_fds + i; if ( # ifdef HAVE_POLL (fds[i+1].revents & POLLIN) # else - FD_ISSET(lwatch_fds[i], &foofd) + FD_ISSET(lwatch_fd->fd, &foofd) # endif ) { /* Handle the fd. */ - LinkList funcargs = znewlinklist(); - zaddlinknode(funcargs, ztrdup(lwatch_funcs[i])); + char *fdbuf; { char buf[BDIGBUFSIZE]; - convbase(buf, lwatch_fds[i], 10); - zaddlinknode(funcargs, ztrdup(buf)); + convbase(buf, lwatch_fd->fd, 10); + fdbuf = ztrdup(buf); } + + if (lwatch_fd->widget) { + zlecallhook(lwatch_fd->func, fdbuf); + zsfree(fdbuf); + } else { + LinkList funcargs = znewlinklist(); + zaddlinknode(funcargs, ztrdup(lwatch_fd->func)); + zaddlinknode(funcargs, fdbuf); # ifdef HAVE_POLL # ifdef POLLERR - if (fds[i+1].revents & POLLERR) - zaddlinknode(funcargs, ztrdup("err")); + if (fds[i+1].revents & POLLERR) + zaddlinknode(funcargs, ztrdup("err")); # endif # ifdef POLLHUP - if (fds[i+1].revents & POLLHUP) - zaddlinknode(funcargs, ztrdup("hup")); + if (fds[i+1].revents & POLLHUP) + zaddlinknode(funcargs, ztrdup("hup")); # endif # ifdef POLLNVAL - if (fds[i+1].revents & POLLNVAL) - zaddlinknode(funcargs, ztrdup("nval")); + if (fds[i+1].revents & POLLNVAL) + zaddlinknode(funcargs, ztrdup("nval")); # endif # endif - - - callhookfunc(lwatch_funcs[i], funcargs, 0, NULL); + callhookfunc(lwatch_fd->func, funcargs, 0, NULL); + freelinklist(funcargs, freestr); + } if (errflag) { /* No sensible way of handling errors here */ errflag = 0; @@ -768,14 +778,14 @@ raw_getbyte(long do_keytmout, char *cptr) */ errtry = 1; } - freelinklist(funcargs, freestr); } } /* Function may have invalidated the display. */ if (resetneeded) zrefresh(); - zfree(lwatch_fds, lnwatch*sizeof(int)); - freearray(lwatch_funcs); + for (i = 0; i < lnwatch; i++) + zsfree(lwatch_fds[i].func); + zfree(lwatch_fds, lnwatch*sizeof(struct watch_fd)); } } # ifdef HAVE_POLL @@ -1960,7 +1970,7 @@ zle_main_entry(int cmd, va_list ap) static struct builtin bintab[] = { BUILTIN("bindkey", 0, bin_bindkey, 0, -1, 0, "evaM:ldDANmrsLRp", NULL), BUILTIN("vared", 0, bin_vared, 1, 1, 0, "aAcef:hi:M:m:p:r:t:", NULL), - BUILTIN("zle", 0, bin_zle, 0, -1, 0, "aAcCDFgGIKlLmMNrRTU", NULL), + BUILTIN("zle", 0, bin_zle, 0, -1, 0, "aAcCDFgGIKlLmMNrRTUw", NULL), }; /* The order of the entries in this table has to match the *HOOK diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c index 49d715e06..7fd3a5941 100644 --- a/Src/Zle/zle_thingy.c +++ b/Src/Zle/zle_thingy.c @@ -778,10 +778,12 @@ bin_zle_fd(char *name, char **args, Options ops, UNUSED(char func)) return 1; } for (i = 0; i < nwatch; i++) { - if (*args && watch_fds[i] != fd) + Watch_fd watch_fd = watch_fds + i; + if (*args && watch_fd->fd != fd) continue; found = 1; - printf("%s -F %d %s\n", name, watch_fds[i], watch_funcs[i]); + printf("%s -F %s%d %s\n", name, watch_fd->widget ? "-w " : "", + watch_fd->fd, watch_fd->func); } /* only return status 1 if fd given and not found */ return *args && !found; @@ -792,9 +794,11 @@ bin_zle_fd(char *name, char **args, Options ops, UNUSED(char func)) char *funcnam = ztrdup(args[1]); if (nwatch) { for (i = 0; i < nwatch; i++) { - if (watch_fds[i] == fd) { - zsfree(watch_funcs[i]); - watch_funcs[i] = funcnam; + Watch_fd watch_fd = watch_fds + i; + if (watch_fd->fd == fd) { + zsfree(watch_fd->func); + watch_fd->func = funcnam; + watch_fd->widget = OPT_ISSET(ops,'w') ? 1 : 0; found = 1; break; } @@ -803,46 +807,38 @@ bin_zle_fd(char *name, char **args, Options ops, UNUSED(char func)) if (!found) { /* zrealloc handles NULL pointers, so OK for first time through */ int newnwatch = nwatch+1; - watch_fds = (int *)zrealloc(watch_fds, - newnwatch * sizeof(int)); - watch_funcs = (char **)zrealloc(watch_funcs, - (newnwatch+1) * sizeof(char *)); - watch_fds[nwatch] = fd; - watch_funcs[nwatch] = funcnam; - watch_funcs[newnwatch] = NULL; + Watch_fd new_fd; + watch_fds = (Watch_fd)zrealloc(watch_fds, + newnwatch * sizeof(struct watch_fd)); + new_fd = watch_fds + nwatch; + new_fd->fd = fd; + new_fd->func = funcnam; + new_fd->widget = OPT_ISSET(ops,'w') ? 1 : 0; nwatch = newnwatch; } } else { /* Deleting a handler */ for (i = 0; i < nwatch; i++) { - if (watch_fds[i] == fd) { + Watch_fd watch_fd = watch_fds + i; + if (watch_fd->fd == fd) { int newnwatch = nwatch-1; - int *new_fds; - char **new_funcs; + Watch_fd new_fds; - zsfree(watch_funcs[i]); + zsfree(watch_fd->func); if (newnwatch) { - new_fds = zalloc(newnwatch*sizeof(int)); - new_funcs = zalloc((newnwatch+1)*sizeof(char*)); + new_fds = zalloc(newnwatch*sizeof(struct watch_fd)); if (i) { - memcpy(new_fds, watch_fds, i*sizeof(int)); - memcpy(new_funcs, watch_funcs, i*sizeof(char *)); + memcpy(new_fds, watch_fds, i*sizeof(struct watch_fd)); } if (i < newnwatch) { memcpy(new_fds+i, watch_fds+i+1, - (newnwatch-i)*sizeof(int)); - memcpy(new_funcs+i, watch_funcs+i+1, - (newnwatch-i)*sizeof(char *)); + (newnwatch-i)*sizeof(struct watch_fd)); } - new_funcs[newnwatch] = NULL; } else { new_fds = NULL; - new_funcs = NULL; } - zfree(watch_fds, nwatch*sizeof(int)); - zfree(watch_funcs, (nwatch+1)*sizeof(char *)); + zfree(watch_fds, nwatch*sizeof(struct watch_fd)); watch_fds = new_fds; - watch_funcs = new_funcs; nwatch = newnwatch; found = 1; break; diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index b84d253bb..b82e54ce5 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -1643,7 +1643,7 @@ zlecallhook(char *name, char *arg) { Thingy thingy = rthingy_nocreate(name); int saverrflag, savretflag; - char *args[3]; + char *args[2]; if (!thingy) return; @@ -1651,9 +1651,8 @@ zlecallhook(char *name, char *arg) saverrflag = errflag; savretflag = retflag; - args[0] = thingy->nam; - args[1] = arg; - args[2] = NULL; + args[0] = arg; + args[1] = NULL; execzlefunc(thingy, args, 1); unrefthingy(thingy); diff --git a/Src/math.c b/Src/math.c index eae283d19..42355f885 100644 --- a/Src/math.c +++ b/Src/math.c @@ -448,9 +448,7 @@ lexconstant(void) if (*nptr == '-') nptr++; - if (*nptr == '0' && - (memchr(nptr, '.', strlen(nptr)) == NULL)) - { + if (*nptr == '0') { nptr++; if (*nptr == 'x' || *nptr == 'X') { /* Let zstrtol parse number with base */ @@ -491,11 +489,8 @@ lexconstant(void) nptr = ptr2; } } - else - { - while (idigit(*nptr) || *nptr == '_') - nptr++; - } + while (idigit(*nptr) || *nptr == '_') + nptr++; if (*nptr == '.' || *nptr == 'e' || *nptr == 'E') { char *ptr2; @@ -1374,6 +1369,19 @@ mathevalarg(char *s, char **ss) mnumber x; int xmtok = mtok; + /* + * At this entry point we don't allow an empty expression, + * whereas we do with matheval(). I'm not sure if this + * difference is deliberate, but it does mean that e.g. + * $array[$ind] where ind hasn't been set produces an error, + * which is probably safe. + * + * To avoid a more opaque error further in, bail out here. + */ + if (!*s) { + zerr("bad math expression: empty string"); + return (zlong)0; + } x = mathevall(s, MPREC_ARG, ss); if (mtok == COMMA) (*ss)--; @@ -1401,6 +1409,7 @@ checkunary(int mtokc, char *mptr) } if (errmsg) { int len, over = 0; + char *errtype = errmsg == 2 ? "operator" : "operand"; while (inblank(*mptr)) mptr++; len = ztrlen(mptr); @@ -1408,9 +1417,12 @@ checkunary(int mtokc, char *mptr) len = 10; over = 1; } - zerr("bad math expression: %s expected at `%l%s'", - errmsg == 2 ? "operator" : "operand", - mptr, len, over ? "..." : ""); + if (!*mptr) + zerr("bad math expression: %s expected at end of string", + errtype); + else + zerr("bad math expression: %s expected at `%l%s'", + errtype, mptr, len, over ? "..." : ""); } unary = !(tp & OP_OPF); } diff --git a/Src/module.c b/Src/module.c index 5cc595c47..9e8b3cc2a 100644 --- a/Src/module.c +++ b/Src/module.c @@ -3,7 +3,7 @@ * * This file is part of zsh, the Z shell. * - * Copyright (c) 1996-1997 Zoltán Hidvégi + * Copyright (c) 1996-1997 Zoltán Hidvégi * All rights reserved. * * Permission is hereby granted, without written agreement and without @@ -12,16 +12,16 @@ * purpose, provided that the above copyright notice and the following * two paragraphs appear in all copies of this software. * - * In no event shall Zoltán Hidvégi or the Zsh Development Group be liable + * In no event shall Zoltán Hidvégi or the Zsh Development Group be liable * to any party for direct, indirect, special, incidental, or consequential * damages arising out of the use of this software and its documentation, - * even if Zoltán Hidvégi and the Zsh Development Group have been advised of + * even if Zoltán Hidvégi and the Zsh Development Group have been advised of * the possibility of such damage. * - * Zoltán Hidvégi and the Zsh Development Group specifically disclaim any + * Zoltán Hidvégi and the Zsh Development Group specifically disclaim any * warranties, including, but not limited to, the implied warranties of * merchantability and fitness for a particular purpose. The software - * provided hereunder is on an "as is" basis, and Zoltán Hidvégi and the + * provided hereunder is on an "as is" basis, and Zoltán Hidvégi and the * Zsh Development Group have no obligation to provide maintenance, * support, updates, enhancements, or modifications. */ @@ -3419,12 +3419,15 @@ autofeatures(const char *cmdnam, const char *module, char **features, int ret = 0, subret; Module defm, m; char **modfeatures = NULL; + int *modenables = NULL; if (module) { defm = (Module)find_module(module, FINDMOD_ALIASP|FINDMOD_CREATE, NULL); if ((defm->node.flags & MOD_LINKED) ? defm->u.linked : - defm->u.handle) + defm->u.handle) { (void)features_module(defm, &modfeatures); + (void)enables_module(defm, &modenables); + } } else defm = NULL; @@ -3544,6 +3547,16 @@ autofeatures(const char *cmdnam, const char *module, char **features, ret = 1; continue; } + /* + * If the feature is already provided by the module, there's + * nothing more to do. + */ + if (modenables[ptr-modfeatures]) + continue; + /* + * Otherwise, marking it for autoload will do the + * right thing when the feature is eventually used. + */ } if (!m->autoloads) { m->autoloads = znewlinklist(); diff --git a/Src/subst.c b/Src/subst.c index a4df2567f..1059508ef 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -2941,6 +2941,14 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags) } } } + if (vunset) { + if (unset(UNSET)) { + *idend = '\0'; + zerr("%s: parameter not set", idbeg); + return NULL; + } + val = dupstring(""); + } } else { /* no ${...=...} or anything, but possible modifiers. */ /* * Handler ${+...}. TODO: strange, why do we handle this only diff --git a/Src/utils.c b/Src/utils.c index d1d9406c2..c6d178ce2 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2299,6 +2299,8 @@ checkrmall(char *s) sleep(10); fputc('\n', shout); } + if (errflag) + return 0; fputs(" [yn]? ", shout); fflush(shout); zbeep(); @@ -3983,7 +3985,7 @@ metafy(char *buf, int len, int heap) if (imeta(*e++)) meta++; - if (meta || heap == META_DUP || heap == META_HEAPDUP || *e != '\0') { + if (meta || heap == META_DUP || heap == META_HEAPDUP) { switch (heap) { case META_REALLOC: buf = zrealloc(buf, len + meta + 1); @@ -4026,8 +4028,8 @@ metafy(char *buf, int len, int heap) meta--; } } - *e = '\0'; } + *e = '\0'; return buf; } diff --git a/Src/zsh.mdd b/Src/zsh.mdd index 4bc884b3d..d77fc4336 100644 --- a/Src/zsh.mdd +++ b/Src/zsh.mdd @@ -44,7 +44,7 @@ patchlevel.h: FORCE cp -f $(sdir)/$@.release $@; \ else \ echo '#define ZSH_PATCHLEVEL "'`cd $(sdir) && git describe --tags --long`'"' > $@.tmp; \ - cmp $@ $@.tmp && rm -f $@.tmp || mv $@.tmp $@; \ + cmp $@ $@.tmp 2>/dev/null && rm -f $@.tmp || mv $@.tmp $@; \ fi FORCE: diff --git a/StartupFiles/zshrc b/StartupFiles/zshrc index 1172b7b65..445209ef5 100644 --- a/StartupFiles/zshrc +++ b/StartupFiles/zshrc @@ -75,7 +75,7 @@ RPROMPT=' %~' # prompt for right side of screen # Some environment variables export MAIL=/var/spool/mail/$USERNAME export LESS=-cex3M -export HELPDIR=/usr/local/lib/zsh/help # directory for run-help function to find docs +export HELPDIR=/usr/share/zsh/$ZSH_VERSION/help # directory for run-help function to find docs MAILCHECK=300 HISTSIZE=200 diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index 71c8a1969..7b005c2ab 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -134,11 +134,11 @@ print $(( a = )) 1:empty assignment -?(eval):1: bad math expression: operand expected at `' +?(eval):1: bad math expression: operand expected at end of string print $(( 3, )) 1:empty right hand of comma -?(eval):1: bad math expression: operand expected at `' +?(eval):1: bad math expression: operand expected at end of string print $(( 3,,4 )) 1:empty middle of comma @@ -258,3 +258,11 @@ >0.5 >3 >3. + + print $(( 0x30 + 0.5 )) + print $(( 077 + 0.5 )) + (setopt octalzeroes; print $(( 077 + 0.5 )) ) +0:Mixed float and non-decimal integer constants +>48.5 +>77.5 +>63.5 diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst index d6ab73304..81b002120 100644 --- a/Test/D02glob.ztst +++ b/Test/D02glob.ztst @@ -491,3 +491,11 @@ >@(scrimf), @(scrimf): 0 >'(' '*' '[' '^' '@(' >Nothing should be disabled. + + ( + setopt nomatch + x=( '' ) + print $^x(N) + ) +0:No error with empty null glob with (N). +> diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index bea945971..a8cc93a12 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -1551,3 +1551,12 @@ 0:Empty parameter shouldn't cause modifiers to crash the shell > > + +# This used to cause uncontrolled behaviour, but at best +# you got the wrong output so the check is worth it. + args() { print $#; } + args ${:*} + args ${:|} +0:Intersection and disjunction with empty parameters +>0 +>0 diff --git a/Util/helpfiles b/Util/helpfiles index c1c16ff74..ebd8bd125 100755 --- a/Util/helpfiles +++ b/Util/helpfiles @@ -2,8 +2,10 @@ # helpfiles: make help files for Z-shell builtins from the manual entries. -# Create help files for zsh commands in the current directory; -# assumes no other files are present. +# Create help files for zsh commands for the manpage file of zshbuildins.1 +# passed as the first arg. +# The second arg is the directory in which the help files will be created. +# Assumes no other files are present. # No overwriting check; `.' becomes `dot', `:' becomes `colon'. # Any command claiming to be `same as <foo>' or `equivalent to <foo>' @@ -11,14 +13,8 @@ # link to <foo>. (Arguably the help file should be put at the start # instead.) -# Takes one filename argument, or stdin: the zsh manual page as a plain -# ascii file: `man zshbuiltins | colcrt -' (remember the -) should do -# the trick. - -# If you don't have colcrt, try 'col -bx'. The x is necessary so that -# spaces don't turn into tabs, which messes up the calculations of -# indentation on machines which randomly wrap lines round to the -# previous line (so you see what we're up against). +# If a third arg is given, the symlink is not created, but a +# list of symlinks is put into the file specified by that arg. # Example usage: # cd ~/zsh-4.0.1 # or wherever @@ -39,7 +35,52 @@ # } # now <Esc>-h works for shell builtins. -while (<>) { +sub Usage { + print(STDERR "Usage: helpfiles zshbuiltins.1 dest-dir [link-file]\n"); + exit(1); +} + +sub Info { + print('helpfiles: ', @_, "\n"); +} + +sub Die { + print(STDERR 'helpfiles: ', @_, "\n"); + exit(1); +} + +&Usage() unless(@ARGV); +$manfile = shift(@ARGV); +&Usage() unless(@ARGV); +$destdir = shift(@ARGV); +$linkfile = ((@ARGV) ? shift(@ARGV) : ''); +unless(-d $destdir) { + mkdir($destdir) || &Die("$destdir is not a directory and cannot be created"); +} + +foreach (keys %ENV) { + delete($ENV{$_}) if(/^((LC_)|(LESS)|(MAN))/); +} +$ENV{'LANG'} = 'C'; +$ENV{'MANWIDTH'} = '80'; +$ENV{'GROFF_NO_SGR'} = ''; # We need "classical" formatting of man pages. + +unless(open(MANPAGE, '-|', "man $manfile | colcrt -")) { + close(MANPAGE); + open(MANPAGE, '-|', "man $manfile | col -bx") +# The x is necessary so that spaces don't turn into tabs, which messes +# up the calculations of indentation on machines which randomly wrap lines +# round to the previous line (so you see what we're up against). + || &Die('can run neither "man | colcrt -" nor "man | col -bx"'); +} + +unless($linkfile eq '') { + open(LINKFILE, '>', $linkfile) || &Die("cannot open $linkfile for writing") +} + +chdir($destdir) || &Die("cannot cd to $destdir"); + +while (<MANPAGE>) { last if /^\s*SHELL BUILTIN COMMANDS/; /zshbuiltins/ && $zb++; last if ($zb && /^\s*DESCRIPTIONS/); @@ -49,7 +90,7 @@ $print = 0; sub namesub { local($cmd) = shift; - if ($cmd =~ /^\w+$/) { + if ($cmd =~ /^\w*$/ && lc($cmd) eq $cmd) { $cmd; } elsif ($cmd eq '.') { 'dot'; @@ -93,7 +134,7 @@ sub doprint { print; } -while (<>) { last unless /^\s*$/; } +while (<MANPAGE>) { last unless /^\s*$/; } /^(\s+)(\S+)/; $indentstr = $1; @@ -101,13 +142,13 @@ $indent = length($1); &newcmd($2); print if $print; -BUILTINS: while (<>) { +BUILTINS: while (<MANPAGE>) { next if /^\w/; undef($undented); if (/^\s*$/ || ($undented = (/^(\s*)/ && length($1) < $indent))) { $undented && &doprint($_); - while (defined($_ = <>) && /(^\w)|(^\s*$)/) { + while (defined($_ = <MANPAGE>) && /(^\w)|(^\s*$)/) { # NAME is the start of the next section when in zshall. # (Historical note: we used to exit on the page header, # but text from the old section can continue to the @@ -118,11 +159,11 @@ BUILTINS: while (<>) { } if (/^\s*Page/ || /^zsh.*\s\d$/) { do { - $_ = <>; + $_ = <MANPAGE>; } while (defined($_) && /^\s*$/); if (/^\s*ZSHBUILTINS/) { do { - $_ = <>; + $_ = <MANPAGE>; } while (defined($_) && /^\s*$/); } } @@ -132,7 +173,7 @@ BUILTINS: while (<>) { s/^\s*/ /; $defer = $_; do { - $_ = <>; + $_ = <MANPAGE>; } while (defined($_) && /^\s*$/); last unless defined($_); } @@ -157,6 +198,7 @@ BUILTINS: while (<>) { select STDOUT; close OUT; +close(MANPAGE) || &Die('piping from man ', $manfile, ' failed'); foreach $file (<*>) { open (IN, $file); @@ -176,8 +218,16 @@ foreach $file (<*>) { # Make this a link to that. unlink $file; - symlink ($sameas, $file); + if($linkfile eq '') { + symlink ($sameas, $file); + } else { + print(LINKFILE "$sameas $file\n"); + } } } +close(LINKFILE) unless($linkfile eq ''); + +# Make one sanity check +&Die('not all files were properly generated') unless(-r 'ztcp'); __END__ diff --git a/configure.ac b/configure.ac index 32872be5c..776b90828 100644 --- a/configure.ac +++ b/configure.ac @@ -258,6 +258,23 @@ AC_ARG_ENABLE(ansi2knr, AC_HELP_STRING([--enable-ansi2knr], [translate source to K&R C before compiling]), [ansi2knr="$enableval"], [ansi2knr=default]) +ifdef([runhelpdir],[undefine([runhelpdir])])dnl +AC_ARG_ENABLE(runhelpdir, +AC_HELP_STRING([--enable-runhelpdir=DIR], [the directory in which to install run-help files]), +[if test x"$enableval" = xno; then + runhelpdir= +else + runhelpdir="$enableval" +fi], [runhelpdir=yes]) +if test x"$runhelpdir" = xyes; then + runhelpdir=${datadir}/${tzsh_name}/'${VERSION}'/help +fi +if test x"$runhelpdir" = x; then + runhelp= +else + runhelp=runhelp +fi + ifdef([fndir],[undefine([fndir])])dnl AC_ARG_ENABLE(fndir, AC_HELP_STRING([--enable-fndir=DIR], [the directory in which to install functions]), @@ -297,6 +314,8 @@ else additionalfpath="${enableval}" fi], [additionalfpath=""]) +AC_SUBST(runhelpdir)dnl +AC_SUBST(runhelp)dnl AC_SUBST(additionalfpath)dnl AC_SUBST(fndir)dnl AC_SUBST(sitefndir)dnl @@ -559,6 +578,7 @@ AC_PROG_MAKE_SET dnl Does make define $MAKE AC_PROG_INSTALL dnl Check for BSD compatible `install' AC_PROG_AWK dnl Check for mawk,gawk,nawk, then awk. AC_PROG_LN dnl Check for working ln, for "make install" +AC_PROG_LN_S dnl Use ln -s/ln/cp for "make install.runhelp" AC_PROG_EGREP dnl sets $EGREP to grep -E or egrep AC_CHECK_PROGS([YODL], [yodl], [: yodl]) |