Add xargs file-read even though it uses the external echo command

This commit is contained in:
Andrea Cardaci 2018-06-03 11:51:44 +02:00
parent d14b69c12f
commit 2463f9477a

View File

@ -6,4 +6,9 @@ functions:
- code: sudo xargs -a /dev/null /usr/bin/id
suid-enabled:
- code: ./xargs -a /dev/null /usr/bin/id
file-read:
- description: This works as long as the file does not contain the NUL character, also a trailing `$'\n'` is added. The actual `/bin/echo` command is executed. This GNU version only.
code: |
LFILE=file_to_read
xargs -a "$LFILE" -0
---