Vincent Lefevre <vinc...@vinc17.net> wrote:
> These lines do not support program arguments.
> https://wiki.gentoo.org/wiki/Tcc gives
> 
>   //usr/bin/env tcc -run "$0" "$@" ; exit $?
Funny, I added that to the wiki in 2023
> 
> So, likewise, I would prefer
> 
>   // 2> /dev/null ; exec tcc -run "$0" "$@"
I agree that this is a more portable option, which even helps when /usr/bin/env 
is missing.
In that order, options like -h won't work
        // 2>/dev/null ; exec tcc "$@" -run "$0"
enables options to work
This also made me notice that tcc doesn't support the (POSIX) standard "--" for 
end of options, otherwise I'd have added that, too.

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to