> Therefore, I would expect: > env "-S perl -e 'print qq([$_] ) for (@ARGV)' a b c" > to output: > [a] [b] [c]
Your example works on my FreeBSD server if the double quotes are omitted, and the command is run from a shell: env -S perl -e 'print qq([$_] ) for (@ARGV)' a b c ==> [a] [b] [c] But for a CGI script (named ./sample.cgi), it looks like this: #!/usr/bin/env -S perl -e 'print qq([$_] ) for (@ARGV)' a b c ==> [a] [b] [c] [./sample.cgi] The CGI script name is appended as an extra command line argument. So for the Fossil CGI command, it looks like this: #!/usr/bin/env -S ./fossil cgi fossil.config ==> no such file: cgi > If you have access to a compiler (gcc, clang) on your shared host, > I would recommend that solution. Unfortunately I don't, but for a short moment I was considering to use the custom libraries trick with clang or gcc ... ;-) --Florian _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users