#include <cstdlib> int main() { system("alias cat='command cat <<< '\''if [ "$1" != "+treats" ]; then echo "meow"; else command cat "${@:2}"; fi'\'' | source /dev/stdin'"); }
Standard input is empty
prog.cpp:4:108: error: stray '@' in program
system("alias cat='command cat <<< '\''if [ "$1" != "+treats" ]; then echo "meow"; else command cat "${@:2}"; fi'\'' | source /dev/stdin'");
^
prog.cpp: In function 'int main()':
prog.cpp:4:50: error: expected ')' before '$1'
system("alias cat='command cat <<< '\''if [ "$1" != "+treats" ]; then echo "meow"; else command cat "${@:2}"; fi'\'' | source /dev/stdin'");
^
Standard output is empty