Age | Commit message (Collapse) | Author |
|
this is easier to see and self documenting.
ok openbsd
|
|
this before previous release, and I plain forgot about it.
|
|
|
|
from Andras Farkas <deepbluemistake at gmail dot com>.
|
|
|
|
traditional mode. This aligns ksh's behavior with bash and FreeBSD sh.
The interpretation of the POSIX text is disputed, but it is unlikely
that a change from the traditional behavior was intended.
ok millert@
|
|
|
|
|
|
|
|
the rest of systrace to be deleted in a serious of followup commits.
ok from larger openbsd developer community
|
|
Use syswarn() in more places which set errno and regularize the error messages.
Skip empty lines in the input read for tar -T, cpio -E, and cpio stdin.
based on diff from mmcc@
ok millert@
|
|
No functional change.
ok millert@
|
|
posix uses the language "resolves to the root directory" in this case.
ok millert
|
|
correctly - logically complete that now by removing MLINKS from base;
authors need only to ensure there is an entry in NAME for any function/
util being added. MLINKS will still work, and remain for perl to ease
upgrades;
ok nicm (curses) bcook (ssl)
ok schwarze, who provided a lot of feedback and assistance
ok tb natano jung
|
|
ok schwarze@
|
|
from Edgar Pettijohn, ok and with input from tb@
|
|
from Edgar Pettijohn, with a correction from deraadt@
|
|
from Edgar Pettijohn, correction from deraadt@
|
|
This simple patch makes the 'command' builtin POSIX-compliant and
consistent with other current shells. It fixes two things:
a) 'command -v' does not find shell reserved words (a.k.a. keywords).
For instance, 'command -v select' outputs nothing but should output
'select'.
b) 'command -pv' always outputs the path of an external command, even
if 'command -p' would execute a builtin. For instance, 'command -p kill'
executes the 'kill' builtin, as expected, but 'command -pv kill' outputs
'/bin/kill'. The '-v' option is supposed to reflect what would actually
be executed, so 'command -pv kill' should output 'kill'. The -p option
sets the PATH to a default system value before doing the search, but
that has no bearing on the fact that builtins take precedence over
external commands.
The patch fixes both issues for 'command' without affecting the
behaviour of the ksh-specific builtin 'whence', which is handled by the
same C function.
Regression test added to obsd-regress.t.
Issues found and fixed by Martijn Dekker, ok millert@
|
|
ioctl(fd, FIONBIO, ...). OK krw@
|
|
idioms.
Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0)
where it is obvious further investigation will not yield and
even better way.
Obviousness evaluation and ok guenther@
|
|
Remove some now useless "#include <ioctl.h>" lines.
Inspired by & ok millert@
|
|
No functional change. "I like the idea" from guenther@
|
|
|
|
|
|
Previously behaviors were all over the map. This changes them to
use COLUMNS first, and either terminal width or a hardcoded value
(typically 80) as appropriate.
ok deraadt@; man bits ok jmc@
|
|
from Michal Mazurek, ok tb@
|
|
ok jmc@ schwarze@
|
|
is a tty or not. From Timo Buhrmester.
ok jca@
|
|
from Michal Mazurek, ok tb@
|
|
|
|
It should be possible to use set +o to save the current shell options,
then modify them at will and later restore them to the saved value.
Therefore the output must not only contain the options which are
currently set, but also the ones that are _not_ set, so a restore
disables them if they are enabled.
from Martijn Dekker (martijn (at) inlv (dot) org)
ok sthen@, tb@
|
|
All work done by Martijn Dekker
OK millert@
|
|
is "getconf PATH" not "getconf CS_PATH".
|
|
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
|
|
fixes posix compatibility issue
OK millert@, nicm@, otto@
|
|
from Michal Mazurek, ok tb@
|
|
from Michal Mazurek, ok tb@
|
|
|
|
avoid infinite loop when creating intermediate directories
Fix based on diff by Nicolas Bedos (nicolas.bedos (at) gmail.com)
ok millert@ ok and tweak zhuk@,
|
|
split it on a slash other than the leading one.
Fix based on patches from Peter Fokker (openbsd (at) berestijn.nl) and
Peter Bisroev (peter (at) int19h.net)
|
|
ok tb@, from Michal Mazurek
|
|
OK guenther@ nicm@
|
|
from Edgar Pettijohn <edgar at pettijohn-web.com>
fix another similar space in line 127. (pointed out by/OK jung@)
OK tb@ jung@
|
|
- while here switch main to return instead of exit(3)
OK tedu@
|
|
from ray@, ok jmc@
|
|
ok nicm@
|
|
When neither running on a terminal nor with -q, names must be passed
through as they are, nothing must be replaced with question marks.
Effectively, -q was always in effect. SMALL was not affected.
Triggered by a different patch from Martijn van Duren <openbsd plus tech
at list dot imperialat dot at>, who confirmed that this version is better.
Identified as a regression by tedu@.
OK sthen@.
|
|
instead of scattering their initialization through the body. This makes
the body simpler and avoids an uninitialized use false positive.
ok nicm@
|
|
OK tb@
|