c icon indicating copy to clipboard operation
c copied to clipboard

A better shebang

Open yugr opened this issue 5 years ago • 1 comments

A better "shebang" would be

///bin/true; /usr/bin/c "$0" "$*"; exit $?

as it would keep file compileable with normal gcc invocation. See example of this here (also discussion on StackOverflow).

yugr avatar May 14 '19 07:05 yugr

A better "shebang" would be

Agreed. I just tried it and it works.

andy5995 avatar Sep 12 '22 21:09 andy5995