Mercurial > repo
view bin/@ @ 11113:aa8e4791536e
<oerjan> learn print_args_or_input Is a utility command that makes it easy to create a shell script that can be used either as a pipe or directly as a HackEgo command. Use as print_args_or_input "$@" | yourShellCode . See also shebang_args_or_input.
author | HackBot |
---|---|
date | Sat, 22 Jul 2017 00:45:19 +0000 |
parents | e037173e0012 |
children | 5c5fc08f8113 1aa76501f9fe |
line wrap: on
line source
#!/usr/bin/perl -w $_ = join " ", @ARGV; if (s/^([^ ]*) +([^ ]*) +//) { print "$1: "; exec $2, $_; }