about summary refs log tree commit diff
path: root/xe.c
Commit message (Collapse)AuthorAgeFilesLines
* pusharg: properly check realloc return value HEAD masterAndrey Alekseenko2023-12-081-1/+1
|
* properly forward errors on exec, return 123 on any exit status 1-254Leah Neukirchen2023-08-021-8/+27
| | | | | Use the CLOEXEC pipe trick to detect if exec happened; read the errno from the pipe if it wasn't closed due to exec.
* formatting tweakLeah Neukirchen2021-04-271-1/+1
|
* rename shquote to sh_quote, clashes with NetBSD libcLeah Neukirchen2017-11-101-2/+2
|
* run: print error message when fork(2) failedLeah Neukirchen2017-11-031-2/+3
|
* run: bail out early when there is no command to runLeah Neukirchen2017-11-031-4/+7
|
* run: close fd 0 if dup'ing /dev/null failsLeah Neukirchen2017-11-031-1/+4
|
* perc_subst: typoLeah Neukirchen2017-11-031-1/+1
|
* parse_jobs: always support -jNxLeah Neukirchen2017-11-031-4/+5
| | | | Else even -j1x breaks on systems with no _SC_NPROCESSORS_ONLN.
* parse_jobs: parse -jj as -j0Leah Neukirchen2017-11-031-1/+3
|
* tweak synopsisLeah Neukirchen2017-11-031-1/+2
|
* parse_jobs: avoid out of bounds readLeah Neukirchen2017-11-031-1/+1
|
* run: save errno before calling other functionsLeah Neukirchen2017-11-031-1/+2
|
* mywait: always return when wait() failsLeah Neukirchen2017-11-031-5/+2
|
* properly distinguish both main loopsLeah Neukirchen2017-11-021-53/+53
|
* fix use of -p and -s togetherLeah Neukirchen2017-11-021-7/+7
|
* wait for enough jobs to finish before asking for more inputLeah Neukirchen2017-11-021-1/+9
| | | | | This helps -F fail immediately after execution, not after reading the next line.
* use /bin/sh as $0 for shell scripts when using -sLeah Neukirchen2017-10-171-2/+2
| | | | | Using - as $0 results in undefined behavior, and actually makes FreeBSD /bin/sh ignore the - and use the next argument as script name.
* perc_match: patterns with ** match against full path tooLeah Neukirchen2017-10-121-2/+2
|
* perc: plain % should not match empty stringLeah Neukirchen2017-10-121-1/+1
|
* open stderr linewise when using it for tracingLeah Neukirchen2017-10-091-3/+15
|
* add -q for quiet mode to redirect output of programs to /dev/nullLeah Neukirchen2017-10-091-3/+12
|
* use replace-arg for percent rules too (instead of @)Leah Neukirchen2017-10-091-3/+3
|
* allow \ escapes in rangesLeah Neukirchen2017-10-091-1/+6
|
* small cleanupLeah Neukirchen2017-10-091-8/+9
|
* implement a variant of fnmatch for percent matchingLeah Neukirchen2017-10-091-16/+126
|
* whitespace cleanupLeah Neukirchen2017-09-241-5/+5
|
* percent patterns without / match against basenames onlyLeah Neukirchen2017-09-241-2/+22
|
* add -p for percent rulesLeah Neukirchen2017-09-241-3/+108
|
* styleLeah Neukirchen2017-08-311-7/+7
|
* xe: prefix lines with job on -LLLeah Neukirchen2017-07-101-1/+1
|
* xe: -L: print job ids, not PIDsLeah Neukirchen2017-07-101-15/+23
| | | | PID can be reused during long runs
* xe: add -L for output line bufferingLeah Neukirchen2017-07-101-5/+53
| | | | | We spawn one logging process per job, this is not very efficient, but easy to implement.
* xe: keep track of our own childrenLeah Neukirchen2017-07-101-2/+25
| | | | | Note that we could have children already upon our execve, there were false positives before. Also allows us to spawn our own helper processes now.
* add -vv to trace pid and exit statusLeah Neukirchen2017-07-031-3/+13
|
* parse_jobs: accept a multiplier on the CPU core numberLeah Neukirchen2017-07-031-5/+22
|
* xe: revise logic to only read new arguments when we immediately need themLeah Neukirchen2017-05-191-5/+16
| | | | | This changes behavior on pipes that are written slowly, else there is a one-line delay between executions.
* error on -A when separator does not appearLeah Neukirchen2017-04-111-0/+5
|
* LeahizeLeah Neukirchen2017-04-111-2/+1
|
* fix shquote for empty stringsChristian Neukirchen2016-06-131-1/+2
|
* store result of getopt in int, to not break on architectures with unsigned chars v0.6.1Christian Neukirchen2016-05-201-2/+1
|
* shquote: proper octal for DEL. v0.6Christian Neukirchen2016-02-261-1/+1
|
* support reading arguments from file with -fChristian Neukirchen2016-02-111-4/+22
|
* only close stdin when we read arguments from itChristian Neukirchen2016-02-101-7/+9
|
* drop -k and make it default, add -F to exit on errors immediatelyChristian Neukirchen2016-02-061-6/+13
|
* fix appending of constant argumentsChristian Neukirchen2016-01-161-1/+1
|
* add -j0 to use as many cores as available v0.4Christian Neukirchen2016-01-161-1/+24
|
* fix callback to printf %s for -aChristian Neukirchen2016-01-161-1/+1
|
* expand {} also in the case of passing multiple argumentsChristian Neukirchen2016-01-161-37/+36
|
* fix -a which was broken due to a clashing variable nameChristian Neukirchen2016-01-161-8/+9
|