additional environment variables.
Note to packagers:
packages installing additional completion files should drop
them into ${DESTDIR}${PREFIX}/share/bash-completion.d
with the name of the package as file name.
bash-completion (1.0)
[ Guillaume Rousse ]
* Make bibtex complete on .aux files
* Add .xvid and .XVID to player completion
* Added cowsay/cowthink completion
* Added brctl completion
* Added cpan2dist completion
* Added qemu completion
* Added net-tools (mii-tool and mii-diag) completions
* Added minicom completion
* Added quota-tools completion
* Added rdesktop completion
* Added tightvncviewer completion
* Cleanup screen completion, and make it completes on options
[ David Paleino ]
* Added .kar to Timidity completion.
* Fix killall completion, remove trailing ":" on certain process
names
* Fix man -l completing filenames (Debian: #497074)
* (Partly) fixed java classes completion (Debian: #496828). Look for
FIXME in source.
* Dump to /dev/null error message from look(1) with no arguments
(Debian: #495142)
* Set ssh as default for rsync (was rsh) (Debian: #492328)
* Added .oga, .ogv, .ogx to mplayer completion (Debian: #496162)
* Added .epub to unzip|zipinfo completion (Debian: #492476)
* Added ssh-copy-id completion (Debian: #491856)
* Moved ssh completion to separate file (Debian: #360628)
* Bogus completion when mounting subdirs fixed (Debian: #322238)
* Fix `apt-cache showsrc` completing only on source package names
(Debian: #361535)
* Fixed bugs with gdb completion:
- when an empty directory is in $PATH (thanks to Morita Sho)
(Debian: #497597)
- when a non-existing directory is in $PATH (Debian: #499780)
* Fix missing completion for "-n" and "-e" (we were using echo, now
using printf) (thanks to Morita Sho) (Debian: #498105)
* Fixed gpg completion:
- --@(export|@(?(l|nr|nrl)sign|edit)-key)) (Debian: #500316)
- -@(r|-recipient))
* Fixed .cb[rz] completion for evince (Debian: #502885)
* Added gksudo, gksu, kdesudo completion
* Added apache2ctl completion
* Added gpg2 completion (Debian: #489927)
* Fixed mplayer -skin completion (Debian: #501473)
* Fixed errors with POSIX enabled (Debian: #502804)
* Fixed dpkg-source wrong exit() with return() (Debian: #)
* Added --schedule-only to aptitude's completion (Debian: #502664)
* Added build-dep to aptitude's completion (Debian: #495883)
* Added support for `-F configfile' to _known_hosts(), ssh, scp and
sftp, thanks to Freddy Vulto (Debian: #504141)
* Fixed sed quoting bug in _known_hosts(), thanks to Freddy Vulto
(Debian: #504650)
* Allow `Host(Name)' in ssh config file to be indented
* Allow `Host(Name)' in ssh config file to have trailing comment.
* Allow for comments in known_hosts files (Debian: #511789)
* Fixed perl -I/-x completion, thanks to Freddy Vulto
(Debian: #504547)
* README updated: explain how to use bash-completion correctly.
(Debian: #506560)
* TODO updated: the Alioth team is now upstream.
* Added qdbus completion, thanks to Terence Simpson (Ubuntu: #257903)
* Added monodevelop and mdtool completions.
* Split subversion-related completions to contrib/_subversion
(prefixed with _ to avoid file conflicts with upstream's one)
* Fixed completion of environment variables, thanks to Morita Sho
(Debian: #272660)
* Fix dpkg completion bug: it listed only non-Essential packages
(Debian: #511790)
* Fixed _dpkg_source completion (Debian: #503317)
* Added _parse_help() to try to parse options listed in $command
--help
* Fixed gzip completion to use _parse_help(), since the available
options vary with distributions
* Added to_review/ directory, where completions needing a review would
go. After it gets accepted, the completion would go into contrib/.
* Remove unused UNAME local variable in _info() (Debian: #501843)
* AUTHORS added
* Make _alias() use _get_cword
* Added .zip to jar completions (Debian: #521041)
* Merge from Gentoo:
- fix 'find' completion so that it properly completes on -?(i)whilename.
Patch by Ciaran McCreesh.
- use make -qp to parse the Makefile for us, so we get proper completion
on things like pattern rules. Patch by Mike Kelly <pioto@exherbo.org>.
- complete on gkrellm2 as well. Patch by Aaron Walker.
- fix CVS completion
* Merge from Ubuntu:
- consume error messages in configure completion (Ubuntu: #223882)
(Mika Fischer)
- quote $xspec in _filedir_xspec in case it is empty, which would
cause errors if there was no match under failglob. (Ubuntu: #194419)
(Mika Fischer)
* debian/links fixed (Debian: #494292)
* debian/control:
- fixed typo in the long description
- added Vcs-* fields
* debian/install:
- correctly install contrib/* under /etc/bash_completion.d/
* debian/copyright updated
* extra/dh_bash-completion:
- updated to support a list of files in debian/<package>.bash-completion
(Debian: #512917)
[ Ville Skyttä ]
* Added JPEG 2000 files to display completion, thanks to Bastien Nocera
(RedHat: #304771)
* Improved rpm macro completion.
* Added -E to rpm completion.
* Improved rpm backup file avoidance.
* Improved /var/log/rpmpkgs based rpm installed package completion.
* Improved performance of rpm -qa based rpm installed package completion.
* Improved features and performance of yum completion.
* Added support for p (POSIX) and x (x.org) man sections.
* Improved filename based man page completion.
* Added minimal sqlite3 completion.
* Improved getent completion (Ville Skyttä, Guillaume Rousse).
* (Re)fix gzip and bzip2 options completion.
* Improved svn filename completion (RedHat: #430059).
* Add lzma completion (Per Øyvind Karlsen, Ville Skyttä).
* Add .mp2 and .vdr to mplayer completion (RedHat: #444467).
* Add .mkv, .mp2 and .vdr to *xine completion (RedHat: #444467).
* Added lzop completion.
* Fix scp metacharacter escaping.
* Remove duplicate cpio completion, thanks to Freddy Vulto (Debian: #512823)
* Fix awk error in "modprobe -r /" completion (Debian: #512556).
* Expand ~foo to dir name more eagerly to avoid quoting issues.
* Fix -sourcepath handling in javadoc packages completion.
* Extract process name completion from _killall to _pnames, make it work
for others than Linux and FreeBSD.
* Fix process name completion with relative paths (RedHat: #484578).
* Use improved process name completion in pgrep in addition to killall.
* Enable pgrep and pkill completion if the commands are available, not just
on Linux and FreeBSD.
* Drop hg completion, an improved version is shipped with Mercurial
(contrib/bash_completion in the tarball).
* Make okular complete on same files as evince, thanks to Mary Ellen Foster
(RedHat: #486998).
* Apply ps2pdf completion to ps2pdf{12,13,14,wr} too.
* Simplify bash_completion.sh, return earlier in non-applicable environments.
* Remove obsolete --buildarch and --buildos rpm(build) completions.
* Add rpmbuild --target completion.
* Use "-profile help" to get mplayer and friends -profile completions.
* Fix local array initialization under bash 3.0, prevents "()" occurring in
file and dir name completions.
[ Freddy Vulto ]
* Restored `_display()' completion for `display' by removing
completion-by-extension for `display' (Alioth#311429)
* Removed duplicate completion option `-borderwidth' for `display'
* Prevent completion dir from being sourced twice if
BASH_COMPLETION_DIR and BASH_COMPLETION_COMPAT_DIR are equal (Alioth#311433)
* Make `_mii-tool()' and `_mii-diag()' POSIX-compliant
* Fix _isql completion waiting for grep input if $ODBCINI not set; handle
whitespace in $ODBCINI.
* Split vncviewer completion in _tightvncviewer() and _xvnc4viewer()
Added _realcommand() global function.
[ Jakob Unterwurzacher ]
* ps2pdf can run on .pdf files as well. (Debian: #516614, Ubuntu: #316943)
[ Santiago M. Mola ]
* Add .ape to mplayer supported extensions (Alioth#311510).
-- David Paleino <d.paleino@gmail.com> Wed, 25 Mar 2009 23:18:24 +0100
bash-completion (20080705) unstable; urgency=low
[ David Paleino ]
* Added more completions to imagemagick (thanks to Nelson A. de
Oliveira) (Debian: #487786)
* Added xrandr completion (thanks to Anton Khirnov) (Debian: #487825)
* Improving _gdb completion:
- $filenames to $default (Debian: #463969)
- also show directory names (i.e. compgen -d) in COMPREPLY.
- added . to $PATH, to allow debugging "local" executables.
- do not complete Bash's builtins (thanks to Morita Sho)
[ Luk Claes ]
* Remove use of ucf for /etc/bash-completion (Debian: #488171).
-- Luk Claes <luk@debian.org> Sat, 05 Jul 2008 16:14:15 +0200
bash-completion (20080617.5) unstable; urgency=medium
* Revert way of setting environment variables (Debian: #487774).
* Add equals sign to _get_cword for mutt_aliases (Debian: #482635).
* Enhance mlayer completion (Debian: #487826, #487838).
-- Luk Claes <luk@debian.org> Tue, 24 Jun 2008 19:50:57 +0200
bash-completion (20080617.4) experimental; urgency=low
[ David Paleino ]
* Merged Ubuntu changes:
- added quote(), quote_readline(), dequote() helper functions.
- added _remove_word()
- fixed _get_cword()
- refactored _filedir using quote_readline()
- refactored _filedir_xspec using quote_readline()
- fixed COMPREPLY's in _iwconfig
- fixed _cvs()
- _known_hosts(): use files from UserKnownHostsFile options in
addition to standard ones.
- fixed _command() to correctly prune the command line
- disabled completion of PostgreSQL users and databases
- fixed _java_packages()
- fixed _muttquery()
- added flv/FLV completion to mplayer
- added --installed to apt-cache
- only complete on filenames for aspell
- fixed code for exclusions compspecs
- added code to gracefully handle debug options (set +/-v)
-- Luk Claes <luk@debian.org> Mon, 23 Jun 2008 19:25:25 +0200
bash-completion (20080617.3) unstable; urgency=low
[ David Paleino ]
* Fixed IFS for filedir_xspec - Thanks to Stefan Lippers-Hollmann
(Debian: #487571)
[ Luk Claes ]
* Install dh-bash-completion to ease installation of completions.
-- Luk Claes <luk@debian.org> Mon, 23 Jun 2008 07:24:21 +0200
bash-completion (20080617.2) unstable; urgency=low
[ David Paleino ]
* New upstream release
- provide a manpage for extra/dh_bash-completion
- fix semi-serious problem with _filedir() (Debian: #487449)
* debian/rules:
- added rule to generate dh_bash-completion's manpage
* debian/install, debian/dirs:
- installing dh_bash-completion into /usr/bin
* debian/control:
- new package dh-bash-completion
[ Luk Claes ]
* Comment new package to make sure current fix gets in the archive first.
* Add compression completion for vi(m).
-- Luk Claes <luk@debian.org> Sun, 22 Jun 2008 19:47:23 +0200
bash-completion (20080617.1) unstable; urgency=medium
[ David Paleino ]
* Urgency set to medium because the package is currently unusable.
* New upstream sub-release
- fixed some typos here and there which prevented bash completions
at all (Debian: #487441).
- really closing Debian bug #455510.
-- Luk Claes <luk@debian.org> Sun, 22 Jun 2008 00:22:53 +0200
bash-completion (20080617) unstable; urgency=low
[ David Paleino ]
* New upstream release
- add more completions to aptitude (Debian: #432289)
- fixed UTF-8 problem with _get_cword(), thanks to
Andrei Paskevich (Debian: #472132)
- fixed autoremove completion, thanks to Flavio Visentin
(Debian: #474974)
- cmf and CMF added to playmidi completion (Debian: #365658)
- added rrdtool completion, thanks to Justin Pryzby (Debian: #428641)
- added OpenDocument completion for unzip/zipinfo (.od{f,g,p,s,t})
(Debian: #472940)
- fixed escaping problems with job control (i.e. disown, jobs, bg,
fg): the argument is now surrounded by "" (Debian: #347316)
- make mkdir complete also on filenames (Debian: #376433)
- {bz,z}{cat,cmp,diff,egrep,fgrep,grep,less,more} now should complete
on all filenames, not just compressed archives (just commented out)
(Debian: #455510)
- fixes Perl completion (Debian: #470742)
- fixes get_cword -> _get_cword typo (Debian: #478596)
- fixes _get_cword() function to properly handle filenames with
whitespaces (Debian: #394636, #468254, #474094)
- added .pdf.bz2 completion to evince (Debian: #424736)
- added .svg completion to display (Debian: #441017)
- added .m2ts completion to mplayer (Debian: #480879)
- added extra/dh_bash-completion to ease future rewrite of bc.
* debian/copyright - now in a fancier machine-parsable format.
* debian/control:
- added myself to Uploaders
- debhelper Build-Depends updated to >= 6.
* debian/watch:
- improved current watch line regex
- added (commented out) probable future watch line
* debian/compat bumped to 6
* debian/dirs, debian/install and debian/links added
* debian/rules:
- refactored to make use of debian/{dirs,install,links}
[ Steve Kemp ]
* Applied patch to fix completion of umount command.
(Debian: #470539)
* Fixed the completion of Perl manpages.
(Debian: #404976)
* Added 'aif' to the filenames offed for completion for mplayer.
(Debian: #474517)
* Allow tsocks completion.
(Debian: #409423)
* Update mutt completion to handle local usernames.
(Debian: #416655)
* Update apt-get completion to include the flag "--no-install-recommends"
(Debian: #475242)
-- Luk Claes <luk@debian.org> Sat, 21 Jun 2008 21:59:43 +0200
bash-completion (20060301-4) unstable; urgency=low
* Add some fixes from Ubuntu:
* Fix completion of filenames with spaces (Debian: #468254).
* Fix parsing of SSH config files (Debian: #435117).
* Change priority to standard (Debian: #471666).
* Add some more completions for xine (Debian: #452083, #471249).
* Fix completion of gzip (Debian: #351913).
* Also use $HOSTFILE in hostname completion (Debian: #400380).
-- Luk Claes <luk@debian.org> Sat, 22 Mar 2008 23:10:30 +0000
bash-completion (20060301-3) unstable; urgency=low
* Fix kpdf completion (Debian: #468163, #413374).
* Fix completion of - or -- with _command (Debian: #415276).
* Add sux to the complete -u list (Debian: #466089).
* Add dvipdfm to the list of dvi programs (Debian: #396644).
* Add --purge-unused option completion for aptitude (Debian: #438471).
* Add divx extension completion for mplayer (Debian: #444294).
* Add pdf.gz completion for evince (Debian: #456887).
* Add --remove-all completion for update-alternatives (Debian: #269173).
-- Luk Claes <luk@debian.org> Wed, 05 Mar 2008 22:57:27 +0100
bash-completion (20060301-2) unstable; urgency=low
* Take over the package.
-- Luk Claes <luk@debian.org> Wed, 27 Feb 2008 19:22:03 +0100
bash-completion (20060301-1) unstable; urgency=low
* Upload to unstable.
-- Matthias Klose <doko@debian.org> Sat, 09 Feb 2008 23:18:20 +0100
bash-completion (20060301-0ubuntu2) hardy; urgency=low
* Replace bash (<< 3.1dfsg-9), handle upgrade in preinst.
* Exclude hashed hostnames from ssh host completion results. Debian: #428085.
* Fix: ifup/down don't really complete. Debian: #463756.
* Allow perl completion to complete filenames, complete -I and -x arguments.
Debian: #443394.
* Add find -wholename completion. Debian: #431220.
* Handle whitespaces in $HOME for _known_hosts() completion. Debian: #414821.
* dpkg -L: complete for removed-but-not-purged packages. Debian: #372156.
* Complete for apt-get autoremove. Debian: #433542, #443816, #445332.
* Update completion for mplayer (mka/flac). Debian: #340452.
* Add ping6/fping6 completion. Debian: #413170.
* Handle whitespace in paths for mount/umount completion. Debian: #367957.
* apt-get: Support --auto-remove. Ubuntu: #60666.
-- Matthias Klose <doko@ubuntu.com> Sat, 09 Feb 2008 23:11:32 +0100
bash-completion (20060301-0ubuntu1) hardy; urgency=low
* Initial release, split out from the bash package.
The software currently is unsupported upstream.
* Don't try to set a readonly variable. Ubuntu: #149527.
* Support purge in apt-get auto completion (Mathias Gug). Ubuntu: #151677.
* evince: Autocomplete on cbr/cbz/djvu files. Ubuntu: #156200, #175220.
Debian: #400678.
* kdvi: complete .*\.dvi\.(gz|bz2). Ubuntu: #128234.
* kpdf: Complete postscript files. Ubuntu: #162319.
* Make completion working in the middle of a word (Adam Simpkins).
Ubuntu: #139666.
-- Matthias Klose <doko@ubuntu.com> Fri, 08 Feb 2008 16:46:34 +0100
* [tg] Fix regression tests on OSes insisting on a shebang (Cygwin)
* [Sean Boudreau] QNX 6.4.2 ed(1) is said to have the bugs fixed
* [tg] Build.sh bugfixes: -DMKSH_BINSHREDUCED can also
be given without -DMKSH_SMALL; allow HAVE_REALPATH=x and
HAVE_REVOKE=x in the environment to re-enable these even if
-DMKSH_SMALL disables them by default, like mknod already did
* [tg] -DMKSH_ASSUME_UTF8=0 skips the environment checks, like
-DMKSH_ASSUME_UTF8=1, but disables the utf8-mode
* [tg] Apply some more KNF – style(9) – to the source; clean it up
and further optimise for small size
* [OpenBSD] Fix segfaults caused by missing check for end of input
in the tokeniser on “let --” and other input
* [OpenBSD] Make Vi editing mode ^W behave like Emacs mode’s
* [tg] If no killpg(3) is avaiable, use kill(2) and hope it works
* [tg] -DMKSH_NO_LIMITS skips trying to build the ulimit code
0.9.4
. Log file name is now configurable using 'logfilename' variable
inside the configuration file
. Corrected aliases in lshell.conf to work with *BSD
0.9.3
. corrected major bug (alias related)
0.9.2
. added Force SCP directory feature
. added command alias feature
0.9.1
. loglevel can now be defined on global, group or user level
. corrected sftp support (broken since in 0.9.0)
0.9.0
. version jump to 0.9.0
. corrected bug in case PATH does not exist and allowed set to 'all'
. added support for UNIX groups in configuration file
. corrected major security bug
. corrected path completion
. added escape code handling
. added flexible +/- possibilities in configuration file
. now supports completion after '|', ';' and '&'
. Command test are also done after '|', ';' and '&'
. Doesn't list hidden directories by default
. 4 logging levels
. added 'strict' behaviour
When using the ** globbing operator, bash will incorrectly add an extra
directory name when the preceding directory name ends with `*' or an empty
string when there is no preceding directory name.
If the prompt length exactly matches the screen width, and the prompt ends
with invisible characters, readline positions the cursor incorrectly.
When parsing case statements in command substitutions, the shell did not
note that a newline is a shell metacharacter and can legally be followed
by a reserved word (e.g., `esac').
When not in a locale supporting multibyte characters, readline will
occasionally not erase characters between the cursor position and the end
of the line when killing text backwards.
If a SIGWINCH arrives while bash is performing redisplay, multi-line prompts
are displayed incorrectly due to the display code being called recursively.
Using an external command as part of the DEBUG trap when job control is
enabled causes pipelines to misbehave. The problem has to do with process
groups assigned to the pipeline and terminal.
A missing include file results in an empty function definition and a no-op
when checking whether or not the window size has changed.
Adding a null line to a here-document (e.g., by hitting EOF) causes the
shell to dump core attempting to dereference the NULL pointer.
There are several problems with the handling of $LINENO in an ERR trap.
Deferring handling of signals which should cause the shell to terminate until
it is "safe" to run the handler functions does not work for some terminating
signals.
When the fc builtin is run in a command substitution from a shell with history
enabled, it does not correctly calculate the command on which to operate.
Though references to $@ when there are no positional parameters will now
cause the shell to exit if the `errexit' option has been enabled, constructs
such as ${@:-foo} should not cause an exit.
A case statement using the ;& pattern terminator followed immediately by
"esac" caused a core dump due to a null pointer dereference.
When using the new |& operator following a simple command with a redirection,
the redirection of stderr through the pipe was not performed under certain
circumstances.
mksh R38b fixes the following problems:
* [André Wösten] Add __NO_EXT_QNX to avoid picking up the wrong
waitfor() from <libutil.h> in (while porting to) QNX 6.4
* [tg] Plug memory corruption issue introduced in R38
* [tg] Amend dot.mkshrc with a base64 en-/decoder in shell
* [tg] Import a manpage fix via OpenBSD from Alan R. S. Bueno
mksh R38 comes with these changes and fixes applied:
* [tg] Improve regression test output debugging
* [tg] Fix <libutil.h> prerequisites on MidnightBSD in mirtoconf
* [tg] Mention that RedHat BZ#496791 cannot currently be fixed in the
manpage by discouraging use of apostrophes in comments in comsubs; add
appropriate (expected-fail) regression tests
* [tg] Sync with OpenBSD ksh (mostly a no-op)
* [James Butler] Add search-history-up and search-history-down keybindings
(tcsh-like) to the Emacs command line editing mode
* [tg] Bind new search-history-{up,down} to ANSI PgUp and PgDn keys
* [tg] Document ANSI default keybindings (↑↓←→ Home End Del PgUp PgDn)
in the mksh(1) manual page as well
* [tg] Optimise internal UTF-8 handling code for size and reusability
* [tg] Incompatible change: ${foo:1:2} and ${#foo} now
operate on characters, not on bytes. Characters are octets (set +U)
or (utf8-mode) MirOS OPTU-8 multibyte characters (set -U)
* [tg] Improve regression tests relating to ${foo:1:2} and
${#foo} and let wc=1#x and utf8-mode
* [tg] Use per-file copyright notices, move global text to manpage
* [tg] Expose new MKSH_MIDNIGHTBSD01ASH_COMPAT ifdef; change it to
only trigger if FPOSIX (or MKSH_BINSHREDUCED and /bin/sh)
* [tg] Remove already-dead “#if 0” style debugging code
* [tg] Change some code into a more portable fashion, optimise
* [tg] Allow [[ $foo ]] (ksh93 extension) mentioned by pgas
* [tg] Clean up mksh and the contributed arc4random.c for some
conversion, enum and other warnings for gcc-snapshot trunk r147610
* [tg] Ensure no function uses more than 768 bytes of stack either
* [tg, wbx] Add extension to make “!string” lines work like in GNU bash
Upstream changes between osh-20081213 and osh-20090527 follow:
osh bug fixes:
1) This release fixes an `echo' bug that causes `echo ""' to print an
unnecessary diagnostic.
2) It also fixes a `sigign' bug that can cause incorrect signal ignoring
behavior for subshells.
New osh features:
1) This release adds `cd' as a synonym for the `chdir' special command.
2) It also adds $m as a special parameter for the value of the MANPATH
environment variable.
.[tg] Improve præprocessor detection/work in Build.sh
.[tg] Decouple MKSH_CONSERVATIVE_FDS from MKSH_SMALL
.[tg] Enable MKSH_CONSERVATIVE_FDS by default on Minix 3
.[tg] Work around the (in-)famous ACK "const" bug
.[tg] Optimise structure alignment and padding; Closes: #522778
.[tg] Retain LOCPATH (for glibc locale) in check.pl
.[tg] Document, simplify and clean up the code better
.[tg] Use mirbsd.org eMail addresses consistently
mksh R37b comes with the following fixes on top:
.[tg] Clean up build system and dot.mkshrc some more
.[tg] Add getrusage(2) implementation using times(3) if none found
.[tg] Add jobless mode (for Minix 3, Plan 9, .)
.[tg] Detect the Amsterdam Compiler Kit in the build system
.[tg] If no RLIM_INFINITY don.t try to do ulimit
.[tg] Work around gcc4 strict warnings vs. broken system headers
.[tg] Work around systems with mmap(2) but no munmap(2)
.[tg] Fix (disallow) bind key macro recursion (instead of beeping and going into an endless loop), allow multi-line bind key macros (mostly from Alexander Hall), remove dead code (the beeping) and optimise
.[tg] Add (commented out, undesired, standards compliance breaking) compatibility code to MidnightBSD 0.1 /bin/sh for ctriv
.[tg] Clarify the mksh(1) manual page even more
.[tg] Port to Minix 3 + GCC
mksh R37 has major standards compliance improvements:
.[tg] Rename -o utf8-hack to -o utf8-mode
.[tg] Fix spacing mode error (pasto) in the mdoc(7) format manpage
.[tg] Implement $((#.)) unsigned arithmetic calculation, needed for arc4random_uniform(3)-in-korn-shell implementation
.[tg] Really preserve LD_LIBRARY_PATH in check.pl
.[tg] New Build.sh option .-combine. for building mksh(1) at once with .-fwhole-program --combine. (gcc4, llvm-gcc4) if available
.[tg] Always set COLUMNS and LINES trying as hard as we can, using TIOCGWINSZ even if used without FTALKING, and with the sane 80x24 default if the ioctl(2) fails
.[tg] Handle _POSIX_VDISABLE being undefined (e.g. Linux/klibc)
.[tg] <sys/file.h> is only required for flock(2)
.[tg] Fix multi-column output routine for the corner case if the screen is less wide than one output column; 10x Gábor Gergely
.[tg] Fix ${foo/@(%)/\\x} in UTF-8 mode (utf_widthadj for control characters U+0080.U+009F is slightly broken; this fix shifts the brokenness into the command line editing mode only)
.[tg] Introduce mksh_ari_t and mksh_uari_t internal types to limit arithmetics to 32 bit on all systems; currently depending on the already-used standard int32_t and uint32_t types. Future expansion to 64 bit possible. Document that shell integer variables use this type.
.[tg] The variables PGRP, PPID, RANDOM and USER_ID are now unsigned
.[tg] Fix two off-by-ones breaking PS1 ending with a newline; bug reported by Matthias Diener
.[tg] Just pass through C1 control characters for now
.[tg] Code and internal interfaces cleanup
.[tg] Regression test fixes for Cygwin env(1) being unsorted
.[tg] Replace the memory allocator by something equally simple and homegrown but optimised for use with mksh and free checking
.[tg] Import a couple of minor fixes (e.g. spelling) from oksh
.[tg] Fix problems with "set -e" for real; from oksh, Closes: #518359
.[tg] In "set -o posix" mode, have limited echo(1) to improve standards compliance; the exact feature set is open for discussion, e.g. with pkgsrc® people; for now, only -n as first arg
.[tg] Make test builtin operator precedence consistent; from oksh
.[tg] Revamp and fold and enhance the regression tests
.[tg] Document somewhat surprising behaviour in mksh(1) better; here: [ x -eq y ]; for gps23 from #ksh
.[tg] Reduce memory consumption by allocator simplification
.[tg] Fix bugs spotted by DEC ucode cc (ULTRIX) and gcc 1.42 (BSD/OS)
.[laffer1] Make mksh the default /bin/sh in MidnightBSD
quite simply using a configuration file. It becomes easy to restrict user's
access to a limited set of commands, chosing to allow any command over SSH
(e.g. SCP,SFTP,rsync,etc.).
OK'd by seb@
Since two people already asked for it, here's the package, but
maintainer is set to pkgsrc-users.
Bash is an sh-compatible shell that incorporates useful features from
the Korn shell (ksh) and C shell (csh). It is intended to conform to
the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.
It offers functional improvements over sh for both programming and
interactive use; these include command line editing, unlimited size
command history, job control, shell functions and aliases, indexed
arrays of unlimited size, and integer arithmetic in any base from two
to sixty-four. In addition, most sh scripts can be run by Bash without
modification.
This package contains the outdated version 3 of bash.
1. New Features in Bash
a. When using substring expansion on the positional parameters, a starting
index of 0 now causes $0 to be prefixed to the list.
b. The `help' builtin now prints its columns with entries sorted vertically
rather than horizontally.
c. There is a new variable, $BASHPID, which always returns the process id of
the current shell.
d. There is a new `autocd' option that, when enabled, causes bash to attempt
to `cd' to a directory name that is supplied as the first word of a
simple command.
e. There is a new `checkjobs' option that causes the shell to check for and
report any running or stopped jobs at exit.
f. The programmable completion code exports a new COMP_TYPE variable, set to
a character describing the type of completion being attempted.
g. The programmable completion code exports a new COMP_KEY variable, set to
the character that caused the completion to be invoked (e.g., TAB).
h. If creation of a child process fails due to insufficient resources, bash
will try again several times before reporting failure.
i. The programmable completion code now uses the same set of characters as
readline when breaking the command line into a list of words.
j. The block multiplier for the ulimit -c and -f options is now 512 when in
Posix mode, as Posix specifies.
k. Changed the behavior of the read builtin to save any partial input received
in the specified variable when the read builtin times out. This also
results in variables specified as arguments to read to be set to the empty
string when there is no input available. When the read builtin times out,
it returns an exit status greater than 128.
l. The shell now has the notion of a `compatibility level', controlled by
new variables settable by `shopt'. Setting this variable currently
restores the bash-3.1 behavior when processing quoted strings on the rhs
of the `=~' operator to the `[[' command.
m. The `ulimit' builtin now has new -b (socket buffer size) and -T (number
of threads) options.
n. The -p option to `declare' now displays all variable values and attributes
(or function values and attributes if used with -f).
o. There is a new `compopt' builtin that allows completion functions to modify
completion options for existing completions or the completion currently
being executed.
p. The `read' builtin has a new -i option which inserts text into the reply
buffer when using readline.
q. A new `-E' option to the complete builtin allows control of the default
behavior for completion on an empty line.
r. There is now limited support for completing command name words containing
globbing characters.
s. Changed format of internal help documentation for all builtins to roughly
follow man page format.
t. The `help' builtin now has a new -d option, to display a short description,
and a -m option, to print help information in a man page-like format.
u. There is a new `mapfile' builtin to populate an array with lines from a
given file. The name `readarray' is a synonym.
v. If a command is not found, the shell attempts to execute a shell function
named `command_not_found_handle', supplying the command words as the
function arguments.
w. There is a new shell option: `globstar'. When enabled, the globbing code
treats `**' specially -- it matches all directories (and files within
them, when appropriate) recursively.
x. There is a new shell option: `dirspell'. When enabled, the filename
completion code performs spelling correction on directory names during
completion.
y. The `-t' option to the `read' builtin now supports fractional timeout
values.
z. Brace expansion now allows zero-padding of expanded numeric values and
will add the proper number of zeroes to make sure all values contain the
same number of digits.
aa. There is a new bash-specific bindable readline function: `dabbrev-expand'.
It uses menu completion on a set of words taken from the history list.
bb. The command assigned to a key sequence with `bind -x' now sets two new
variables in the environment of the executed command: READLINE_LINE_BUFFER
and READLINE_POINT. The command can change the current readline line
and cursor position by modifying READLINE_LINE_BUFFER and READLINE_POINT,
respectively.
cc. There is a new &>> redirection operator, which appends the standard output
and standard error to the named file.
dd. The parser now understands `|&' as a synonym for `2>&1 |', which redirects
the standard error for a command through a pipe.
ee. The new `;&' case statement action list terminator causes execution to
continue with the action associated with the next pattern in the
statement rather than terminating the command.
ff. The new `;;&' case statement action list terminator causes the shell to
test the next set of patterns after completing execution of the current
action, rather than terminating the command.
gg. The shell understands a new variable: PROMPT_DIRTRIM. When set to an
integer value greater than zero, prompt expansion of \w and \W will
retain only that number of trailing pathname components and replace
the intervening characters with `...'.
hh. There are new case-modifying word expansions: uppercase (^[^]) and
lowercase (,[,]). They can work on either the first character or
array element, or globally. They accept an optional shell pattern
that determines which characters to modify. There is an optionally-
configured feature to include capitalization operators.
ii. The shell provides associative array variables, with the appropriate
support to create, delete, assign values to, and expand them.
jj. The `declare' builtin now has new -l (convert value to lowercase upon
assignment) and -u (convert value to uppercase upon assignment) options.
There is an optionally-configurable -c option to capitalize a value at
assignment.
kk. There is a new `coproc' reserved word that specifies a coprocess: an
asynchronous command run with two pipes connected to the creating shell.
Coprocs can be named. The input and output file descriptors and the
PID of the coprocess are available to the calling shell in variables
with coproc-specific names.
ll. A value of 0 for the -t option to `read' now returns success if there is
input available to be read from the specified file descriptor.
mm. CDPATH and GLOBIGNORE are ignored when the shell is running in privileged
mode.
nn. New bindable readline functions shell-forward-word and shell-backward-word,
which move forward and backward words delimited by shell metacharacters
and honor shell quoting.
oo. New bindable readline functions shell-backward-kill-word and shell-kill-word
which kill words backward and forward, but use the same word boundaries
as shell-forward-word and shell-backward-word.
2. New Features in Readline
a. A new variable, rl_sort_completion_matches; allows applications to inhibit
match list sorting (but beware: some things don't work right if
applications do this).
b. A new variable, rl_completion_invoking_key; allows applications to discover
the key that invoked rl_complete or rl_menu_complete.
c. The functions rl_block_sigint and rl_release_sigint are now public and
available to calling applications who want to protect critical sections
(like redisplay).
d. The functions rl_save_state and rl_restore_state are now public and
available to calling applications; documented rest of readline's state
flag values.
e. A new user-settable variable, `history-size', allows setting the maximum
number of entries in the history list.
f. There is a new implementation of menu completion, with several improvements
over the old; the most notable improvement is a better `completions
browsing' mode.
g. The menu completion code now uses the rl_menu_completion_entry_function
variable, allowing applications to provide their own menu completion
generators.
h. There is support for replacing a prefix of a pathname with a `...' when
displaying possible completions. This is controllable by setting the
`completion-prefix-display-length' variable. Matches with a common prefix
longer than this value have the common prefix replaced with `...'.
i. There is a new `revert-all-at-newline' variable. If enabled, readline will
undo all outstanding changes to all history lines when `accept-line' is
executed.
j. If the kernel supports it, readline displays special characters
corresponding to a keyboard-generated signal when the signal is received.
Changes from NEWS:
--------8<--------8<--------8<--------8<--------8<--------8<--------8<
Major changes between versions 4.3.6 and 4.3.9
----------------------------------------------
The option COMBINING_CHARS has been added. When it is set, the
line editor assumes the terminal is capable of displaying zero-width
combining characters (typically accents) correctly as modifications
to the base character, and will act accordingly. Note it is not set
by default owing to vagaries of terminals. The system is reported
to work on MacOS, where this is particularly important as accented
characters in file names are stored in their decomposed form (i.e.
with base and combining characters).
The option HIST_FCNTL_LOCK has been added to provide locking of history
files using the system call fcntl(). On recent NFS implementations this
may provide better reliability.
The syntax ~[...] provides a dynamic form of directory naming,
supplementing the existing static ~name syntax. A user-defined shell
function, zsh_directory_name, is used to handle both expansion of names to
directories and contraction of directories to names.
Patterns can now be used in incremental searches with the new widgets
history-incremental-pattern-search-backward and
history-incremental-pattern-search-forward. These are not bound to
keys by default.
Highlighting and colouring of sections of the command line is now
supported, controlled by the array parameter zle_highlight and the ZLE
special parameter region_highlight.
Colouring of prompts is now supported within the shell by prompt
escapes. The prompt theme system has been updated.
Various changes have been added to make debugging of shell code easier:
- As noted in README, the option DEBUG_BEFORE_CMD is now set by default.
- In DEBUG traps, $ZSH_DEBUG_CMD gives the code for which the trap is
called as a string.
- "setopt ERR_EXIT" in a DEBUG trap causes the code not to be executed.
- $ZSH_SUBSHELL indicates the subshell level at which code is being
executed.
- The zsh/parameter module has various additional arrays similar to
the existing $funcstack and $functrace, namely $funcsourcetrace
and $funcfiletrace. The consistency and informativeness of
the output of all these arrays has been improved.
- Prompt escapes %x and %I show the source file and line number in
debug prompts (compare %N and %i which show names and line numbers
in the execution environment).
- The option NO_MULTI_FUNCDEF can turn off multiple definition of
functions at once, a rarely used feature that can cause problems
with misplaced "()".
- The "fc" builtin has been enhanced to make non-interactive use possible
and output consistent when the history is manipulated with "print -s".
The completion style accept-exact-dirs has been added. When true, this
suppresses attempts to complete non-final directory segments of a filename
path when the directory exists. (For example, /home/pws/src/zsh/<TAB>
discovers that /home/pws/src/zsh exists and leaves the directory component
alone, while /h/p/s/z/<TAB> completes to /home/pws/src/zsh/... as before.)
This should improve completion behaviour noticeably in special cases, such
as remote paths under Cygwin.
Major changes between versions 4.3.5 and 4.3.6
----------------------------------------------
cd, chdir, pushd and popd now take a -q option to suppress side effects
including printing the directory stack (for pushd and popd) and executing
the chpwd hook functions (for all four).
The parameter subscript (e) flag now forces the argument to be treated
as a string where it would previously have been treated as a pattern,
for example ${array[(ie)*]} substitutes the index of the element whose
value is "*".
Major changes between versions 4.3.4 and 4.3.5
----------------------------------------------
- The new extended globbing flag (#cN,M) behaves similarly to the extended
regular expression syntax {N,M}.
- The zsh/datetime module has been enhanced and a calendar function
system has been added along the lines of (but much enhanced from)
the traditional Unix "calendar" utility. This is still under
development. See the zshcalsys manual. (The calendar functions
were in 4.3.4 but were not listed in this file. There have been
significant enhancements since 4.3.4.)
- A new module zsh/curses provides a builtin zcurses for access to
to the curses screen manipulation package. See the entry for zsh/curses
in the zshmodules manual.
- The module system has been enhanced to support the notion of "features"
that give more control over which builtins, parameters, conditions
and math functions are loaded from a module. In particular,
"zmodload -F zsh/stat b:zstat" makes the builtin previously called
"stat" available as "zstat" (only) to avoid clashes with a system
command named "stat".
>8-------->8-------->8-------->8-------->8-------->8-------->8--------
Upstream changes between osh-20081122 and osh-20081213 follow.
osh.c:
This release changes the effect of the `-v' command-line option so that,
in addition to printing non-blank command lines to the standard error,
it also prints each blank/empty command line as an empty line.
fd2.c, util.c:
This release changes the fd2 `-e' command-line option so that it
reflects the documented behavior. For example, this change causes
invocation of `fd2 -ef file command' to redirect both conventional
output and diagnostic output from "command" to "file".