Ruud H.G. van Tol on Sat, 25 Dec 2021 17:54:50 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
shebang line, gives syntax error
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: shebang line, gives syntax error
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Sat, 25 Dec 2021 17:54:40 +0100
- Delivery-date: Sat, 25 Dec 2021 17:54:51 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1640451283; bh=0cRPEtc9FoMX+fUQXYcxBIl3QpZCsoD4YxavVpS9YjY=; h=Date:To:From:Subject:From; b=cVQhE2NkTsjDd7z834QNc2WiaNve6DfLHFsY26xX7KaqMBkEHHBfswXo4aHWmIz10 Y4N238gVM4IvQLMEAik78XsPUfpSr3YsCV7Nbglm7GEZoADNkf5RjX00N3vzymJsre Qmxu98BqcA70HTZy8swd0ajh1C5QbExuJyEpF9683CddD8SXsPYYOGyYf5BHMkX800 mYeqBQCjTTp7rwn6YuwQ03wJKcJlutFzsahEll6NqgtI0K6mpm1obE+cUhCYvr7Iaj KtYWELMfoEpELY2qlBVeRJfTcft1zmabSyjo4yr9WdmdYWCfZrltAp+oNYty3OQCiY CcpXPsbF51qCA==
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?
- - - - - - - - -
BTW, a (dirty) workaround is:
$ ln -fs $(which gp) ~/run_gp
and then use
#!run_gp
or even
#!run_gp -q
-- Greetings, Ruud