diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-07-10 17:25:13 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-07-10 17:25:13 +0200 |
commit | ae5958197a0832d89ad00718dc0592fda90acf87 (patch) | |
tree | 16497064b91b6b0e836a0782f62b05c5a8597f80 | |
parent | 916b9174a60d5c07d73b4d42a3bf0b505a429c69 (diff) | |
download | xe-ae5958197a0832d89ad00718dc0592fda90acf87.tar.gz xe-ae5958197a0832d89ad00718dc0592fda90acf87.tar.xz xe-ae5958197a0832d89ad00718dc0592fda90acf87.zip |
xe: prefix lines with job on -LL
-rw-r--r-- | xe.1 | 3 | ||||
-rw-r--r-- | xe.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/xe.1 b/xe.1 index 13cdf7c..e14628d 100644 --- a/xe.1 +++ b/xe.1 @@ -87,7 +87,8 @@ stop and exit when a command execution failed. .It Fl L Run the commands with line-buffered output; lines from two jobs will not interleave. -When used with +When used twice, +or with .Fl vv , also prefix each line with the job id in such a manner that the output can be piped to diff --git a/xe.c b/xe.c index 777f1fd..bd08a68 100644 --- a/xe.c +++ b/xe.c @@ -279,7 +279,7 @@ run() if (rd == -1) exit(0); - if (vflag > 1) + if (vflag > 1 || Lflag > 1) printf("%04ld= ", iter); fwrite(line, 1, rd, stdout); }; |