Re: Using gcc as a sort of scripting language.

2024-12-29 Thread raf via Gcc
On Mon, Dec 30, 2024 at 11:16:37AM +1100, raf wrote: > Rather than expecting all C compilers to be modified to > ignore the #! line, it should be possible to configure > /bin/sh to do the desired thing. If a file is > executable and has no #! line, the kernel will execute > it via /bin/sh. Anyone

Re: Using gcc as a sort of scripting language.

2024-12-29 Thread raf via Gcc
Rather than expecting all C compilers to be modified to ignore the #! line, it should be possible to configure /bin/sh to do the desired thing. If a file is executable and has no #! line, the kernel will execute it via /bin/sh. Anyone who wants this facility could create a .profile file (or similar