| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
| |
reused.
|
| |
|
|
|
|
|
|
|
|
| |
that valid input does not cause writing invalid intermediate states
to the terminal, and that invalid input is not delayed waiting for
more input, but written through right away.
Currently failing, but expected to be fixed shortly.
|
|
|
|
| |
Absent from my previous commit.
|
|
|
|
|
|
|
|
| |
Instead of calling x_vi() directly, run ksh in a pseudo tty.
This makes the process of adding tests for emacs mode simpler since the code can
be shared.
With feedback and help from millert@ and schwarze@
|
|
|
|
|
|
| |
Reported by Walter Alejandro Iglesias on tech@.
ok schwarze@ tb@
|
|
|
|
|
|
| |
While here, remove a condition that becomes redundant.
ok schwarze@ tb@
|
| |
|
|
|
|
| |
found by Christopher Wellons (see chmod.c r1.41).
|
|
|
|
|
|
|
|
|
|
|
| |
add tests for the regression introduced in chmod.c r1.33 that transferred
the permissions from the link to the target file in some circumstances.
There are no tests for chflags since I couldn't come up with testcases
without undesirable side-effects like breaking make clean.
Four of these tests fail and will be fixed in the upcoming r1.40 to chmod.
Prompted by a bug report from Christopher Wellons
|
| |
|
|
|
|
|
|
|
| |
Add seterror tests 8-10 for better "set -e" coverage.
Add seterror-11 test to exercise the bug with "set -e" and
short-ciruited "&&" chains.
From Kartik Agaram
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the "all" target will depend on the "regress" target, so running
"make all" will recurse into the subdirectories for "regress", and
then recurse a second time into the same subdirectories for "all",
running all the tests twice.
Fix this by moving the Makefile to run the main-level tests into
a subdirectory "main" and only including <bsd.subdir.mk> from the
top level Makefile.
Issue reported by otto@; patch OK'ed by otto@ and bluhm@.
|
|
|
|
|
| |
it has no controlliing tty is not causing the test to fail.
based on otto@'s work; OK otto@
|
|
|
|
|
|
| |
(like the parent does).
When make is called in the parent dir, both make regress and make all
are called for the vi subdir. Need to figure out how to avoid that.
|
|
|
|
| |
up and running.
|
|
|
|
| |
from Sevan Janiyan <venture37 at geeklan dot co dot uk>.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
| |
All work done by Martijn Dekker
OK millert@
|
|
|
|
|
|
| |
fixes posix compatibility issue
OK millert@, nicm@, otto@
|
|
|
|
| |
suggestion from beck@, OK millert@, otto@
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
the emacs editing mode code, so add a testsuite before touching it.
To avoid having to deal with the horrendous low-level terminal
handling and high-level command execution code, write the tests in
unit test style rather than in integration test style, by providing
minimal glue to run vi.c stand-alone. In case relevant internal
interfaces in sh.c, edit.c, and friends are changed, the glue may
need adjustment.
Not testing completion and history at this time, only line editing.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
necessary
ok deraadt@ jsing@
|
|
|
|
| |
PS1 and PS2. OK deraadt@
|
| |
|
| |
|
|
|
|
|
| |
which are the same binary). This is supposed to exercise all syscalls
paths through those tools and not a comprehensive regression test.
|
|
|
|
|
|
|
|
| |
Relevant lines from testsuite.sha224 were verified against the test vectors in
RFC 3874, while testsuite.384 was verified against
https://www.cosic.esat.kuleuven.be/nessie/testvectors/hash/sha/Sha-2-384.unverified.test-vectors
ok millert@
|
|
|
|
| |
idea from and ok ingo@
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
exit status matters for "set -e". OK espie@
|
| |
|