Bill Allombert on Sat, 25 Dec 2021 19:53:39 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: shebang line, gives syntax error |
On Sat, Dec 25, 2021 at 05:54:40PM +0100, Ruud H.G. van Tol wrote: > > I have put a shebang-line > in the very first line of > a .gp file, like: > > #!/usr/local/bin/gp > > When I let that file run itself, > it mentions: > > parisize = 8000000, primelimit = 500000, nbthreads = 8 > *** syntax error, unexpected '/': #!/usr/local/bin/gp > *** ^----------------- > ... skipping file '<redacted>.gp' > > How to make gp ignore that shebang-line? Sorry, I do not know anyway to do that, and the shebang-line allows for a single option anyway One way is # /bin/sh gp -f -q -D output=0 << 'EOF' ... ... ... EOF THe only way I see to fix that would be to hande #!/ as the start of the line as a comment. Cheers, Bill.