Nologinmsg is a slightly more functional replacement for /sbin/nologin.
It adds per-user messages, and group messages (of a form).
From the FreeBSD ports collection.
PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from: FreeBSD ports collection
MFC after:
Changes since 20030621:
* A bug in which could cause memory corruption when a posix
function invoked another one has been fixed.
* A bug in which a file descriptor>2 could be closed before
executing a script has been fixed.
* A parsing error for <() and >() process subsitituions inside
command substitution has been fixed.
* A parsing error for patterns of the form {...}(...) when
used inside ${...} has been fixed.
* An error in which expanding an indexed array inside a compound
variable could cause a core dump has been fixed.
* A bug in which under on rare ocassions a job completion interrupt
could cause to core dump has been fixed.
* A bug in which process substitution embeded within command
substitution would generate a syntax error has been fixed.
This update does also fix the build problems on NetBSD-current reported
by Steven M. Bellovin in PR pkg/22422.
Use INSTALL_TARGET to install info files: this gives a proper
environment for USE_NEW_TEXINFO framework to work.
Fix makeinfo invocation for zsh-current via patch file so that
only _one_ info file is generated as PLIST seems to want it.
Changes since 20030422 (from the release notes):
A source and binary update. There are few small but significant patches
for ksh and nmake. nmake -l/+l library list generation is much improved.
IBM z-series { linux.s390, linux.s390-64 } and i-series { linux.ppc64 }
binary architectures have been added, and the ebcdic { mvs.390 } has
been updated after a long absence.
[bash205b-005]
When in a locale with multibyte characters, the readline display updater
will occasionally cause a segmentation fault when attempting to compute
the length of the first multibyte character on the line.
[bash205b-006]
When running in a locale with multibyte characters, the readline display
updater will use carriage returns when drawing the line, overwriting any
partial output already on the screen and not terminated by a newline.
[bash205b-007]
Using the vi editing mode's case-changing commands in a locale with
multibyte characters will cause garbage characters to be inserted into
the editing buffer.
Besides, export Bash's "test" target to Pkgsrc. Type "make test" to try
this.
XXX The MAINTAINER should be taken by someone really using this.
This is a development version of Zsh having more features than 4.0.x releases.
New features between zsh versions 4.0 and 4.1.1
-----------------------------------------------
Configuration:
- upgraded to use autoconf post-2.50
- improved compatibility with other shells through shell options,
builtin arguments and improved builtin option parsing
Syntax and builtins:
- new printf builtin
- `+=' to append to parameters which works for scalars, arrays and (with
pairs) associative arrays.
- enhanced multiple parameter `for' loops:
for key value in key1 value1 key2 value2 ...
maintaining full compatibility with POSIX syntax
Add-on modules and functions:
- zsh/net/tcp module provides builtin interface to TCP through ztcp
builtin. Function suite for interactive and script use with expect-style
pattern matching.
- zsh/net/socket module provides zsocket builtin.
- zcalc calculator function with full line editing.
- builtin interface to pcre library
- zsh/zselect module provides zselect builtin as interface to select
system call
Completion system:
- general improvements to command and context support, low-level functions,
display code.
- in verbose mode, matches with the same description are grouped
- highly configurable completions for values of specific parameters,
specific redirections for specific commands
- support for bash completion functions (typically zsh native functions are
more powerful where available)
- New completions provided for (some of these may be in later 4.0
releases): valgrind, tidy, texinfo, infocmp, Java classes, larch, limit,
locale parameters, netcat, mysqldiff, mt, lsof, elinks, ant, debchange
(dch), email addresses, file system types, Perforce, xsltproc.
Line editor:
- special parameters $PREDISPLAY, $POSTDISPLAY available in function
widgets to configure uneditable text (for narrowing)
- recursive editing
- supplied widgets read-from-minibuffer, replace-string use these features
(more intuitive prompting and argument reading than 4.0)
- access to killed text via $CUTBUFFER and $killring
- supplied highly configurable word widgets forward-word-match etc., can
set what constitutes a word interactively or in startup script
(implement bash-style behaviour, replacing previous bash-* word widgets)
- interface to incremental search via $LASTSEARCH
- better handling of keymaps in zle and widgets
- better support for output from user-defined widgets while zle is active
- tetris game which runs entirely in zle
Local internal improvements:
- disowned jobs are automatically restarted
- \u and \U print escapes for Unicode
- line numbers in error messages and $PS4 output are more consistent
- `=prog' expands only paths, no longer aliases for consistency
- job display in prompts; `jobs' command output can be piped
- prompts: new $RPROMPT2, %^, %j, %y, enhanced %{, %}, %_.
- rand48() function for better randomness in arithmetic
(if the corresponding math library function is present)
- $SECONDS parameter can be made floating point via `typeset -F SECONDS'
for better timing accuracy
- improvements to command line history mechanism
- many bugfixes
Bug fix release for stable version as well as a few completion
improvements. Also includes more current MASTER_SITES.
PR21938 by Geoff Wing <gcw at primenet dot com dot au>.
Tested on 1.6R (i386).
Changes:
03-03-18 --- Release ksh93o ---
03-03-18 A -N unary operator was added to test and [[...]] which returns
true if the file exists and the file has been modified since it
was last read.
03-03-18 The TIMEFORMAT variable was added to control the format for
the time compound command. The formatting description is
described in the man page.
03-03-06 A -N n option was added to read which causes exactly n bytes
to be read unlike -n n which causes at most n bytes to be read.
03-03-03 Three new shell variables were added. The variable .sh.file
stores the full pathname of the file that the current command
was found in. The variable .sh.fun names the current function
that is running. The variable .sh.subshell contains the depth
of the current subshell or command substitution.
03-03-03 When the DEBUG trap is executed, the current command line after
expansions is placed in the variable .sh.command. The trap
is also now triggered before each iteration of a for, select,
and case command and before each assignment and redirection.
03-02-28 Function definitions are no longer stored in the history file so
that set -o nolog no longer has any meaning.
03-02-28 All function definitions can be displayed with typeset -f not
just those stored in the history file. In addition, typeset +f
displays the function name followed by a comment containg the
line number and the path name for the file that defined this function.
03-02-28 A bug in which the value of $LINENO was not correct when executing
command contained inside mult-line command substitutions has been
fixed.
03-02-19 Since some existing ksh88 scripts use the undocumented and
unintended ability to insert a : in front of the % and # parameter
expansion operators, ksh93 was modified to accept :% as equivalent
to % and :# as equivalent to # with ${name op word}.
03-02-14 A bug which could cause a core dump when reading from standard
error when standard error was a pty has been fixed.
03-02-14 The shell arithmetic was modified to use long double on systems
that provide this data type.
03-02-09 A bug in which a function located in the first directory in FPATH
would not be found when the last component of PATH was . and the
current directory was one of the directories in PATH has been fixed.
03-02-07 The trap and kill builtin commands now accept a leading SIG prefix
on the signal names as documented.
03-02-05 A bug in the expansion of ${var/$pattern}, when pattern contained
\[ has been fixed.
03-02-05 A bug in which .sh.match[n], n>0, was not being set for substring
matches with % and %% has been fixed.
03-01-15 A bug in which getopts did not work for numerical arguments specified
as n#var in the getopts string has been fixed.
03-01-09 A bug in which using ${.sh.match} multiple times could lead to
a memory exception has been fixed.
03-01-06 A bug in the expansion of ${var/pattern/$string} in the case that
$string contains \digit has been fixed.
03-01-02 A -P option was added for systems such as Solaris 8 that support
profile shell.
03-01-02 For backward compatibility with ksh88, arithmetic expansion
with ((...)) and let has been modified so that if x is a zero-filled
variable, $x will not be treated as an octal constant.
${LOCALBASE} - makes this package install successfully on systems where the
package tools may reside under ${LOCALBASE}.
On Solaris, don't set "-static" into LDFLAGS, so that the package builds
properly.
as devel/perlsh.
The Perl Shell is a shell that combines the interactive nature of a Unix
shell with the power of Perl. The goal is to eventually have a fully
featured shell that behaves as expected for normal shell activity.
The Perl Shell will use Perl syntax and functionality for control-flow
statements and other things.
Makefiles simply need to use this value often, for better or for
worse.
(2) Create a new variable FIX_RPATH that lists variables that should
be cleansed of -R or -rpath values if ${_USE_RPATH} is "no". By
default, FIX_RPATH contains LIBS, X11_LDFLAGS, and LDFLAGS, and
additional variables may be appended from package Makefiles.
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES". This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile. Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
Changes from 20020922 (other than bug fixes) are:
* The code to display compound objects was rewritten to make it easier
for runtime extensions to reuse this code.
* A change was made to allow runtime builtins to be notified when a
signal is received so that cleanup can be performed.
* User applications can now trap the ALRM signal. Previously, the ALRM
signal was used internally and could not be used by applications.
as this isn't really the real Korn shell, and "pdksh" is a more accurate
name for it. Also don't use buildlink2 so that this shell may be used to
bootstrap buildlink2.
PD-ksh is a mostly complete AT&T ksh look-alike. Work is mostly
finished to make it fully compatible with both POSIX and AT&T ksh
(when the two don't conflict). Since pdksh is free and compiles
and runs on most common unix systems, it is very useful in creating
a consistent user interface across multiple machines.
Here are some of them, excerpted from NEWS:
- New code to handle multibyte characters.
- `select' was changed to be more ksh-compatible
- There is now a bindable edit-and-execute-command readline command,
like the vi-mode `v' command, bound to C-xC-e in emacs mode.
- The shell now performs arithmetic in the largest integer size the
machine supports (intmax_t), instead of long.
- There is a new configuration option `--enable-mem-scramble', controls
bash malloc behavior of writing garbage characters into memory at
allocation and free time.
- The `complete' and `compgen' builtins now have a new `-s/-A service'
option to complete on names from /etc/services.
- `read' has a new `-u fd' option to read from a specified file descriptor.
- The expansion of $LINENO inside a shell function is only relative to the
function start if the shell is interactive -- if the shell is running a
script, $LINENO expands to the line number in the script. This is as
POSIX-2001 requires.
- The bash debugger in examples/bashdb has been modified to work with the
new DEBUG trap semantics, the command set has been made more gdb-like,
and the changes to $LINENO make debugging functions work better. Code
from Gary Vaughan.
- New [n]<&word- and [n]>&word- redirections from ksh93 -- move fds (dup
and close).
- The `echo' builtin now accepts \0xxx (zero to three octal digits following
the `0') in addition to \xxx (one to three octal digits) for SUSv3/XPG6/
POSIX.1-2001 compliance.
- Added support for DESTDIR installation root prefix, so you can do a
`make install DESTDIR=bash-root' and do easier binary packaging.
- New `-A group/-g' option to complete and compgen; does group name
completion.
- The ksh-like `ERR' trap has been added. The `ERR' trap will be run
whenever the shell would have exited if the -e option were enabled.
It is not inherited by shell functions.
- configure has a new `--enable-largefile' option, like other GNU utilities.
- `for' loops now allow empty word lists after `in', like the latest POSIX
drafts require.
- The builtin `ulimit' now takes two new non-numeric arguments: `hard',
meaning the current hard limit, and `soft', meaning the current soft
limit, in addition to `unlimited'
Also, there is a "New unwind-protect implementation from Paul
Eggert", which I believe obviates the need for two sparc64-related
patches.
shells/mudsh.
Is there any reason why a shell (or command line) cannot be as
tolerant or as intelligent as a text adventure game like Zork, or a
MUD (Multi User Dungeon)? Is there any reason why a shell cannot work
like such a game? ("Go North", etc.)
Actually, the answer is no and this is a perl implementation to prove it.
Have fun, and don't get eaten by a Grue!
KSH-93 is the most recent version of the KornShell Language described
in "The KornShell Command and Programming Language," by Morris
Bolsky and David Korn of AT&T Bell Laboratories. The KornShell is
a shell programming language, which is upward compatible with "sh"
(the Bourne Shell), and is intended to conform to the IEEE P1003.2/ISO
9945.2 Shell and Utilities standard. KSH-93 provides an enhanced
programming environment in addition to the major command-entry
features of the BSD shell "csh". With KSH-93, medium-sized programming
tasks can be performed at shell-level without a significant loss
in performance. In addition, "sh" scripts can be run on KSH-93
without modification.
as shells/osh.
Osh is a re-implementation of the old and obsolete shell version,
which was in standard use up to UNIX 6th Edition and was supplied
as osh with UNIX 7th Edition. Its command language is a sparse
subset of those of modern shells and is mostly common both to sh(1)
and csh(1).
This pkgsrc entry is based on the FreeBSD ports entry for osh.
Bugfix release. Some added completion functions: e.g. rsync,
mozilla, some bash builtin functions.
From Geoff C. Wing, gcw at primenet dot com dot au in pkg/17946.
New Features:
* %j in prompt
* utf8 support
New Ports:
* darwin support
Locale Support:
* russian locale fixes
* polish locale fixes
Highlights from Bug Fixes:
* Dissallow setting of environment variables that do not contain
alphanumeric names
* Don't expand path components that don't resolve to path names
* Make $ignoreeof agree with the man page
* Don't close file descriptors too early because setuid scripts fail
Rather than require that _every_ new port update config.guess,
fall back to using `uname -p`-unknown-netbsd on >= 1.4,
so we only need to patch for each new machine_arch.
Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
removal of USE_GTEXINFO
INSTALL_INFO added to PLIST_SUBST
`${INSTALL_INFO}' replace `install-info' in target rules
print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
makeinfo command usage
See -newly added by this commit- section 10.24 of Packages.txt for
further information.
> Fix problem where
> % echo $20000000000
> Segmentation fault (core dumped)
I believe the problem is already known to the maintainer of tcsh
(=christos).
This is a minor bug-fix release, though some new functions have been added:
_bts Completion for Debian BTS
_chflags Completion for chflags(1)
_links Completion for links web browser
_samba
_sysctl
_user_admin
bash-backward-kill-word
pkgsrc. Instead, a new variable PKGREVISION is invented that can get
bumped independent of DISTNAME and PKGNAME.
Example #1:
DISTNAME= foo-X.Y
PKGREVISION= Z
=> PKGNAME= foo-X.YnbZ
Example #2:
DISTNAME= barthing-X.Y
PKGNAME= bar-X.Y
PKGREVISION= Z
=> PKGNAME= bar=X.YnbZ (!)
On subsequent changes, only PKGREVISION needs to be bumped, no more risk
of getting DISTNAME changed accidentally.
NOTE: Polish translation is excluded from the package due to broken files.
New Features:
* kill ring Per Hedeland
* bsd style colorls Anand
* big5 multi-byte support Yen-Ming Lee
* LARGEFILE support on Linux Kimmo Suominen
* jobcmd alias Greg Parker
New Ports:
* concurrent's powermaxos Matt Majka
* hpux11 Joshua Weage
Locale Support:
* estonian translation Toomas Soome
* russian translation Ilmar S. Habibulin
* polish translation Pawe³ New
Complete list of changes:
40. V6.11.00 - 20010902
39. Completion fixes (Tom Warzeka)
38. make c_insert not static so that it can be used from win32 (amol)
37. Fix rmstar not to corrupt memory when we say no. (Mark Peek)
36. V6.10.02 - 20010806
35. polish nls locale (Pawe³ New)
34. Fix a tcsetattr race running background jobs as the last line on an xterm
window (Andrew Brown)
33. jobcmd alias (Greg Parker)
32. hpux11 support (Joshua Weage)
31. Fix SHORT_STRINGS compilation (Daniel Trinkle)
30. Add kill -s (Mark Peek)
29. Don't recognize all mips as dec (Bjorn Knutsson)
28. Fix GLOB_QUOTE problem (noted by Per) I introduced in 6.10.01.
27. Port to concurrent's powermaxos (Matt Majka)
26. New builtin srcfile (Amol)
25. Fix bindkey "\\" cmd (reported by Ismail H. Tuncer)
24. %0Xc was broken in the prompt if the user's home directory was '/'.
(reported by Edward Glowacki)
23. V6.10.01 - 20010426
22. LARGEFILE support on Linux.
21. Add big5 multibyte support (Yen-Ming Lee)
20. Check the return value of setpriority (Dima Dorfman)
19. Avoid constructing paths with // on DomainOS (Nickolai Zeldovich)
18. Russian translation (Ilmar S. Habibulin)
17. Fix hostdefs for alpha support in FreeBSD (Andrey A. Chernov)
16. Add door support in colorls (Shaen)
15. Add BSD_STYLE_COLORLS for FreeBSD (Anand)
14. MAXHOSTNAMELEN needs to be 256 (Kris Kennaway)
13. Document stty -tabs problems on compaq (Nelson H. F. Beebe)
12. Fix broken comment, and new versions of config.guess and config.sub
(H.Merijn Brand)
11. fix redrawing in the recognize case (Andrew Brown)
10. don't call qsort with 0 items. (Luke Mewburn)
9. fix echo;echo;echo; not outputing anything (Andrey A. Chernov)
8. Fix shell word parsing in dabbrev-expand (Per Hedeland)
7. hpux fixes (Chienting Lin)
6. Implement kill ring (Per Hedeland)
5. Avoid core-dumping when a very long $HOME gets passed in (Kris Kennaway)
4. Add rlimit_vmem for linux based on rlimit_as (N KomaZaki)
3. back out symlink=expand path check.
2. Add Estonian translation (Toomas Soome)
1. Accept empty $savedirs to mean infinity.
standard tcsh package, and using a minimal pkgsrc equivalent of a
"reachover" structure.
This is a much better solution for binary packages - it removes
another mk.conf definition.