~alpine/devel

About the exit status of the xargs command

Details
Message ID
<1ED96D22-D7C2-4E00-93D8-4D2423A0FF1A@haroid.com>
DKIM signature
missing
Download raw message
Hello.
Is the exit status behavior of xargs different from the specification?

```bash
$ cat / etc / os-release
NAME = "Alpine Linux"
ID = alpine
VERSION_ID = 3.9.4
PRETTY_NAME = "Alpine Linux v3.9"
HOME_URL = "https://alpinelinux.org/"
BUG_REPORT_URL = "https://bugs.alpinelinux.org/"

$ seq 1 5 | xargs -t -I {num} sh -c 'exit 255'
sh -c exit 255
xargs: sh: exited with status 255; aborting

$ echo $?
0
```

If you execute such a command, is the exit status not 124?
Reply to thread Export thread (mbox)