summaryrefslogtreecommitdiff
path: root/shells
AgeCommit message (Collapse)AuthorFilesLines
2009-06-14mksh R38c contains the following fixes:ahoka2-7/+7
* [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
2009-06-12Removed redundant .gz suffix for man pages.rillig1-3/+3
2009-06-10Updated from 0.2.6 to 0.9.4.imil2-6/+6
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
2009-06-05update master sites. remove www.research.att.com. requires authorization.zafer1-5/+3
2009-06-05Update to 4.0.24. Following bugs were fixed since 4.0.10:hasso2-4/+48
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.
2009-06-03Update to mksh R38b:ahoka2-6/+7
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
2009-05-30Update osh to 20090527, per maintainer update request by PR#41509.obache3-8/+8
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.
2009-05-21update master site.zafer1-2/+2
2009-05-20Recursive ABI depends update and PKGREVISION bump for readline-6.0 shlibwiz3-4/+6
major change. Reported by Robert Elz in PR 41345.
2009-04-13mksh R37c provides these follow-up fixes:ahoka3-11/+16
.[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
2009-04-09Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.joerg1-2/+1
2009-04-08Remove the remaining NO_MTREE definitions, it has been a nop for ajoerg1-3/+1
while.
2009-03-31Remove conditional to use bison in case of IRIX, it's used anyway now.hasso1-6/+1
2009-03-31* Update to the latest patchversion 4.0.10, it fixes several segfaults inhasso2-6/+41
routine usage. * Switch from yacc to bison. Yacc is known to cause problems: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00115.html
2009-03-06+PKG_DESTDIR_SUPPORT= user-destdirsnj3-10/+12
2009-03-04add & enable lshell-0.2.6imil1-1/+2
2009-03-04Limited Shell (lshell) provides a configurable shell per user. This is doneimil4-0/+58
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@
2009-02-24Mention that this package contains the outdated version 2 of bash.wiz2-2/+4
2009-02-24+ bash3.wiz1-1/+2
2009-02-24Initial import of bash3 -- latest version of bash-3 branch.wiz7-0/+188
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.
2009-02-24Update to 4.0:wiz4-173/+33
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.
2009-02-21Merge the following revisions from NetBSD src:tnn3-36/+22
c_ulimit.c 1.9: avoid sign extension problem lex.c 1.13: bugfix related to nested quotes Bump PKGREVISION.
2008-12-30DragonFly has ncurses too.uebayasi1-2/+2
2008-12-28Register extra shared objects used where ncurses exists. Hopefully fix PLISTuebayasi3-12/+20
errors reported by Takahiro Kambe (FreeBSD) and Aleksey Cheusov (Linux). No bump because nothing changes on NetBSD.
2008-12-23Fix interpreter paths. Patch provided by David Brownlee, thanks!uebayasi1-1/+23
2008-12-23zsh-roadmap.1 was missed.uebayasi1-1/+2
2008-12-22Bad uebayasi didn't know that user-destdir doesn't catch PLIST errors.uebayasi3-6/+237
2008-12-22- Avoid using lovely :?foo:bar syntax since netbsd-5's make(1) handles ituebayasi2-23/+30
oddly. Should fix build errors seen on netbsd-5. - Kill unused variables.
2008-12-22Put back s/$INSTALL_DATA + chmod +x/$INSTALL_SCRIPT/ change lostuebayasi4-1/+45
in previous. No user-visible changes expected.
2008-12-22Garbage collect unused code. No functional changes.uebayasi3-20/+12
2008-12-21Update zsh-current to 4.3.9.uebayasi13-193/+111
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--------
2008-12-21Update zsh to 4.2.7.uebayasi12-189/+194
Changes are unknown.
2008-12-20add the remaining patcheschristos2-4/+52
2008-12-13Update osh to 20081213, by maintainer's update request via PR 40157.obache2-6/+6
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".
2008-11-28Switch to http for ftp.scsh.net, can't connet with ftp and download pageobache1-2/+3
link to distfile with http. While here, add SourceForge to MASTER_SITES.
2008-11-23Update shells/oshreed4-19/+16
Add new maintainer. Thank you J.A. The following is from PR #40006: I would like to maintain this package if that is acceptable. Thus, I added myself as MAINTAINER. Changed files: DESCR, Makefile, PLIST, distinfo Changes between osh-20080629 and osh-20081122 which affect the osh package on the various pkgsrc platforms are described below. ------------------------------------------------------------------------ [osh-20081122]: mkconfig: * Added a case for DragonFly BSD (uname -s == DragonFly). osh.c: * Fixed a bug introduced in osh-20061230 where the shell incorrectly handles an unescaped terminating backslash (\) character at the end of string when the shell is invoked as `osh -c string'. In this case, the terminating backslash causes the shell to incorrectly read from the standard input at the end of string. For example: % osh -c 'echo Hello\' to\ you! Hello to you! This example should instead do nothing and exit w/ a zero status. For `osh -c string', an unescaped terminating backslash should effectively turn string into a no-op. Now, it behaves as expected. ------------------------------------------------------------------------ [osh-20081026]: Makefile: * Changed the "oshall" target to only build osh since the fd2, goto, and if utilities are now built into the shell. * Changed the "install-oshall" target to only install osh and its manual pages. This includes the fd2.1, goto.1, and if.1 manual pages since they are not fully documented elsewhere. osh.c: * Renamed cmd_index() to cmd_lookup(), and changed the algorithm from a linear search to a binary search. * Added a base reallocation multiplier to glob() to reduce the number of realloc()s required for very large argument vectors while allowing the first malloc() to be a relatively small allocation for up to 126 matching file-name arguments. util.c: * This is a new file for the integrated shell utilities. * Added a new `-e' command-line option to fd2 to simplify redirecting all conventional output to the standard error as diagnostic output. * Integrated the external `fd2', `goto', and `if' shell utilities as special built-in commands to improve shell performance. Also, added `echo' as a special built-in command. Osh executes each of these built-ins in a subshell. Consequently, the I/O for each can be redirected as before, and the argument list for each can be the result of a call to glob() as before.
2008-11-10Changes 6.16.0:adam3-23/+8
* Bug fixes
2008-10-25Update to version R36.ahoka2-6/+6
Major changes: * Digital UNIX (DEC OSF/1) V2.0 (MIPS) is now supported using the DEC C and ucode toolchain. (We could not run the testsuite, though.) * The ‘-Q’ option to Build.sh is gone without replacement. * A new option can be enabled by adding -DMKSH_BINSHREDUCED to $CPPFLAGS, intended mostly for Debian. This option adds extra code to determine whether mksh(1) is called as sh or -sh and switch to “set -o posix” mode if so, disabling brace expansion and some security features, because legacy scripts, such as debconf, depend on such reduced functionality /bin/shs. * Input lines beginning with an IFS character of IFS white space are no longer pushed into the history. Some other, less surprising, changes were also made to both Emacs and Vi command line editing modes. * The arc4random.c contributed file is now stored with the RCS version number appended, and has been updated.
2008-10-19Bump the PKGREVISION for all packages which depend directly on perl,he2-4/+4
to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0. The list of packages is computed by finding all packages which end up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl, or PERL5_PACKLIST defined in their make setup (tested via "make show-vars VARNAMES=...").
2008-10-06Update mksh to R35b.ahoka2-6/+6
mksh R35b comes with the following bug fixes: IRIX also has no UTF-8 locale at all, confirmed by Elias Pipping Fix regression test suite for MKSH_SMALL Bring in latest changes from oksh (OpenBSD ksh, not DeliLinux crap) Fix abuse and unsafe use of str_save() and str_nsave() Optimise the implementations of str_save() and str_nsave() If MKSH_AFREE_DEBUG is defined, guard against afree()ing a pointer which has not been allocated from the given pool, from Todd C. Miller Fix attempt to free a pointer to stack (function-local) storage when redefining a function containing a call to the “time” built-in, discovered by Elias Pipping, patch by Jared Yanovich, help from Todd C. Miller Protect a little against people not running “./test.sh -v” but calling it with, for instance, GNU bash (as homsn did…) Honour $PERL environment variable in test.sh, improve scanning for Perl, do not use potentially undefined $^O, print Perl version Add <sys/types.h> as <ulimit.h> requirement (dietlibc) Work around bug in BSD/OS 3.1 /bin/ksh (PD KSH v5.2.8 96/08/19) Add regression tests from OpenBSD’s <bsd.regress.mk> suite Use better CPPFLAGS for AIX, Minix 3 (from pdksh) Expose the “s ≠ NULL” str_[n]save_() API and use it where the string can never be NULL (local stack storage), from gcc-4.2 warnings Clean up pointer-to-integer-cast warnings in the mirtoconf process mksh R35 comes with helluva changes: Simplify and refactor the ulimit builtin, partially from oksh Some style cleanup; use appropriate integer types Fix a bug in table (e.g. kill -l, tab completion) display: the width of non-ASCII characters is now honoured in the utf8-hack mode Improve handling of invalid UTF-8 in certain areas, and multibyte (UTF-8 / CESU-8) in general When using “typeset -Z«n»” on an integer variable with a base other than ten, zero-pad the value instead of the base – pdksh, oksh, zsh, and AT&T ksh93 are wrong here; GNU bash doesn’t even have typeset Improve parsing of “set +o” output where done (dot.mkshrc, check.t) Improve regression tests Support for base-1 numbers: in non-utf8-hack mode, ‘1#x’ means the same as the ASCII code for ‘x’ (e.g. 78hex), where ‘x’ is any single octet (byte); in utf8-hack mode, ‘x’ is either a valid and minimalistically encoded UTF-8 multibyte character in the range 0000‥FFFD, or a single octet with no trailing octets (bytes), which will then be converted as if it were an ASCII value, or, if bit7 is set, be mapped into the PUA range of EF80‥EFFF assigned by CSUR for this purpose; this mapping is, in both cases, bidirectional; the planned base-0 number support is not possible with the code, so use base-1 (with utf8-hack disabled, or & 0xFF) instead (while it is recommended to parse only single octets, there is a regression test showing correct and safe multibyte parsing, which however is error-prone to implement and thusly not recommended) – “genial” replaced@TNG, “this sounds fun” ggergely, agreed bsiegert@ and others Pull in more current versions of supplied files; use Unicode 5.0 Clean up unused definitions in build system; document MKSH_CLS_STRING Remove advertising clause from copyright file; while we’d be pleased to be mentioned if something contains our code, tg@ will no longer enforce the requirement to advertise with that specific formula, and we’d prefer if people remember the OpenHAL vs ath5k incident and that they cannot simply change licencing of existing code; patches sent to the MirOS Project for inclusion shall be accepted if they’re agreed to match this licence Simplify dot.mkshrc sample file: licence is merged into the main copyright file; AT&T ksh93 compatibility was improved Fix a display problem regarding fullwidth characters (e.g. CJK) Set the “C” locale in Build.sh for tool execution; otherwise, certain OEs behave strange; thanks to Adam “replaced” Hoka for spotting Use en_US.utf8 as UTF-8 locale for the testsuite for now If setlocale(LC_CTYPE, "") is not available, look at the environment variables ourselves – brings UTF-8 support to poor OSes Remove some now-dead code; speed up configuration process; shrink Default to no setlocale(3) due to stubbed or missing locale support on GNU/Cygwin, OpenBSD, OSF/1 in Build.sh; a few more that are quite unlikely to have a UTF-8 locale: BSD/OS, Interix, Minix, PW32, Ultrix, AT&T UWIN; default to always UTF-8 on Plan 9 Fix for testsuite unexpected failure if running as root in one case Initialise all shell integer variables (OPTIND, PPID, RANDOM, SECONDS, TMOUT) to base 10 Reintroduce from mksh pre-R24 shell integer variable PGRP set to the PID of the process group leader via getpgrp(2) New shell integer variable USER_ID set to the geteuid(2) and used by dot.mkshrc to speed up logins, saves a spawn of id(1), mentioned by and realisation planned with Andreas "gecko2" Gockel Fix dot.mkshrc tilde replacement in both $PS1 and the pushd/popd/dirs implementation when the home directory is empty, the root directory, or ends with a slash (disable replacement in that case) Support dietlibc, force it into providing a BSDish caddr_t Do not use LDFLAGS and LIBS while compiling with -c Add realpath(3) builtin, to further speed up logins and chdirs Optimise the code somewhat by making use of possible assumptions Set the “C” locale in test.sh as well to quell warnings Split the regression tests that use locale between en_US.utf8 and en_US.UTF-8, since not all OSes support either one, and make only HP-UX and GNU use the latter Fix kill, mknod(8) builtin usage msg, from Igor Sobrado via oksh Use proper ptrdiff_t casts for pointer arithmetics, inspired by an oksh commit from Federico Schwindt Remove check category “pdksh” from check.t and test script Improve Darwin, OSF/1, HP aCC, SUNpro version reporting Support GNU bash “&>” extension, even better than they do, suggested by Lukas “smultron” Upton from MidnightBSD Basic support for LLVM+clang in the build system with experimental “ccc” compiler driver; llvm-gcc worked as-is before already Better support for contributed arc4random.c file Do not spin if unlink(2) fails on $HISTFILE, from Decklin Foster Dump the perl(1) $^O variable in test.sh to logs Pull in latest changes from oksh Allow white space between a here string indicator and the string, accidentally discovered by twkm (#ksh, freenode) Allow fd specifications outside the 0‥9 range for I/O redirections, and bounds check them to be lower than the FDBASE definition, currently still 10 if MKSH_SMALL, 24 otherwise (unportable) Improve the regression test suite: for one test, we had a bizarre constraint telling it won’t work on UWIN, which was based upon false assumptions, but Tru64 would fail it since its cat(1) unexpectedly outputs some error messages (fix by closing stderr for cat); another test would unexpectedly print no error message on Solaris (fix by making the error message optional in the perlre(1) used) Switch back to en_US.UTF-8 for glibc, Debian can do both, Mandriva fails on en_US.utf8 (XXX no libc5 auto-detection to disable it)
2008-09-19Fix build on amd64. I'm taking the aggressive approach of using va_copyjoerg5-8/+79
here, the #if can be easily modified for those platforms missing it.
2008-08-22Regenerate correct distinfo for patch-ab.bjs1-2/+2
2008-08-22Update eltclsh to 1.9obache1-0/+18
Based on PR 37283 (update to 1.8). eltclsh 1.9 released august 8, 2008 30. Fix libtool usage and install target to allow cross compilation in OpenEmbedded. 29. Honor TCL_DBGX to allow compiling against a tcl library with debugging symbols enabled. 28. Honor CFLAGS from the environment during the build process 27. Fix history command that was not working. 26. Switch repository to git. eltclsh 1.8 released august 20, 2007 25. Add wrappedputs procedure that print a string wrapped to a given width. 24. Stop scanning arguments in interactive mode when user press C-d. eltclsh 1.7 released december 19, 2006 23. Add new function "interactive" which starts the interactive interpreter (useful inside scripts). 22. Add support for installation in $(DESTDIR)
2008-08-22Update eltclsh to 1.9.obache5-28/+17
Based on PR 37283 (updated to 1.8). eltclsh 1.9 released august 8, 2008 30. Fix libtool usage and install target to allow cross compilation in OpenEmbedded. 29. Honor TCL_DBGX to allow compiling against a tcl library with debugging symbols enabled. 28. Honor CFLAGS from the environment during the build process 27. Fix history command that was not working. 26. Switch repository to git. eltclsh 1.8 released august 20, 2007 25. Add wrappedputs procedure that print a string wrapped to a given width. 24. Stop scanning arguments in interactive mode when user press C-d. eltclsh 1.7 released december 19, 2006 23. Add new function "interactive" which starts the interactive interpreter (useful inside scripts). 22. Add support for installation in $(DESTDIR)
2008-08-12More changes to give it a chance to work.joerg1-1/+3
2008-07-25Don't needlessly depend on a perl module for a perl script we do not install.ghen3-7/+5
Bump PKGREVISION for zsh and zsh-current.
2008-07-18Update osh to 20080629, requested by PR 39067.obache2-6/+7
Significant changes include the following: 1) Support was added for 3 new command-line options: "-i", "-l", and "-v". 2) Support was added for 3 new rc files. *) This includes a system-wide "osh.oshrc", a system-wide "osh.logout", and a user ".osh.logout". See http://v6shell.org/src/CHANGES for full details.
2008-07-14Mark as destdir ready.joerg1-1/+3
2008-07-13Fix an insecure temp file creation vulnerability in zsh-current's difflog.pltonnerre3-3/+24
(CVE-2007-6209).
2008-07-13Fix an insecure temp file creation vulnerability in zsh's difflog.pltonnerre4-3/+27
(CVE-2007-6209).