On 2019/06/09 14:52, Zan Lynx wrote:
> I haven't tested it but you might be able to make this work with a comma
> operator like "while (gets(buf) || (exit(0), 1)) puts(buf);"
>   
yes, I also tried that to verify whether or not I needed a work-around
for gets, though using

"xit(int s){ exit(s);}"

was easier to toggle in and out of the test program by removing or
adding the 'e' before 'exit' calls in the program.

Also simply adding:

extern int exit(int);

was another way to *make* it work, if that was what I needed to do
in trying to understand and verify as working this 29 year-old,
'simple-shell', obfuscation:

   https://www.ioccc.org/1990/tbr.hint

Reply via email to