Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29814 invoked from network); 26 Jan 2012 10:35:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2012 10:35:56 -0000 Authentication-Results: pb1.pair.com header.from=kiall@managedit.ie; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kiall@managedit.ie; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain managedit.ie designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: kiall@managedit.ie X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:46239] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/E2-10573-A8C212F4 for ; Thu, 26 Jan 2012 05:35:55 -0500 Received: by iaoo28 with SMTP id o28so649297iao.29 for ; Thu, 26 Jan 2012 02:35:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=managedit.ie; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UXsi8f2AlgWj2hw7Hk9ondAmWji9LfSrXLEK6oImiSc=; b=ILBxSlxwz/RgvBqglgDIcAwdI1tXmUgk//qy/kVuYY8Hgc29Mao57AlEjrnwirSGB3 XvH5iKAU1eyWGQGza71cNNwAuhEZ8Koz+5F4rv2Zq+6CS+HLZ2SsrrBv7rawz6CTxqEg w/A6xoXt1l1UKVCA50rwhYdRgmZ+1weDE7aOo= MIME-Version: 1.0 Received: by 10.50.153.234 with SMTP id vj10mr1655439igb.16.1327574151904; Thu, 26 Jan 2012 02:35:51 -0800 (PST) Received: by 10.231.23.205 with HTTP; Thu, 26 Jan 2012 02:35:51 -0800 (PST) Received: by 10.231.23.205 with HTTP; Thu, 26 Jan 2012 02:35:51 -0800 (PST) In-Reply-To: References: <4F20978D.2090605@gmail.com> <9570D903A3BECE4092E924C2985CE48539BC5EA4@MBX202.domain.local> Date: Thu, 26 Jan 2012 10:35:51 +0000 Message-ID: To: devis@lucato.it Cc: Ferenc Kovacs , PHP internals Content-Type: multipart/alternative; boundary=e89a8f3ba66dbcbde104b76bf1e8 Subject: Re: [PHP-DEV] Shebang parsing From: kiall@managedit.ie (Kiall Mac Innes) --e89a8f3ba66dbcbde104b76bf1e8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Surely you can detect which operating system you're running on, and have PHP act accordingly? (Note: on my phone, haven't read the link!) Kiall Sent from my mobile - Sorry for being short. On Jan 26, 2012 10:08 a.m., wrote: > Hi, > > from > > http://stackoverflow.com/questions/4303128/how-to-use-multiple-arguments-= with-a-shebang-i-e > > > > > 1. Some operating systems simply treat the entire thing as the path. > After all, in most operating systems, whitespace or dashes > are legal in a > path. > 2. Some operating systems split at whitespace and treat the first > part as the path to the interpreter and the rest as > individual arguments. > 3. Some operating systems split at the *first* whitespace and > treat the front part as the path to the interpeter and the rest a= s > a > *single* argument (which is what you are seeing). > 4. Some even don't support shebang lines *at all*. > > Thankfully, 1. and 4. seem to have died out, but 3. is pretty widespread, > so you simply cannot rely on being able to pass more than one argument. > > > Devis > > > 2012/1/26 Ferenc Kovacs > > > it has a length limit, if I remember correctly it is some reall short > value > > on linux. > > it seems to be 127 character: > > http://www.in-ulm.de/~mascheck/various/shebang/ > > > > 2012/1/26 Clint M Priest > > > > > I've never gotten -d in shebang to work properly, I'd love to see tha= t > > > working. > > > > > > > > -- > > Ferenc Kov=E1cs > > @Tyr43l - http://tyrael.hu > > > --e89a8f3ba66dbcbde104b76bf1e8--