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

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

2017-03-31 Thread Johan Kuuse
l.com> >> 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: >> > #!/usr/bin/env -S fossil2/fossil cgi fossil.config >> > #!/user/bin/env -S foss

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

2017-03-30 Thread Ron W
On Thu, Mar 30, 2017 at 7:32 AM, <fossil-users-requ...@lists.fossil-scm.org> wrote: > > Date: Thu, 30 Mar 2017 11:15:37 +0200 > From: Florian Balmer <florian.bal...@gmail.com> > To: fossil-users@lists.fossil-scm.org > Subject: Re: [fossil-users] "CGI" command a

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, <fossil-users-requ...@lists.fossil-scm.org> wrote: > > Date: Tue, 28 Mar 2017 09:16:35 +0200 > From: Florian Balmer <florian.bal...@gmail.com> > To: fossil-users@lists.fossil-scm.org > Subject: [fossil-users] "CGI" comman

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

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

[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