Make xargs execute-interactive

This commit is contained in:
Andrea Cardaci 2018-09-06 22:32:14 +02:00
parent 7c0fa85a66
commit ab62d024b1

View File

@ -1,14 +1,17 @@
--- ---
functions: functions:
execute-non-interactive: execute-interactive:
- code: xargs -a /dev/null /usr/bin/id - description: GNU version only.
code: xargs -a /dev/null sh
file-read: 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. GNU version only. - 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. GNU version only.
code: | code: |
LFILE=file_to_read LFILE=file_to_read
xargs -a "$LFILE" -0 xargs -a "$LFILE" -0
suid-enabled: suid-enabled:
- code: ./xargs -a /dev/null /usr/bin/id - description: GNU version only.
code: ./xargs -a /dev/null sh -p
sudo-enabled: sudo-enabled:
- code: sudo xargs -a /dev/null /usr/bin/id - description: GNU version only.
code: sudo xargs -a /dev/null sh
--- ---