Re: [Jack-Devel] jack session command line

PrevNext  Index
DateWed, 13 Apr 2011 18:22:24 +0300
From Nedko Arnaudov <[hidden] at arnaudov dot name>
ToJack devel <[hidden] at lists dot jackaudio dot org>
In-Reply-ToJulien Pommier [Jack-Devel] jack session command line
Julien Pommier <[hidden]> writes:

> Hi,
>
> Shouldn't something be specified about whitespace handling in the
> command_line that is filled during the jack session callback ? As far
> as I know, nothing is said in jack/session.h or elsewhere about how
> the session manager will tokenize that command line when restoring the
> saved session. Right now it seems that qjackctl is just splitting the
> command-line at each whitespace, which does not work as expected if
> ${SESSION_DIR} contains whitespaces.

Maybe even if posix shell commandline quoting is assumed, it should be
explicitly defined. The quoting does not apply only to session dir but
also to other parts of the commandline. The app being started by
receives its arguments in the argv array. The exec() does not do any
de-quoting as well. Single-line commandline string seems to be not
conforming to the ANSI/POSIX API spirit, but given that the session API
is already public, this detail should be explicitly stated.

-- 
Nedko Arnaudov <GnuPG KeyID: 5D1B58ED>
PrevNext  Index

1302708148.30707_0.ltw:2,a <87tye25g7j.fsf at usbix dot spacelabs dot org>