Age | Commit message (Collapse) | Author |
|
function names to match. Pull some tangled assignments out of conditions
and use >>= where possible.
ok millert@
|
|
|
|
checked with http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1
|
|
make commands starting with the escape key (^[) work as documented.
Long-standing bug, this time reported by Dave minus Cohen dot com.
OK natano@ halex@
|
|
nit fix and OK schwarze@
|
|
ok deraadt millert
|
|
that i misunderstood something when i wrote it;
found by guenther and naddy
|
|
pledge(2). Then the values cannot be modified anymore. Let stty
error out if the display and modify mode are combined on the command
line to avoid a pledge violation later on.
OK deraadt@
|
|
with help from otto
|
|
directly documenting each option's effect.
|
|
Patch from Giles Lean (NetBSD PR bin/4841), tweaked by kleink at
NetBSD (rev. 1.17 1998-01-27), version for OpenBSD sent in by Sevan
Janiyan <venture37 at geeklan dot co dot uk>.
OK deraadt@
|
|
|
|
ok benno deraadt
|
|
diff from trondd at kagu-tsuchi com, enhanced by me for reordering promises
ok deraadt@
|
|
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@
|