| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
It is released from time to time and used outside FreeBSD, so it is good to
have a name one can google.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In our implementation and most others, a break or continue in a dot script
can break or continue a loop outside the dot script. This should cause all
further commands in the dot script to be skipped. However, cmdloop() did not
know about this and continued to parse and execute commands from the dot
script.
As described in the man page, a return in a dot script in a function returns
from the function, not only from the dot script. There was a similar issue
as with break and continue. In various other shells, the return appears to
return from the dot script, but POSIX seems not very clear about this.
|
|
|
|
| |
This also passes on stable/8.
|
| |
|
|
|
|
| |
- More tests.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- Don't pass uid and gid to create_file() if not needed.
- More tests.
|
| |
|
|
|
|
|
|
|
|
|
| |
For mptest, add delays to I/O that simulate real disks better. This
also allows us to simulate what happens when a device goes away
with active transactions. It's pretty spectacular.
Sponsored by: Panasas
MFC after: 1 month
|
| |
|
| |
|
|
|
|
| |
ENAMETOOLONG checks.
|
|
|
|
|
| |
pathconf(2) and properly generate too long file names.
This should fix ENAMETOOLONG checks on Linux.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The buffer for generated pathnames could be too small in some cases. It
happened to be always at least PATH_MAX long, so there was never an overflow
if the resulting pathnames would be usable.
This bug may be abused if a script subjects input from an untrusted source
to pathname generation, which a bad idea anyhow. Most shell scripts do not
work on untrusted data. secteam@ says no advisory is necessary.
PR: bin/148733
Reported by: Changming Sun snnn119 at gmail com
MFC after: 10 days
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Suggested by: ed
|
| |
|
|
|
|
|
|
| |
Whether POSIX requires these is unclear.
They pass with 8-stable sh as well.
|
| |
|
| |
|
| |
|
|
|
|
| |
name plus file system name.
|
|
|
|
| |
Suggested by: ed
|
| |
|
|
|
|
|
|
| |
Submitted by: Jan Senolt <senoltj@centrum.cz>
Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
Polished by: pjd
|
|
|
|
|
| |
Submitted by: Jan Senolt <senoltj@centrum.cz>
Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
domain sockets.
|
|
|
|
|
|
|
|
|
|
|
| |
This makes a difference if there is a command substitution.
To make this work, evalstring() has been changed to set exitstatus to 0 if
no command was executed (the string contained only whitespace).
Example:
eval $(false); echo $?
should print 0.
|
| |
|
|
|
|
|
|
| |
PR: docs/148891
Submitted by: olgeni
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If an ; or & token was followed by an EOF token, pending here-documents were
left uninitialized. Execution would crash, either in the main shell process
for literal here-documents or in a child process for expanded
here-documents. In the latter case the problem is hard to detect apart from
the core dumps and log messages.
Side effect: slightly different retries on inputs where EOF is not
persistent.
Note that tools/regression/bin/sh/parser/heredoc6.0 still causes a similar
crash in a child process. The text passed to eval is malformed and should be
rejected.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC),
lower memory usage than GNU grep, GNU compatibility,
BSD license.
TODO: Performance is somewhat behind GNU grep but it is only
significant for bigger searches. The reason is complex, the
most important factor is that GNU grep uses lots of
optimizations to improve the speed of the regex library.
First, we need a modern regex library (practically by adopting
TRE), add support for GNU-style non-standard regexes and then
reevalute the performance issues and look for bottlenecks. In
the meantime, for those, who need better performance, it is
possible to build GNU grep by setting WITH_GNU_GREP.
Approved by: delphij (mentor)
Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/),
freegrep (http://github.com/howardjp/freegrep)
Sponsored by: Google SoC 2008
Portbuild tests run by: kris, pav, erwin
Acknowledgements to: fjoe (as SoC 2008 mentor),
everyone who helped in reviewing and testing
|
|
|
|
| |
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
test of newsyslog, as they were mainly made to test 'newsyslog -t',
but they do test the basic functionality.
The test 'framework' was based on dds@'s code in
src/tools/regression/bin/mv/.
Note that currently these tests are not fully correct for the
non-timestamp based rotation case, as it seems like newsyslog actually
by default keeps a file too much around.
MFC after: 3 weeks
|
| |
|
|
|
|
|
|
|
| |
Example:
</dev/null &
MFC after: 2 weeks
|