2001-07-09 Peter Stephenson * unposted: Config/version.mk: 4.1.0-dev-1. * 15329: Test/A01grammar.ztst, Test/A02alias.ztst, Test/A04redirect.ztst, Test/A05execution.ztst, Test/C01arith.ztst, Test/D04parameter.ztst, Test/D06subscript.ztst, Test/E01options.ztst, Test/E02xtrace.ztst, Test/V01zmodload.ztst: changes in test scripts required by 15327; mostly benign but the behaviour of LINENO in trap '...' DEBUG is probably wrong. * 15327: Src/builtin.c, Src/exec.c, Src/glob.c, Src/parse.c, Src/Modules/parameter.c, Src/Modules/zpty.c, Src/Modules/zutil.c: Always use local LINENOs in parse_string(). Currently we only do this sometimes in order for existing $LINENO to show through. This seems to cause more problems than it solves. 2001-07-09 Bart Schaefer * 15321: Src/exec.c: Fix line numbers in an error message; unwind function context properly on obscure autoloading failures. 2001-07-07 Bart Schaefer * 15308: Src/builtin.c: Fix infinite loop on `r OLD=NEW' when OLD is the empty string, by rejecting replacements with an empty OLD. * 15305: Src/Zle/zle_main.c: Suppress XTRACE during execution of user-defined ZLE widgets unless the widget function has been tagged for tracing with `typeset -ft'. * 15304: Src/math.c: Unset parameters should not always become typed as float upon assignment (fix for 15292). 2001-07-06 Peter Stephenson * 15291, 15292: Src/math.c, Src/zsh.h, Test/C01arith.yo: fix bug that assignment to scalar in math mode failed if scalar had non-math value in it. 2001-07-06 Clint Adams * 15250: zsh/pcre module will load gracefully even when pcre functions are unavailable. 2001-07-06 Peter Stephenson * 15288: Doc/Zsh/contrib.yo, Functions/Zle/bash-forward-word, Functions/Zle/bash-bacward-word, Functions/Zle/bash-kill-word, Functions/Zle/bash-backward-kill-word: complete set of bash-compatible word functions with documentation. * 15279: Doc/Zsh/expn.yo: describe those ${(S)...%%...} things so that even I understand what the code does. 2001-07-06 Oliver Kiddle * 15252 (and Akinori Musha: 15245): Completion/BSD/Command/_kld, Completion/Unix/Command/_sysctl: Add exclusion lists and use _multi_parts for BSD completion of sysctl. 2001-07-06 Sven Wischnowsky * 15283: Completion/Unix/Type/_path_files: when looking for parameter expansions, ignore `$'s with a backslash before them 2001-07-06 Peter Stephenson * 15277: Src/glob.c: *real* bug with ${(S)...%%...}: the indices for start and end of backreferences were incorrect. * Back out 15266: it was right before, I was looking at it back to front. 2001-07-06 Bart Schaefer * 15271: Src/Modules/pcre.mdd: Default to dynamic linkage only, as the pcre library is unlikely to be available. 2001-07-06 Peter Stephenson * 15266: Src/glob.c, Doc/Zsh/expn.yo: ${(S)...%%...} matches were wrong; try desperately to explain that in ${(SI:...:)...%%...} and ${(SI:...:)...%...} indices count matches finishing progressively earlier in the string. * 15265: Src/parse.c: correction problems with new `for' syntax. 2001-07-05 Peter Stephenson * 15264: Doc/Zsh/grammar.yo: improve description of use of variant complex command forms to avoid confusing the present writer. * 15261: Test/E01options.ztst, Test/ztst.zsh: remaining easy option tests. 2001-07-05 Andrej Borsenkow * 15253 : Src/hashtable.c: make hashdir() hash foo in addition to foo.exe on Cygwin again (lost when Cygwin gcc stopped setting _WIN32 by default). 2001-07-03 Clint Adams * 15242: Doc/Zsh/mod_pcre.yo, Src/Modules/pcre.c: set $match instead of pparams. pcre_match -a sets specified array instead of $match. * 15234: Doc/Zsh/mod_pcre.yo: describe behavior introduced by 15228. * 15228: zshconfig.ac, Src/Modules/pcre.c: switch AC_CHECK_LIB to AC_SEARCH_LIBS for pcre. Have pcre_match set positional parameters with the contents of capture buffers. * unposted: Doc/Makefile.in: add mod_pcre.yo to makefile. 2001-07-03 Oliver Kiddle * 15223, Akinori Musha: 15215: Completion/Unix/Command/.distfiles, Completion/Unix/Command/_sysctl: Add completion for sysctl(8) 2001-07-03 Clint Adams * unposted: Doc/Zsh/.distfiles, Functions/Example/.distfiles, Src/Modules/.distfiles: update distfiles for 15211. 2001-07-02 Bart Schaefer * unposted: zshconfig.ac: Remove references to FUNCINST_MK. 2001-07-02 Clint Adams * 15211: zshconfig.ac, Doc/Zsh/mod_pcre.yo, Functions/Example/zpgrep, Src/Modules/pcre.c, Src/Modules/pcre.mdd: interface to PCRE library. 2001-07-02 Oliver Kiddle * 15204: zshconfig.ac, Src/compat.c, Src/params.c: fix compilation problems on IRIX 5.3 and correct error messages 2001-07-02 Bart Schaefer * 15198: Completion/Zsh/Context/_tilde: Return nonzero if no matches are found. 2001-06-30 Bart Schaefer * 15191: Src/init.c: Don't infinite loop if there's an error in the user's precmd -- reset errflag after preprompt(). 2001-06-29 Andrej Borsenkow * 15183: zshconfig.ac: fix DLLD in non-ELF case * 15181: zshconfig.ac: use -KPIC instead of -Kpic at request of Tomi Vainio * 15180: zshconfig.ac, Etc/MACHINES: make AIX default to termcap as workaround for apparent AIX curses bug; add flags to create modules with shared object type. Mention curses problem. 2001-06-29 Clint Adams * Bart: 15083 plus comments: Functions/Zle/bash-backward-kill-word: bash-style backward-kill-word function. 2001-06-28 Wayne Davison * 15172: Src/hist.c: Have prepnexthistent() remove any HIST_TEMPSTORE entry that is present. 2001-06-28 Peter Stephenson * 15169: README, Doc/zman.yo, Doc/ztexi.yo, Doc/Zsh/manual.yo: handle top node in a way texinfo 4.0 likes better. May require upgrading texinfo. * 15160 and Andrej zsh-users/3973: Doc/Makefile.in: install zsh.html if generated. 2001-06-28 Oliver Kiddle * unposted: Etc/zsh-development-guide, Test/B01cd.ztst: fix typos * 15159: Completion/X/Command/_vnc: fix for two digit display numbers, use _values for -encodings option and complete for xvncviewer 2001-06-28 Sven Wischnowsky * Bart: 15106, small changes in 15152: Completion/Zsh/Command/_cd, Completion/Zsh/Context/_tilde: Improve completion for `cd' with cdablevars set; cleanup in _cd and _tilde 2001-06-27 Peter Stephenson * 15151: zshconfig.ac: --enable-sitefndir should be --enable-site-fndir, spotted by Jos Backus. 2001-06-27 Sven Wischnowsky * 15123: Src/Zle/compmatch.c: (only the patch to compmatch.c from the mail); improve merging cline lists coming from different IPREFIX/PREFIX combinations and such by avoiding to generate cline structs for empty parts after a match spec anchor cline struct * 15115: Doc/Zsh/builtins.yo, Doc/Zsh/options.yo, Src/exec.c, Src/jobs.c, Src/options.c, Src/zsh.h: add autocontinue option to automatically make stopped jos running when they are being disowned; make that the default for `%job &!' and `%job &|' 2001-06-26 Andrej Borsenkow * 15099: Test/D03procsubst.ztst, Test/ztst.zsh: add some support for skipping unimplemented features 2001-06-26 Clint Adams * 15094: Functions/Prompts/prompt_clint_setup: don't display battery level if it's -1%. 2001-06-26 Sven Wischnowsky * user/3946: Src/Zle/computil.c: fix for finding the first ambiguous path component in compfiles * 15087: Src/jobs.c: make warning message for disowning stopped jobs more verbose (saying how to make the job running again) 2001-06-25 Peter Stephenson * zsh-users/3942: source installed as Etc/FAQ.yo: latest FAQ. * unposted: Completion/Zsh/Context/.distfiles: add _autocd. 2001-06-25 Clint Adams * 15079: Completion/Unix/Command/_last, Completion/Unix/Type/_users: last takes other arguments than users. 2001-06-25 Peter Stephenson * 15030: Doc/Zsh/grammar.yo, Src/loop.c, Src/parse.c, Src/text.c: `for' loops can take multiple parameter names before the `in' or left parenthesis, each of which takes one word from the list on each iteration. 2001-06-25 Sven Wischnowsky * user/3940: Src/Zle/zle_tricky.c: make expand-word not always restore the command line 2001-06-24 Bart Schaefer * 15060: Test/A02alias.ztst: Change expected return value to account for 15050. * 15060: Test/Y01completion.ztst, Test/Y02compmatch.ztst, Test/Y03arguments.ztst, Test/comptest: Abandon the tests during the %prep section if the zpty module can't be loaded. * 15057: Src/exec.c: PRINT_EXIT_VALUE for shell functions, too. 2001-06-23 Bart Schaefer * 15056: Src/Zle/zle_tricky.c: Change magic-space to recognize whether !" (quote against history expansion) has been typed. * 15050, 15054: Src/exec.c: Change exit status of external commands that could not be executed, to comply with POSIX. 2001-06-22 Andrej Borsenkow * 15021: Src/prompt.c, Doc/Zsh/prompt.yo: revert to old %l semantic; add new %y character instead as suggested by Wayne * 15038: Test/A01grammar.ztst: test case for 15023. (unposted) fix a couple of typos in test decriptions 2001-06-21 Sven Wischnowsky * 15029: Completion/Unix/Command/_man: improve pattern matching to make match specs work for manual page completion 2001-06-21 Bart Schaefer * 15023, 15027: Src/parse.c: Accept newlines before the "in" keyword in "for" and "select", per POSIX. * 15020: Completion/Zsh/Command/_cd, Completion/Zsh/Context/_autocd, Completion/Zsh/Type/_command_names: When AUTO_CD is set, complete directory names (including along cdpath) as well as commands when in command position. * 15018: Completion/compinit: Fix exit status of compdef. * 15002: Completion/Base/Widget/_complete_debug, Completion/Base/Widget/_complete_help: Use `trap' to restore state properly in case of keyboard interrupt. 2001-06-20 Bart Schaefer * 14880: Completion/Base/Core/_main_complete: Fix insert-tab style when value is `pending'. (Belated commit, out of number order.) 2001-06-20 Peter Stephenson * 14988 with mod suggested in 14989: Src/exec.c: avoid names of saved special parameters being trashed. 2001-06-19 Bart Schaefer * 14976: aczsh.m4: Add socklen_t to possible SOCKLEN_T types. 2001-06-19 Andrej Borsenkow * 14973: acconfig.h, aczsh.m4, zshconfig.ac, Src/Modules/zftp.c: fix for reported problems on AIX 4.x. Still no feedback if it finally works (or even compiles) 2001-06-18 Bart Schaefer * 14965: Src/Zle/computil.c: Silence compiler warnings. 2001-06-18 Sven Wischnowsky * 14962: Completion/Unix/Type/_path_files: make special-dirs work together with file-sort (ignore added qualifiers in a test) 2001-06-18 Peter Stephenson * 14959: Src/signals.c: more renames for 14951. 2001-06-18 Sven Wischnowsky * 14952: Src/parse.c: make zcompile unlink() the zwc file first (in case it is currently mapped we don't want to overwrite it); also, create the file read-only * 14951: Src/signals.c, Src/signals.h: rename handler() to zhandler() because it's now exported to modules 2001-06-17 Bart Schaefer * Jason Began: 3931 (see cvs.netbsd.org): zshconfig.ac: Use -fPIC for gcc dynamic linking rather than -fpic. 2001-06-16 Wayne Davison * unposted: Src/utils.c: Revert the mkstemp() change since it was not right. Left zshconfig.ac alone in case someone wants to create a more elaborate mkstemp() change. 2001-06-16 Peter Stephenson * 14939: zshconfig.ac, Src/utils.c: Some systems with GNU-based utilities scream at you for using mktemp() instead of mkstemp(). 2001-06-15 Peter Stephenson * 14929: Src/params.c: after 14915, assigning to individual positional parameters failed. 2001-06-15 Andrej Borsenkow * 14931: Src/Modules/tcp.c, Src/Modules/zftp.c: fix length calculation in tcp_connect and zftp_open 2001-06-14 Peter Stephenson * 14921: Functions/Zftp/zfinit, Completion/Zsh/Command/_zftp: Load tcp module for zftp; autoload zfget_match and zfcd_match for _zftp. * 14915: Doc/Zsh/builtins.yo, Doc/Zsh/params.yo, Src/builtin.c, Src/params.c: special parameters can't have readonly turned off; $* and $@ are readonly. 2001-06-13 Sven Wischnowsky * 14903: Src/Zle/complist.c, Src/Zle/zle_tricky.c: fixes for display bugs for completion lists (cursor left one line to far up or down) 2001-06-13 Peter Stephenson * 14893: Src/signals.c: make handler mod_export because it's needed for signal queueing in various modules. Probably sensible to change handler to zhandler too --- not done yet. 2001-06-13 Sven Wischnowsky * 14897 (and Oliver Kiddle: 14862): Completion/Base/Utility/_values, Completion/Unix/Command/_mount, Completion/Unix/Type/_dir_list, Src/Zle/computil.c: fix for comparguments (completing after single letter options that get their argument in the next word); make _values ignore some of the standard option it may get; make _mount use _dir_list in some places and improve that; `document' comparguments and compvalues with some comments in computil.c 2001-06-13 Oliver Kiddle * 14896: Completion/Zsh/Type/_command_names: don't complete read-only parameters on the left side of an assignment 2001-06-13 Peter Stephenson * unposted: Completion/compinstall: spotted by Bart: assignments when finding $fpath if not set in current shell were completely garbled. 2001-06-13 Sven Wischnowsky * 14883 (Jos Backus): Completion/Unix/Command/_mount: add code for BSDish systems 2001-06-12 Clint Adams * 14863: Src/Modules/tcp.c, Src/Modules/zftp.c: introduce tcp_connect. 2001-06-12 Peter Stephenson * 14858: Doc/Zsh/options.yo, Src/options.c, Src/subst.c, Src/zsh.h, Test/E01options.ztst: KSH_TYPESET option allows assignments after typeset not to be split. 2001-06-12 Bart Schaefer * 14849: README: Request "reporter" output only if a bug cannot be reproduced with 'zsh -f'. 2001-06-11 Clint Adams * 14843: Src/Modules/tcp.c, Src/Modules/zftp.c: introduce tcp_close and use it to close control fd. 2001-06-11 Sven Wischnowsky * 14841: Completion/Base/Utility/_values, Src/Zle/computil.c: new word parsing for compvalues; this should now handle empty separators correctly, as far as it is possible 2001-06-11 Peter Stephenson * 14840: Doc/Zsh/options.yo: document search behaviour with PATH_DIRS option. 2001-06-10 Clint Adams * 14830: config.guess, config.sub: upgrade to GNU's June 5 and 8 versions, respectively. 2001-06-09 Bart Schaefer * unposted (see 14826): Test/C02cond.ztst: Force group of new directory created for file-mode tests to be owned by the current effective group. * 14827: Src/parse.c, Src/utils.c: Move zwcstat() to parse.c where it can be wrapped in #ifdef USE_MMAP. * 14824: Test/comptest: Avoid echotc (improvement on 14792). 2001-06-08 Clint Adams * 14815: Src/utils.c: actually check the filename of the dump. * 14813: zshconfig.ac, Src/parse.c, Src/utils.c, Src/zsh.h: try to autoload functions from digest files that are deleted but still open. 2001-06-08 Bart Schaefer * 14796: zshconfig.ac: More reliable BROKEN_KILL_ESRCH test. 2001-06-07 Bart Schaefer * 14792: Test/comptest: Don't import the current terminal type for the zpty terminal, because the current terminal might not be able to run ZLE (e.g., emacs shell mode). * 14792: Src/Modules/tcp.h, Src/Modules/zftp.c: Shuffle around several #include directives to get the sockaddr_in definition in all the places it's needed. * 14712: Doc/Zsh/builtins.yo: Improve appearance of long hanging paragraph tag for the "read" builtin. * 14578: Src/Modules/termcap.c: Handle vagaries of tgetflag() return value in new function ztgetflag(). 2001-06-07 Wayne Davison * 14793: Src/hist.c: Don't mark a HIST_TMPSTORE entry with HIST_OLD so that the HFILE_FAST algorithm in savehistfile() will recheck this histnum later. 2001-06-06 Clint Adams * unposted: Src/Modules/.distfiles: add tcp.* files. * 14778: Src/Modules/tcp.mdd, Src/Modules/zftp.mdd: rename zsh/tcp to zsh/net/tcp. * 14770: Src/Modules/tcp.c, Src/Modules/tcp.h, Src/Modules/tcp.mdd, Src/Modules/zftp.c, Src/Modules/zftp.mdd: move some functionality from zftp to independent tcp module. 2001-06-06 Andrej Borsenkow * 14772: David Lebel : zshconfig.ac: patch for dynamic linking on OpenBSD * unposted: Etc/zsh-development-guide: we now support autoconf-2.50 * 14766: Src/prompt.c: uniform %l substitution * 14760: zshconfig.ac: use old-style AC_INIT without version * 14758: zshconfig.ac: no more ac_cv_cygwin in autoconf-2.50; use host_os instead * unposted; based on 14679 (me) and 14693 (Bart): configure.ac, zshconfig.ac, .distfiles, Makefile.in, configure.in, Src/mkmakemod.sh: Allow processing by both autoconf-2.13 and autoconf-2.50; remove config.status hack for autoconf-2.50 2001-06-06 Sven Wischnowsky * 14736: Doc/Zsh/compsys.yo: make docs for _wanted and _requested clearer (command has to allow options passed to it) * 14733: Completion/Base/Utility/_arguments: two fixes: try all actions that have to be tried (but only once), execute actions if we aren't after an option already (in the same word) 2001-06-05 Chmouel Boudjnah * 14550: Completion/Redhat/Command/_rpm: Add --nobuild and --nogpg to rpm completion 2001-06-04 Peter Stephenson * Relabelled this version 4.1.0-dev-0. 2001-06-01 Peter Stephenson * Config/version.mk: 4.0.1 released, finally.