| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With the pipefail option set, the exit status of a pipeline is 0 if all
commands succeed, or the return status of the rightmost command that
fails. This can help stronger error checking, but is not a silver
bullet. For example, commands will exhibit a non-zero exit status if
they're killed by a SIGPIPE when writing to a pipe. Yet pipefail was
considered useful enough to be included in the next POSIX standard.
This implementation remembers the value of the pipefail option when
a pipeline is started, as described as option 1) in
https://www.austingroupbugs.net/view.php?id=789#c4102
Requested by ajacoutot@, ok millert@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
never do substitution (neither parameter, nor command, nor arithmetic,
nor tilde substitution) on the values of any variables encountered
inside the expression, but do recursively perform arithmetical
evaluation of subexpressions as required. This makes behaviour
more consistent, without hindering any behaviour promised in the
manual page.
A quirk originally reported by Andy Chu <andychup at gmail dot com>
was that in the past, when encountering an array index, the shell
would not only do evaluation, but also substitution on the array
index, even though substitution would not be done on the expression
in general.
tobias@ contributed to initial efforts of understanding the quirk.
patch tested in a bulk build by naddy@
"please commit" deraadt@
|
|
|
|
|
|
|
| |
interrupted.
Lots of back and forth with anton@
OK jca@, tb@, anton@
|
|
|
|
|
|
|
|
|
| |
a buildin command, that just calls into c_whence().
This makes type look like the buildin in other shells and makes
things like system("'type' 'git'"); work.
With lots of suggestions and feedback from anton@, kn@ and jca@.
ok kn@ jca@
|
|
|
|
|
|
|
| |
No binary change on amd64 and there should be no differences on any
other 64 bit architecture either (because long = int64_t).
ok cheloha, tb
|
|
|
|
|
| |
This helps tools like scan-build, and follows the example of warningf()
and errorf(). ok anton@
|
|
|
|
| |
ok anton@
|
| |
|
|
|
|
| |
that fixes the issues seen on hppa. OK deraadt@ otto@
|
|
|
|
|
| |
Prompted by a mail from Klemens Nanni, who also had the same diff.
ok deraadt@ millert@
|
|
|
|
|
|
|
| |
the warnings are due to the use of globals with generic names,
specifically "options" and "path". I've renamed "options" to
"sh_options" since it holds the shell options and "path" to
"search_path". OK jca@ tb@
|
|
|
|
| |
ok tb@ anton@
|
|
|
|
| |
okk deraadt@ millert@ anton@
|
|
|
|
|
|
|
|
| |
ignoredups: don't save the current line if it is identical to the last
history line.
ignorespace: don't save the current line if it starts with a space
ok anton@ millert@
|
|
|
|
|
| |
Unused since 2012, to be removed after 6.2. Input from anton@,
ok anton@ millert@
|
|
|
|
| |
and is not an easy fix for now.
|
|
|
|
|
|
| |
borrowed from ksh93.
Survived a ports build performed by naddy@ and encouraged by many.
|
|
|
|
|
| |
Sounds good to deraadt@
OK anton@
|
|
|
|
| |
magic number.
|
|
|
|
|
|
|
| |
accelerate install/upgrade time MAKEDEV runs. That allows ramdisk ksh
to be pledged, without needing "dpath". We'll solve the performance issues
a different way (soon).
ok otto espie natano tb tobiasu rpe
|
|
|
|
| |
ok millert nicm tb
|
|
|
|
| |
ok mmcc@ a while ago
|
|
|
|
| |
ok mmcc@
|
|
|
|
| |
ok nicm@. Also discussed with millert@ and guenther@.
|
|
|
|
|
|
| |
lineno is printed.
ok nicm@
|
|
|
|
|
|
| |
functions. With help from Theo Buehler.
ok nicm@
|
|
|
|
| |
change.
|
|
|
|
|
|
|
| |
sh.h because the pdksh devs used a prototype generator (last run in
1992). Merging it into sh.h makes things clearer.
ok nicm@
|
|
|
|
| |
ok nicm@
|
|
|
|
| |
ok nicm@
|
|
|
|
|
|
|
|
| |
"The ^ is used in regular expressions and many versions of fnmatch(3)
accept both ! and ^. However, we are never going to accept ^ instead of
! so I think this makes sense" -millert@
"go for it" -nicm@
|
|
|
|
| |
ok nicm@
|
|
|
|
| |
ok nicm@
|
|
|
|
| |
ok nicm@
|
|
|
|
|
|
| |
binary change.
ok nicm@
|
|
|
|
| |
ok nicm@
|
|
|
|
| |
ok nicm@
|
|
|
|
| |
ok nicm@
|
|
|
|
|
|
| |
files that need it. No binary change.
"This looks fine" -nicm@
|
| |
|
| |
|
|
|
|
| |
McConville. ok millert
|
|
|
|
| |
McConville. ok deraadt
|
|
|
|
|
| |
Adapted from a bitrig commit from Martin Natano.
OK zhuk@
|
|
|
|
| |
no binary changes.
|
|
|
|
| |
we'll notice and update
|
|
|
|
|
| |
Please keep in mind that ksh accesses are not O(1) in any sense.
Needed by todd, ok otto, guenther
|
| |
|
| |
|
| |
|