| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
yesexpr is an extended regular expression for quite some time now,
use appropriate flag when compiling it.
PR: 238762
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D27509
Notes:
svn path=/head/; revision=368580
|
| |
|
|
|
|
|
|
|
|
| |
These are low-effort to add, so let's just do it.
Reported by: "LukeShu" on Hacker News (-r / --no-run-if-empty)
MFC after: 1 week
Notes:
svn path=/head/; revision=365954
|
| |
|
|
|
|
|
|
|
| |
PR: 244327
Submitted by: thomas.duffy.99@alumni.brown.edu
MFC after: 1 week
Notes:
svn path=/head/; revision=359596
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
Notes:
svn path=/head/; revision=326025
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96
Notes:
svn path=/head/; revision=314436
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This is rather pedantic, as for most architectures it holds that
sizeof(type *) == sizeof(type **)
Found by: clang static analyzer
Reviewed by: ed
Differential Revision: https://reviews.freebsd.org/D4722
Notes:
svn path=/head/; revision=292864
|
| |
|
|
|
|
|
|
|
|
|
| |
PR: 202152
Submitted by: jbeich (original), Nikolai Lifanov (final)
Reviewed by: jbeich
Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D3330
Notes:
svn path=/head/; revision=286461
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR: 199976
Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com>
Reviewed by: mjg, bjk
Approved by: bapt (mentor)
MFC after: 1 month
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D2616
Notes:
svn path=/head/; revision=286289
|
| |
|
|
|
|
|
|
|
| |
to the users
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=285552
|
| |
|
|
| |
Notes:
svn path=/head/; revision=250431
|
| |
|
|
|
|
|
|
|
|
| |
This only has an effect with -P, otherwise errors are only detected when the
utility is not running.
Submitted by: Matthew Story
Notes:
svn path=/head/; revision=233038
|
| |
|
|
|
|
|
| |
Reported by: bde
Notes:
svn path=/head/; revision=232201
|
| |
|
|
|
|
|
| |
Reported by: bde
Notes:
svn path=/head/; revision=232187
|
| |
|
|
|
|
|
|
|
|
|
| |
If a utility called by xargs exits with status 255 or because of a signal,
POSIX requires writing an error message.
PR: 165155
Submitted by: Matthew Story matthewstory gmail com
Notes:
svn path=/head/; revision=232108
|
| |
|
|
|
|
|
|
|
|
|
|
| |
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
Notes:
svn path=/head/; revision=216370
|
| |
|
|
|
|
|
| |
Submitted by: gcooper@
Notes:
svn path=/head/; revision=215642
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
it to kick off a new command before the previous has finished, resulting
in corrupted (interleaved) output. It is also fooled by non-exiting
children it did not start, failing to exit until all extraneous children
have exited.
This patch makes xargs keep track of children it starts, ignoring
pre-existing ones.
Notes:
svn path=/head/; revision=215615
|
| |
|
|
| |
Notes:
svn path=/head/; revision=153960
|
| |
|
|
|
|
|
| |
Inspired by: OpenBSD
Notes:
svn path=/head/; revision=153959
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
but don't expect a proper ASCII string to exist right here right now, don't
use strcmp(3) which checks for a NUL. As we're still building the argument
up, the next character might be garbage. It would probably be just as safe to
temporarily write a NUL there, but if we've reached the end of argument memory
that might not be the best idea, I think. It's unclear.
Doing it this way seems to meet the most with the original intent.
PR: 85696
Prodded by: stefanf
Notes:
svn path=/head/; revision=153934
|
| |
|
|
|
|
|
| |
having replacements done in it via -I.
Notes:
svn path=/head/; revision=153918
|
| |
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=153196
|
| |
|
|
|
|
|
|
|
|
| |
do something sensible (namely: treat then '\0' as the EOL character, when
deciding what "a line" is for -N). Note that -I implies -N.
MFC after: 3 days
Notes:
svn path=/head/; revision=142604
|
| |
|
|
|
|
|
|
|
| |
LC_CTYPE and LC_COLLATE to correctly interpret regular expressions
returned by nl_langinfo(YESEXPR), and it doesn't hurt to include the
rest.
Notes:
svn path=/head/; revision=132008
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Don't fail if we can't open /dev/null since this can happen if
xargs is jail'ed or chroot'ed.
These fixes were submitted by Todd Miller from the OpenBSD project.
There was one problem in those fixes that broke -o, which is corrected
here and should be committed to the OpenBSD repo by Todd soon.
MFC in: 3 days
Notes:
svn path=/head/; revision=116302
|
| |
|
|
|
|
|
|
|
| |
Submitted by: "Todd C. Miller" <Todd.Miller@courtesan.com>
Obtained from: OpenBSD
Reviewed by: tjr
Notes:
svn path=/head/; revision=116287
|
| |
|
|
|
|
|
|
| |
Submitted by: "Todd C. Miller" <Todd.Miller@courtesan.com>
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=116285
|
| |
|
|
| |
Notes:
svn path=/head/; revision=114591
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FreeBSD. This method attempts to centralize all the necessary hacks
or work arounds in one of two places in the tree (src/Makefile.inc1
and src/tools/build). We build a small compatibility library
(libbuild.a) as well as selectively installing necessary include
files. We then include this directory when building host binaries.
This removes all the past release compatibilty hacks from various
places in the tree. We still build on tip of stable and current. I
will work with those that want to support more, although I anticipate
it will just work.
Many thanks to ru@, obrien@ and jhb@ for providing valuable input at
various stage of implementation, as well as for working together to
positively effect a change for the better.
Notes:
svn path=/head/; revision=113136
|
| |
|
|
| |
Notes:
svn path=/head/; revision=113045
|
| |
|
|
|
|
|
| |
Suggested by: jhb
Notes:
svn path=/head/; revision=112746
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the child process, before executing the command. This is very useful
when you do stuff like ``find ... | xargs interactive_application''.
Without -o, the application would inherit the pipe as its stdin, and
you thus lose any control over it.
This flag has been carefully chosen to not conflit with other options
of other xargs utilities like GNU xargs.
Reviewed by: jmallett
Notes:
svn path=/head/; revision=112514
|
| |
|
|
|
|
|
|
|
|
| |
replace to support magic values less than zero, which mean to just go nuts
and expand as many as we want.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=111581
|
| |
|
|
| |
Notes:
svn path=/head/; revision=111580
|
| |
|
|
|
|
|
| |
in parallel. Idea from GNU xargs.
Notes:
svn path=/head/; revision=108156
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106852
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
(I skipped those in contrib/, gnu/ and crypto/)
While I was at it, fixed a lot more found by ispell that I
could identify with certainty to be errors. All of these
were in comments or text, not in actual code.
Suggested by: bde
MFC after: 3 days
Notes:
svn path=/head/; revision=101677
|
| |
|
|
|
|
|
|
|
|
|
| |
This corrects a problem whereby xargs could not walk the environment table
to count the amount of space it used, and treated it as if it were empty.
This problem was introduced in rev 1.15.
MFC after: 2 days
Notes:
svn path=/head/; revision=99199
|
| |
|
|
|
|
|
|
| |
main()'s argv argument is char*[], and functions that may inherit that arg
should use char*[] as well.
Notes:
svn path=/head/; revision=98617
|
| |
|
|
|
|
|
| |
chunk.
Notes:
svn path=/head/; revision=97794
|
| |
|
|
|
|
|
|
|
|
| |
than triggering a usage(). Allow -R and -I to be specified in any order, and
thus change how -R checks for -I not being given and triggering a usage().
Partially requested by: gad
Notes:
svn path=/head/; revision=97620
|
| |
|
|
|
|
|
| |
a nil-string.
Notes:
svn path=/head/; revision=97619
|
| |
|
|
|
|
|
|
| |
substitution if `utility' is not specified and we're using the buildin echo;
It has no arguments for us to abuse.
Notes:
svn path=/head/; revision=96797
|
| |
|
|
| |
Notes:
svn path=/head/; revision=96351
|
| |
|
|
|
|
|
|
| |
a line of input, and both work differently, so prevent them from both being
passed to xargs(1).
Notes:
svn path=/head/; revision=96092
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the prompt in their native language.
Also make the prompt fit what POSIX asks for (?...).
This should not affect use of -p with yes(1) [as every locale I know of matches
'y' as YESEXPR as well], but that's what -t is for anyway. -p is meant to be
really used interactively.
Submitted by: tjr, jmallett
Notes:
svn path=/head/; revision=96057
|
| |
|
|
|
|
|
|
|
| |
Submitted by: Carl Schmidt <cschmidt@slackerbsd.org>
Wrap an obscenely long line while I'm here.
Notes:
svn path=/head/; revision=96055
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
out the parse loop to a seperate function, and move local variables around as
is needed. To keep the state of some variables and keep from having huge arg
lists to functions, make a bunch global.
Change use of err(3) in situations where malloc(3) will be setting errno to
errx(3) since assuming malloc(3) sets errno is non-portable, and provides no
more useful information in the context of FreeBSD.
Submitted by: bde (err/errx), Carl Schmidt <cschmidt@slackerbsd.org> (some
of the movement of the input loop to a function)
Approved by: src/tools/regression/usr.bin/xargs
Notes:
svn path=/head/; revision=96050
|
| |
|
|
|
|
|
| |
Submitted by: Carl Schmidt <cschmidt@slackerbsd.org>
Notes:
svn path=/head/; revision=96014
|
| |
|
|
| |
Notes:
svn path=/head/; revision=96013
|