Re: [fossil-users] "CGI" command and argc

2017-03-31 Thread Florian Balmer
> 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

Re: [fossil-users] "CGI" command and argc

2017-03-31 Thread Johan Kuuse
. BR, Johan On Fri, Mar 31, 2017 at 5:32 AM, Ron W wrote: > On Thu, Mar 30, 2017 at 7:32 AM, fossil-scm.org> wrote: >> >> Date: Thu, 30 Mar 2017 11:15:37 +0200 >> From: Florian Balmer >> To: fossil-users@lists.fossil-scm.org >> Subject: Re: [fossil-users]

Re: [fossil-users] "CGI" command and argc

2017-03-30 Thread Ron W
On Thu, Mar 30, 2017 at 7:32 AM, wrote: > > Date: Thu, 30 Mar 2017 11:15:37 +0200 > From: Florian Balmer > To: fossil-users@lists.fossil-scm.org > Subject: Re: [fossil-users] "CGI" command and argc > > > So, I would expect both of the following to work: > &

Re: [fossil-users] "CGI" command and argc

2017-03-30 Thread Florian Balmer
Thanks for the link and the additional information. I have stumbled upon a website with meticulous research about the unspecified shebang behavior across a wide range of systems: https://www.in-ulm.de/~mascheck/various/shebang/ There's indeed so many variants that it may not be a good idea to do

Re: [fossil-users] "CGI" command and argc

2017-03-29 Thread Ron W
On Tue, Mar 28, 2017 at 8:00 AM, wrote: > > Date: Tue, 28 Mar 2017 09:16:35 +0200 > From: Florian Balmer > To: fossil-users@lists.fossil-scm.org > Subject: [fossil-users] "CGI" command and argc > ... > To get Fossil 2.1 running on my FreeBSD 9.1 shared host, I

Re: [fossil-users] "CGI" command and argc

2017-03-29 Thread Warren Young
On Mar 28, 2017, at 1:16 AM, Florian Balmer wrote: > > #!./fossil cgi fossil.config That relies on behavior POSIX hasn’t specified: https://stackoverflow.com/questions/4303128/ What’s wrong with doing it the portable way? #!/bin/sh exec ./fossil cgi fossil.config I’ll grant tha

Re: [fossil-users] "CGI" command and argc

2017-03-28 Thread Richard Hipp
On 3/28/17, Florian Balmer wrote: > > If I may I would like to suggest that the control file passed to the > "CGI" command be read even if there's additional command line > arguments following, Since I have no way to test this, could you be specific about what change you would like to see? Perha

[fossil-users] "CGI" command and argc

2017-03-28 Thread Florian Balmer
I'm currently stuck on a shared web host running FreeBSD 9.1 without any C compilers available. I'm still able to run the latest version of Fossil from [0] with some quirks (see bottom if you're interested in details). [0] http://pkg.freebsd.org/ I have created an extra CGI script to start playin