Hello,

these three patches have been accepted into RHEL-5.2 and I think they may be
worth including in bash upstream.

More info at <https://bugzilla.redhat.com/show_bug.cgi?id=253673>,
<https://bugzilla.redhat.com/show_bug.cgi?id=249566> and
<https://bugzilla.redhat.com/show_bug.cgi?id=245641>.

Regards,
-- 
TJ. (Brno, CZ), BaseOS, Red Hat
--- bash-3.1/doc/bash.1.253673  2007-08-14 19:03:29.000000000 +0900
+++ bash-3.1/doc/bash.1 2007-08-14 19:03:45.000000000 +0900
@@ -5978,6 +5978,11 @@
 is supplied, the name and value of the alias is printed.
 \fBAlias\fP returns true unless a \fIname\fP is given for which
 no alias has been defined.
+.sp 1
+Note aliases are not expanded by default in non-interactive shell, and it can 
be enabled by setting the
+.B expand_aliases
+shell option using
+.BR shopt .
 .TP
 \fBbg\fP [\fIjobspec\fP ...]
 Resume each suspended job \fIjobspec\fP in the background, as if it
--- bash-3.2/builtins/ulimit.def.ulimit-m       2006-03-23 20:51:51.000000000 
+0000
+++ bash-3.2/builtins/ulimit.def        2007-07-04 16:42:12.000000000 +0100
@@ -38,7 +38,7 @@
     -f the maximum size of files written by the shell and its children
     -i the maximum number of pending signals
     -l the maximum size a process may lock into memory
-    -m the maximum resident set size
+    -m the maximum resident set size (has no effect on Linux)
     -n the maximum number of open file descriptors
     -p the pipe buffer size
     -q the maximum number of bytes in POSIX message queues
--- bash-3.2/doc/bash.1.ulimit-m        2007-07-04 16:41:59.000000000 +0100
+++ bash-3.2/doc/bash.1 2007-07-04 16:42:12.000000000 +0100
@@ -8545,7 +8545,7 @@
 The maximum size that may be locked into memory
 .TP
 .B \-m
-The maximum resident set size
+The maximum resident set size (has no effect on Linux)
 .TP
 .B \-n
 The maximum number of open file descriptors (most systems do not
--- bash-3.2/doc/bash.1.245641  2008-01-15 16:17:17.000000000 +0100
+++ bash-3.2/doc/bash.1 2008-01-17 13:07:36.000000000 +0100
@@ -5916,6 +5916,13 @@
 to signify the end of the options.
 For example, the \fB:\fP, \fBtrue\fP, \fBfalse\fP, and \fBtest\fP builtins
 do not accept options.
+Also, please note that while executing in non-interactive mode and while in
+.I posix
+mode, any special builtin (like \fB.\fP, \fB:\fP, \fBbreak\fP,
+\fBcontinue\fP, \fBeval\fP, \fBexec\fP, \fBexit\fP, \fBexport\fP,
+\fBreadonly\fP, \fBreturn\fP, \fBset\fP, \fBshift\fP, \fBsource\fP,
+\fBtimes\fP, \fBtrap\fP, \fBunset\fP) exiting with a non-zero status
+causes the shell to stop execution.
 .sp .5
 .PD 0
 .TP

Reply via email to