Simplify xargs invocation

This commit is contained in:
Andrea Cardaci 2018-05-30 11:50:14 +02:00
parent bbbff04e55
commit d3b3c390a4

View File

@ -1,11 +1,11 @@
--- ---
functions: functions:
execute-non-interactive: execute-non-interactive:
- code: echo yyy | xargs -Ixxx /usr/bin/id - code: xargs -a /dev/null /usr/bin/id
sudo-enabled: sudo-enabled:
- code: echo yyy | sudo xargs -Ixxx /usr/bin/id - code: sudo xargs -a /dev/null /usr/bin/id
suid-enabled: suid-enabled:
- code: echo yyy | xargs -Ixxx /usr/bin/id - code: ./xargs -a /dev/null /usr/bin/id
file-read: file-read:
- description: This relies on the fact the the file doesn't contain a null char (ASCII 0). - description: This relies on the fact the the file doesn't contain a null char (ASCII 0).
code: xargs --arg-file=file_to_read -0 echo code: xargs --arg-file=file_to_read -0 echo