Author: jilles
Date: Tue Sep 1 13:19:15 2020
New Revision: 365037
URL: https://svnweb.freebsd.org/changeset/base/365037
Log:
sh: Write absolute path in command -vV and type
POSIX is pretty clear that command -v, command -V and type shall write
absolute pathnames. Therefore, we need to pr
Author: jilles
Date: Fri Aug 28 15:35:45 2020
New Revision: 364919
URL: https://svnweb.freebsd.org/changeset/base/364919
Log:
sh: Keep ignored SIGINT/SIGQUIT after set in a background job
If job control is not enabled, a background job (... &) ignores SIGINT and
SIGQUIT, but this can be r
Author: jilles
Date: Thu Jul 9 20:53:56 2020
New Revision: 363057
URL: https://svnweb.freebsd.org/changeset/base/363057
Log:
sh: Do not ignore INTOFF during a trap
INTOFF postpones SIGINT processing and INTON enables it again. This is
important so an interactive shell can return to the t
Author: jilles
Date: Sun Jun 28 21:33:08 2020
New Revision: 362738
URL: https://svnweb.freebsd.org/changeset/base/362738
Log:
sh/tests: Re-enable bin.sh.execution.functional_test.bg12.0
This reverts r362646.
PR: 247559
MFC after:1 week
Modified:
head/bin/sh/tests/fun
Author: jilles
Date: Sun Jun 28 21:15:29 2020
New Revision: 362737
URL: https://svnweb.freebsd.org/changeset/base/362737
Log:
sh/tests: Fix flaky execution/bg12.0
When job control is not enabled, the shell ignores SIGINT while waiting for
a foreground process unless that process exits on
Author: jilles
Date: Sun Jun 14 19:41:24 2020
New Revision: 362182
URL: https://svnweb.freebsd.org/changeset/base/362182
Log:
sh/tests: Add tests for SIGINT in non-jobc background commands
If job control is not enabled, background commands shall ignore SIGINT and
SIGQUIT, and it shall be
Author: jilles
Date: Sat May 30 16:00:49 2020
New Revision: 361647
URL: https://svnweb.freebsd.org/changeset/base/361647
Log:
sh: Allow more scripts without #!
Austin Group bugs #1226 and #1250 changed the requirements for shell scripts
without #! (POSIX does not specify #!; this is about
Author: jilles
Date: Fri May 22 14:46:23 2020
New Revision: 361384
URL: https://svnweb.freebsd.org/changeset/base/361384
Log:
sh: Remove a comment that was obsoleted by r358152
Since r358152, the read builtin has used a buffer.
Also, remove a space at the end of the line in a comment.
Author: jilles
Date: Sat May 16 19:38:58 2020
New Revision: 361117
URL: https://svnweb.freebsd.org/changeset/base/361117
Log:
sh/tests: Fix keywords on newly added test
Modified:
Directory Properties:
head/bin/sh/tests/execution/unknown2.0 (props changed)
___
Author: jilles
Date: Sat May 16 16:29:23 2020
New Revision: 361112
URL: https://svnweb.freebsd.org/changeset/base/361112
Log:
sh: Fix double INTON with vfork
The shell maintains a count of the number of times SIGINT processing has
been disabled via INTOFF, so SIGINT processing resumes whe
Author: jilles
Date: Tue May 12 21:59:21 2020
New Revision: 360992
URL: https://svnweb.freebsd.org/changeset/base/360992
Log:
sh/tests: Test some obscure cases with aliasing keywords
Added:
head/bin/sh/tests/parser/alias19.0 (contents, props changed)
head/bin/sh/tests/parser/alias19.0.std
Author: jilles
Date: Tue Apr 28 20:34:27 2020
New Revision: 360452
URL: https://svnweb.freebsd.org/changeset/base/360452
Log:
sh: Assert INTOFF rather than applying it in ck*
As I noted in https://reviews.freebsd.org/D22756, INTOFF should be in effect
when calling ckmalloc/ckrealloc/ckfre
Author: jilles
Date: Wed Apr 22 21:45:43 2020
New Revision: 360210
URL: https://svnweb.freebsd.org/changeset/base/360210
Log:
sh: Remove remnants to compile out fc completely
r360139 made compiling with NO_HISTORY work. This #define does not remove
the fc and bind builtins completely but
)
@@ -53,8 +53,7 @@ static void
usage(void)
{
- fprintf(stderr, "usage: pwait [-t timeout] [-v] pid ...\n");
- exit(EX_USAGE);
+ errx(EX_USAGE, "usage: pwait [-t timeout] [-v] pid ...");
This adds a "pwait: " before the line, which most other
Author: jilles
Date: Wed Jan 1 12:06:37 2020
New Revision: 356251
URL: https://svnweb.freebsd.org/changeset/base/356251
Log:
sh: Fix rare memory leak with SIGINT
If getcwd() failed earlier on but later succeeded in the pwd builtin,
there was no INTOFF protection between calling savestr()
Author: jilles
Date: Mon Dec 30 21:32:55 2019
New Revision: 356208
URL: https://svnweb.freebsd.org/changeset/base/356208
Log:
sh: Test that executing various binary files is rejected
If executing a file fails with an [ENOEXEC] error, the shell executes the
file as a shell script, except t
nk is the better solution.
> >>> Hang on,
> >>> [crees@pegasus]~% sudo kldload -n zfsctrl && echo yes
> >>> yes
> >>I think your testing the return value of sudo here?
> >Sudo returns the child's return value.
> Turns out Oliver had also reported this to current@ with a log
> https://lists.freebsd.org/pipermail/freebsd-current/2019-April/073148.html
> Jilles@, mind if I revert this while I get some testing on this
> scenario done?
> It seems to me that zfs may not be included in the kernel, just
> zfsctrl, or something like that.
It seems like kldload -n does not work as expected for zfs, so reverting
seems the right approach.
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
Author: jilles
Date: Sun Sep 29 15:17:58 2019
New Revision: 352869
URL: https://svnweb.freebsd.org/changeset/base/352869
Log:
Adjust tests after page fault changes in r352807
Commit r352807 fixed various signal numbers and codes from page faults;
adjust the tests so they expect the fixes
:32 2019
(r352495)
@@ -0,0 +1,184 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2019 Jilles Tjoelker
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1
Author: jilles
Date: Wed Sep 4 16:25:41 2019
New Revision: 351819
URL: https://svnweb.freebsd.org/changeset/base/351819
Log:
procstat/tests: Fix flakiness by waiting for program to start
Some of the procstat tests start a program "while1" and examine the process
using procstat, but did n
es not allow it at all.
Apart from the fact that the resulting bytes depend on the filesystem
type, this operation is problematic because it may expose filenames that
were previously deleted.
The files /etc/group and /etc/passwd exist on most operating systems,
but for optimal portability a temporar
l_zombie.c
==
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tests/sys/kern/kill_zombie.c Tue Aug 6 21:17:22 2019
(r350658)
@@ -0,0 +1,65 @@
+/*-
+ * Copyright (c) 2018 Jilles Tjoelker
+ * All right
Author: jilles
Date: Mon Jul 29 20:43:07 2019
New Revision: 350425
URL: https://svnweb.freebsd.org/changeset/base/350425
Log:
printf(1): Note that \c only works in %b strings
PR: 238313
Reported by: Andras Farkas
MFC after:1 week
Modified:
head/usr.bin/printf/printf.1
he script
> never creates or changes that directory if it already exists.
I like it. However, the /var/account directory is normally created by
mtree: etc/mtree/BSD.var.dist. Perhaps the permissions should be
adjusted there as well.
--
Jilles Tjoelker
_
ivileged_proc_debug=0. This security sysctl is
currently also lowering security.
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
nk is the better solution.
> >>> Hang on,
> >>> [crees@pegasus]~% sudo kldload -n zfsctrl && echo yes
> >>> yes
> >>I think your testing the return value of sudo here?
> >Sudo returns the child's return value.
> Turns out Oliver had also reported this to current@ with a log
> https://lists.freebsd.org/pipermail/freebsd-current/2019-April/073148.html
> Jilles@, mind if I revert this while I get some testing on this
> scenario done?
> It seems to me that zfs may not be included in the kernel, just
> zfsctrl, or something like that.
It seems like kldload -n does not work as expected for zfs, so reverting
seems the right approach.
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
Author: jilles
Date: Thu Mar 7 22:51:58 2019
New Revision: 344902
URL: https://svnweb.freebsd.org/changeset/base/344902
Log:
sh/tests: Improve failure messages of expansion/arith15.0
Modified:
head/bin/sh/tests/expansion/arith15.0
Modified: head/bin/sh/tests/expansion/arith15.0
e summary after an empty line, but
I don't think it is necessary for this commit as the information that
would be written there is obvious from the diff.
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
Author: jilles
Date: Sun Feb 24 21:05:13 2019
New Revision: 344502
URL: https://svnweb.freebsd.org/changeset/base/344502
Log:
sh: Add set -o pipefail
The pipefail option allows checking the exit status of all commands in a
pipeline more easily, at a limited cost of complexity in sh itself
Author: jilles
Date: Tue Feb 19 21:27:30 2019
New Revision: 344306
URL: https://svnweb.freebsd.org/changeset/base/344306
Log:
sh: Send normal output from bind builtin to stdout
PR: 233343
Submitted by: Yuichiro NAITO (original version)
Modified:
head/bin/sh/histedit.c
head/
Author: jilles
Date: Sun Feb 10 22:23:05 2019
New Revision: 343981
URL: https://svnweb.freebsd.org/changeset/base/343981
Log:
sh: Restore $((x)) error checking after fix for $((-9223372036854775808))
SVN r342880 was designed to fix $((-9223372036854775808)) and things like
$((0x80
Author: jilles
Date: Fri Feb 8 23:03:28 2019
New Revision: 343922
URL: https://svnweb.freebsd.org/changeset/base/343922
Log:
dhclient: Return non-zero status when script exits due to a signal
r343896 made it such that a non-zero exit status was passed through, but was
still wrong if the
his case and in practice 0 is a common value. Perhaps
you want
return WIFEXITED(wstatus) ? WEXITSTATUS(wstatus) : 128 + WTERMSIG(wstatus);
imitating what the shell does to translate a wait status into 8 bits?
--
Jilles Tjoelker
___
svn-src-head@freebsd.org maili
Author: jilles
Date: Sun Jan 20 14:25:25 2019
New Revision: 343215
URL: https://svnweb.freebsd.org/changeset/base/343215
Log:
sh: Send libedit "ferr" output to fd 2
The libedit "fout" output must be sent to fd 2 since it contains prompts
that POSIX says must be sent to fd 2. However, the
Author: jilles
Date: Wed Jan 16 21:59:18 2019
New Revision: 343105
URL: https://svnweb.freebsd.org/changeset/base/343105
Log:
libedit: Avoid out of bounds read in 'bind' command
This is CVS revision 1.31 from NetBSD lib/libedit/chartype.c:
Make sure that argv is NULL terminated since func
Author: jilles
Date: Sun Jan 6 21:43:14 2019
New Revision: 342817
URL: https://svnweb.freebsd.org/changeset/base/342817
Log:
getconf(1): Minor mdoc fix
MFC after:1 week
Modified:
head/usr.bin/getconf/getconf.1
Modified: head/usr.bin/getconf/getconf.1
===
Author: jilles
Date: Sun Jan 6 21:34:05 2019
New Revision: 342816
URL: https://svnweb.freebsd.org/changeset/base/342816
Log:
thr_wake(2): Minor mdoc fixes
MFC after:1 week
Modified:
head/lib/libc/sys/thr_wake.2
Modified: head/lib/libc/sys/thr_wake.2
Author: jilles
Date: Thu Jan 3 20:22:35 2019
New Revision: 342740
URL: https://svnweb.freebsd.org/changeset/base/342740
Log:
sh: Do not place exported but unset variables into the environment
PR: 233545
Submitted by: Jan Beich
Obtained from:NetBSD
Modified:
head/bi
Author: jilles
Date: Thu Jan 3 20:23:12 2019
New Revision: 342741
URL: https://svnweb.freebsd.org/changeset/base/342741
Log:
sh: Add test for exported but unset variables
PR: 233545
Added:
head/bin/sh/tests/execution/env1.0 (contents, props changed)
Modified:
head/bin/sh/t
Author: jilles
Date: Fri Dec 28 13:32:14 2018
New Revision: 342572
URL: https://svnweb.freebsd.org/changeset/base/342572
Log:
pfind, pfind_any: Correct zombie logic
SVN r340744 erroneously changed pfind() to return any process including
zombies and pfind_any() to return only non-zombie pr
Author: jilles
Date: Sat Dec 8 12:49:19 2018
New Revision: 341725
URL: https://svnweb.freebsd.org/changeset/base/341725
Log:
sh(1): Remove -c string from set builtin documentation
Altering the -c string at run time does not make sense and is not possible.
MFC after:1 week
Modifie
Author: jilles
Date: Wed Nov 28 20:03:53 2018
New Revision: 341164
URL: https://svnweb.freebsd.org/changeset/base/341164
Log:
sh: Fix ${param?} default error message
If word in ${param?word} is missing, the shell shall write a default error
message. So expanding ${param?} when param is no
Author: jilles
Date: Tue Nov 27 21:49:59 2018
New Revision: 341097
URL: https://svnweb.freebsd.org/changeset/base/341097
Log:
sh: Use 126 and 127 exit status for failures opening a script
This affects scripts named on the command line, named with a '.' special
builtin and found via the PA
Author: jilles
Date: Fri Nov 9 14:58:24 2018
New Revision: 340284
URL: https://svnweb.freebsd.org/changeset/base/340284
Log:
sh: Unify EXERROR and EXEXEC
The difference between EXERROR and EXEXEC was that EXEXEC passed along
exitstatus and EXERROR set exitstatus to 2 in the handling code
Author: jilles
Date: Sat Oct 27 20:17:57 2018
New Revision: 339822
URL: https://svnweb.freebsd.org/changeset/base/339822
Log:
sh: Use exitstatus instead of exerrno to pass EXEXEC status
No functional change is intended.
Modified:
head/bin/sh/eval.c
head/bin/sh/exec.c
head/bin/sh/exec
Author: jilles
Date: Wed Sep 5 19:16:09 2018
New Revision: 338473
URL: https://svnweb.freebsd.org/changeset/base/338473
Log:
sh: Fix formal overflow in pointer arithmetic
The intention is to lower the value of the pointer, which according to ubsan
cannot be done by adding an unsigned qua
Author: jilles
Date: Mon Aug 13 21:54:27 2018
New Revision: 337728
URL: https://svnweb.freebsd.org/changeset/base/337728
Log:
printf: Add test for width and precision in %b format
PR: 229641
Submitted by: pfg
Added:
head/usr.bin/printf/tests/regress.bwidth.out (contents, pr
Author: jilles
Date: Sat Aug 11 11:13:34 2018
New Revision: 337618
URL: https://svnweb.freebsd.org/changeset/base/337618
Log:
printf: Fix \c in %b in printf builtin exiting the shell after r337458
SVN r337458 erroneously partially reverted r265885.
This is immediately visible when runn
Author: jilles
Date: Sun Jul 15 21:55:17 2018
New Revision: 336320
URL: https://svnweb.freebsd.org/changeset/base/336320
Log:
sh: Don't treat % specially in CDPATH
Added:
head/bin/sh/tests/builtins/cd11.0 (contents, props changed)
Modified:
head/bin/sh/cd.c
head/bin/sh/exec.c
head/bin
Author: jilles
Date: Sun Jul 15 09:14:30 2018
New Revision: 336303
URL: https://svnweb.freebsd.org/changeset/base/336303
Log:
sh: Don't use padvance() for MAIL/MAILPATH
Using padvance() requires undoing its append of '/' and prevents adjusting
its '%' logic to allow most directories with
re is little
flexibility to handle this usefully and securely, since so little is
known about the encoding. The best handling may depend on the context.
Therefore, in /bin/sh, I have only implemented multibyte support for
UTF-8. All other encodings have bytes treated as characters.
However, I do agree that getenv("LANG") is bad. Instead, setlocale()
should be used. After that, nl_langinfo(CODESET) can be called and the
result compared to "UTF-8".
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
Author: jilles
Date: Tue Jul 3 19:09:46 2018
New Revision: 335905
URL: https://svnweb.freebsd.org/changeset/base/335905
Log:
rup: Fix -Wcast-align warnings
Fix possible strict aliasing issue (if time_t is the same size as int but
not int but for example long) which also resulted in a fal
a cast from long to int as truncating bits. I don't think we
should take advantage of this, though, since making atoi() faster than
strtol() may encourage people to use atoi().
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
https:/
On Tue, May 22, 2018 at 10:17:41AM +0200, O. Hartmann wrote:
> On Mon, 21 May 2018 21:45:53 -0700
> Cy Schubert wrote:
> > In message <20180522061339.21497...@freyja.zeit4.iv.bundesimmobilien.de>
> > , "O. H
> > artmann" writes:
> > > On Mon, 21 Ma
Author: jilles
Date: Mon May 21 21:52:48 2018
New Revision: 334008
URL: https://svnweb.freebsd.org/changeset/base/334008
Log:
sh: Split CNL syntax category to avoid a check on state[level].syntax
No functional change is intended.
Modified:
head/bin/sh/mksyntax.c
head/bin/sh/parser.c
M
Author: jilles
Date: Sun May 20 17:25:52 2018
New Revision: 333927
URL: https://svnweb.freebsd.org/changeset/base/333927
Log:
sh: Allow unquoted newlines in word in ${param+word} etc.
POSIX requires accepting unquoted newlines in word in parameter expansions
like ${param+word}, ${param#wo
Author: jilles
Date: Fri May 11 21:56:01 2018
New Revision: 333507
URL: https://svnweb.freebsd.org/changeset/base/333507
Log:
sh: Test that backslash-newline within single-quotes is not special
This works correctly, but the test may be helpful when modifying the parser.
Added:
head/bin/s
Author: jilles
Date: Sun Apr 29 17:46:08 2018
New Revision: 333092
URL: https://svnweb.freebsd.org/changeset/base/333092
Log:
sh: Don't have [ match any [[:class:]]
Submitted by: Robert Elz
MFC after:3 days
Added:
head/bin/sh/tests/builtins/case23.0 (contents, props changed)
Modi
Author: jilles
Date: Tue Apr 3 21:44:43 2018
New Revision: 331955
URL: https://svnweb.freebsd.org/changeset/base/331955
Log:
rc.subr.8: Improve documentation of ${name}_limits and ${name}_login_class
Submitted by: 0mp
Differential Revision:https://reviews.freebsd.org/D14928
Modi
Author: jilles
Date: Fri Feb 2 22:53:58 2018
New Revision: 328818
URL: https://svnweb.freebsd.org/changeset/base/328818
Log:
sh: Refactor job status printing, preparing for -o pipefail and similar
No functional change is intended.
Modified:
head/bin/sh/jobs.c
Modified: head/bin/sh/jobs
as any other option.
This would also use one getopts loop and reconstruct a command line for
the jailed service(8) based on the variables like ENABLED (the values
for set options can be changed to simplify this since the rest of the
script only cares about non-empty or not).
--
Jilles Tjoelke
Author: jilles
Date: Thu Jan 4 22:59:24 2018
New Revision: 327565
URL: https://svnweb.freebsd.org/changeset/base/327565
Log:
find: Speed up tests by using touch -d instead of sleep for timestamps
I have verified that the tests still detect the absence of the r327362 fix.
Modified:
head/
On Thu, Dec 28, 2017 at 05:25:25PM +0100, Jilles Tjoelker wrote:
> On Thu, Dec 28, 2017 at 12:40:31PM +, Antoine Brodin wrote:
> > On Sat, Nov 11, 2017 at 10:39 PM, Mateusz Guzik wrote:
> > > Author: mjg
> > > Date: Sat Nov 11 22:39:33 2017
> > > N
Author: jilles
Date: Mon Jan 1 22:31:52 2018
New Revision: 327475
URL: https://svnweb.freebsd.org/changeset/base/327475
Log:
sh: Move various structs from jobs.h to jobs.c
These implementation details of jobs.c need not be exposed.
Modified:
head/bin/sh/jobs.c
head/bin/sh/jobs.h
Modi
Author: jilles
Date: Sun Dec 31 19:24:13 2017
New Revision: 327440
URL: https://svnweb.freebsd.org/changeset/base/327440
Log:
find: Link tests to the build
Modified:
head/etc/mtree/BSD.tests.dist
head/usr.bin/find/Makefile
Modified: head/etc/mtree/BSD.tests.dist
===
rn the expected string. On stable/10 and stable/11, the second line
is a truncated version of the command line like
ps -p 86963 -o args=00
A prerequisite for this reproducer is that kern.ps_arg_cache_limit is
not set so high that it is impract
Author: jilles
Date: Tue Dec 26 16:23:18 2017
New Revision: 327212
URL: https://svnweb.freebsd.org/changeset/base/327212
Log:
sh: Don't leak wait* implementation details from jobs.c
Modified:
head/bin/sh/eval.c
head/bin/sh/jobs.c
Modified: head/bin/sh/eval.c
===
Author: jilles
Date: Tue Dec 26 16:20:38 2017
New Revision: 327211
URL: https://svnweb.freebsd.org/changeset/base/327211
Log:
nandtool: Add missing mode for open() with O_CREAT
If O_CREAT is given, open() needs a mode argument. Follow the umask by
passing 0666.
Reviewed by: imp
MF
Author: jilles
Date: Sat Dec 23 22:58:19 2017
New Revision: 327121
URL: https://svnweb.freebsd.org/changeset/base/327121
Log:
sh(1): Markup and spelling fixes
Modified:
head/bin/sh/sh.1
Modified: head/bin/sh/sh.1
==
Author: jilles
Date: Tue Dec 5 23:06:15 2017
New Revision: 326603
URL: https://svnweb.freebsd.org/changeset/base/326603
Log:
mdoc(7): Update .Dd for previous commit
Modified:
head/contrib/mdocml/mdoc.7
Modified: head/contrib/mdocml/mdoc.7
Author: jilles
Date: Tue Dec 5 23:00:41 2017
New Revision: 326601
URL: https://svnweb.freebsd.org/changeset/base/326601
Log:
mdocml: Add IEEE Std 1003.1-2008, 2016 edition
Also document IEEE Std 1003.1-2008, 2013 edition in mdoc(7) (as well as the
2016 edition).
Submitted by: Yuri P
Author: jilles
Date: Thu Oct 26 18:32:04 2017
New Revision: 325017
URL: https://svnweb.freebsd.org/changeset/base/325017
Log:
libnv: Fix strict-aliasing violation with cookie
In rS323851, some casts were adjusted in calls to nvlist_next() and
nvlist_get_pararr() in order to make scan-buil
Author: jilles
Date: Sun Oct 22 20:01:07 2017
New Revision: 324866
URL: https://svnweb.freebsd.org/changeset/base/324866
Log:
libc: Do not refer to _DefaultRuneLocale in ctype inlines
Referring to _DefaultRuneLocale causes this >4KB structure to be copied to
all executables that use inli
Author: jilles
Date: Sun Oct 15 11:28:41 2017
New Revision: 324625
URL: https://svnweb.freebsd.org/changeset/base/324625
Log:
rc.subr: Remove test that is always true.
The code above always sets _pidcmd to a non-empty value.
Modified:
head/etc/rc.subr
Modified: head/etc/rc.subr
for these changes was performance.
Unfortunately, I do not have concrete benchmarks in the CloudABI
context.
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
Author: jilles
Date: Sun Aug 13 14:36:10 2017
New Revision: 322455
URL: https://svnweb.freebsd.org/changeset/base/322455
Log:
sh: Add test for sh -c with missing command string.
This already works correctly.
Added:
head/bin/sh/tests/invocation/sh-c-missing1.0 (contents, props changed)
Author: jilles
Date: Sat Aug 12 19:17:48 2017
New Revision: 322438
URL: https://svnweb.freebsd.org/changeset/base/322438
Log:
sh: Add tests for sh -c that already pass.
PR: 220587
Submitted by: Ryan Moeller
Added:
head/bin/sh/tests/invocation/
head/bin/sh/tests/invocation/M
Author: jilles
Date: Tue Jul 18 19:00:15 2017
New Revision: 321171
URL: https://svnweb.freebsd.org/changeset/base/321171
Log:
sh: Remove broken #ifdef NOHACK code (related to sh -c).
Apart from the fact that subtle syntactic changes make a poor compile-time
option, the NOHACK case has bee
Author: jilles
Date: Sun Jun 25 21:53:08 2017
New Revision: 320340
URL: https://svnweb.freebsd.org/changeset/base/320340
Log:
sh: Ignore error when cd writes the directory actually switched to.
If CDPATH is used non-trivially or the operand is "-", cd writes the
directory actually switche
Author: jilles
Date: Sun Jun 11 19:06:07 2017
New Revision: 319828
URL: https://svnweb.freebsd.org/changeset/base/319828
Log:
rc.subr: Optimize repeated sourcing.
When /etc/rc runs all /etc/rc.d scripts, it has already loaded /etc/rc.subr
but each /etc/rc.d script sources it again (since
Author: jilles
Date: Sun Jun 11 16:54:04 2017
New Revision: 319826
URL: https://svnweb.freebsd.org/changeset/base/319826
Log:
sh: Enable interrupts before executing EXIT trap and doing final flush.
Modified:
head/bin/sh/trap.c
Modified: head/bin/sh/trap.c
Author: jilles
Date: Wed Jun 7 21:21:14 2017
New Revision: 319663
URL: https://svnweb.freebsd.org/changeset/base/319663
Log:
libc: Remove futimens() and utimensat() compat stubs.
The futimens() and utimensat() compat stubs allowed using these functions on
kernels that did not have the sy
Author: jilles
Date: Tue Jun 6 21:08:05 2017
New Revision: 319635
URL: https://svnweb.freebsd.org/changeset/base/319635
Log:
sh: Call fc -e editor with interrupts enabled.
Starting the fc -e editor can execute arbitrary script, and executing
arbitrary script with INTOFF in effect may cau
Author: jilles
Date: Sun Jun 4 21:58:02 2017
New Revision: 319591
URL: https://svnweb.freebsd.org/changeset/base/319591
Log:
sh: Make sure to process SIGINT if SETINTON re-enables processing.
If INTON re-enables interrupts, it processes any interrupt that occurred
while interrupts were d
Author: jilles
Date: Sun Jun 4 21:39:37 2017
New Revision: 319590
URL: https://svnweb.freebsd.org/changeset/base/319590
Log:
tests/sys/aio: Add missing mode to open() calls with O_CREAT.
Modified:
head/tests/sys/aio/aio_test.c
Modified: head/tests/sys/aio/aio_test.c
Author: jilles
Date: Sun Jun 4 20:52:55 2017
New Revision: 319575
URL: https://svnweb.freebsd.org/changeset/base/319575
Log:
sh: Fix INTOFF leak when a redirection on a compound command fails.
Reported by: bdrewery
Added:
head/bin/sh/tests/errors/redirection-error8.0 (contents, props
Author: jilles
Date: Sun May 21 14:35:16 2017
New Revision: 318592
URL: https://svnweb.freebsd.org/changeset/base/318592
Log:
compress: Allow uncompress -c with multiple pathnames, as required by POSIX.
Per POSIX, allow passing multiple pathnames to uncompress -c, concatenating
the uncomp
ress/tests/compress_test.shSun May 21 14:05:32
2017(r318591)
@@ -0,0 +1,174 @@
+# Copyright (c) 2017 Jilles Tjoelker
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are
Author: jilles
Date: Thu May 18 22:10:04 2017
New Revision: 318502
URL: https://svnweb.freebsd.org/changeset/base/318502
Log:
sh: Keep output buffer across builtins.
Allocating and deallocating repeatedly the 1024-byte buffer for stdout from
builtins costs CPU time for little or no benefi
Author: jilles
Date: Thu May 18 21:44:14 2017
New Revision: 318501
URL: https://svnweb.freebsd.org/changeset/base/318501
Log:
sh: Ensure memout.bufsize matches allocated buffer, if it exists.
Modified:
head/bin/sh/eval.c
head/bin/sh/output.c
Modified: head/bin/sh/eval.c
===
Author: jilles
Date: Tue May 16 21:54:51 2017
New Revision: 318385
URL: https://svnweb.freebsd.org/changeset/base/318385
Log:
sh: Simplify output buffering.
Similarly to how STPUTC was changed, change struct output to store the
pointer just past the end of the available space instead of t
Author: jilles
Date: Sun May 14 13:14:19 2017
New Revision: 318269
URL: https://svnweb.freebsd.org/changeset/base/318269
Log:
sh: Fix '-' from quoted arithmetic in case/glob pattern range.
It does not make much sense to generate the '-' in a pattern bracket
expression using arithmetic exp
Author: jilles
Date: Sat May 13 20:28:32 2017
New Revision: 318258
URL: https://svnweb.freebsd.org/changeset/base/318258
Log:
sh: Add test for arithmetic expansion in [x-y] pattern range.
It does not make much sense to generate the '-' in a pattern bracket
expression using arithmetic expa
Author: jilles
Date: Sun May 7 19:52:56 2017
New Revision: 317913
URL: https://svnweb.freebsd.org/changeset/base/317913
Log:
glob: Fix comment about collapsing asterisks after r317749.
After r317749, collapsing adjacent asterisks is still required, but for a
different reason.
Modified:
Author: jilles
Date: Sun May 7 19:49:46 2017
New Revision: 317912
URL: https://svnweb.freebsd.org/changeset/base/317912
Log:
sh: Fix INTOFF leak after a builtin with different locale settings.
After executing a builtin with different locale settings such as
LC_ALL=C true
SIGINT handl
rror = ioctl(fd, TIOCFLUSH, &what);
> This is correctly spelled tcflush(fd, TCIOFLUSH);
Alternatively, the above TCSANOW could be changed to TCSAFLUSH. The
effect is slightly different in that pending output is drained instead
of discarded.
In any case, the TIOCFLUSH ioctl is non-stan
Author: jilles
Date: Sat May 6 13:28:42 2017
New Revision: 317882
URL: https://svnweb.freebsd.org/changeset/base/317882
Log:
sh: Update TOUR and comments for some code changes, some of them old.
Also, improve some terminology in TOUR and comments.
Modified:
head/bin/sh/TOUR
head/bin/s
Author: jilles
Date: Tue May 2 21:56:20 2017
New Revision: 317709
URL: https://svnweb.freebsd.org/changeset/base/317709
Log:
csplit: Fix check of fputs() return value, making csplit work again.
As of r295638, fputs() returns the number of bytes written (if not more than
INT_MAX). This br
Author: jilles
Date: Sat Apr 29 21:48:11 2017
New Revision: 317598
URL: https://svnweb.freebsd.org/changeset/base/317598
Log:
printf: Output formatted data directly, instead of via asprintf.
Long ago, sh used to have its own optimized and restricted string formatting
implementation, which
Author: jilles
Date: Fri Apr 28 16:16:22 2017
New Revision: 317559
URL: https://svnweb.freebsd.org/changeset/base/317559
Log:
sh: Simplify handling of newlines in command substitution.
Unless we need to split on newlines, just append them as normal and remove
them at the end.
Modified:
1 - 100 of 1237 matches
Mail list logo