annotate bin/print_args_or_input @ 5375:9489512c414d

<Jafet> ` (echo \'\xe2\x80\x8b#!/bin/sh\'; echo \'echo "$@" | sed \'\\\'\'s/\\\\/\\n/g\'\\\'\' >/tmp/a.c && gcc -w -Wfatal-errors -std=c11 -O2 /tmp/a.c -o /tmp/a.out && /tmp/a.out\') >bin/cc && chmod +x bin/cc
author HackBot
date Thu, 28 May 2015 21:05:03 +0000
parents ab96ba09ae17
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4555
ab96ba09ae17 <oerjan> sed -i \'1i#!/bin/bash\' bin/print_args_or_input
HackBot
parents: 4488
diff changeset
1 #!/bin/bash
4488
9c8449758bbd <ion> printf \'%s\\n\' \'if [ "$#" -gt 0 ]; then printf \'\\\'\'%s\\n\'\\\'\' "$*"; else cat; fi\' >bin/print_args_or_input && chmod 755 bin/print_args_or_input
HackBot
parents:
diff changeset
2 if [ "$#" -gt 0 ]; then printf '%s\n' "$*"; else cat; fi