[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: Newbie compile/usage question for 2.95a
From: |
Thomas Girard |
Subject: |
[Help-smalltalk] Re: Newbie compile/usage question for 2.95a |
Date: |
Thu, 10 May 2007 19:47:13 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Thu, May 10, 2007 at 01:12:53PM +0200, Paolo Bonzini wrote:
>
> >>#! @bindir@/gst -qgf
> >>
> >>header to browser/Run.st and install it as gst-blox?
> >
> >Is there a new `-f' option in GNU Smalltalk? I can't find it, so I can't
> >check whether it would work.
>
> It's been there since 2.3.
[...]
Right, sorry. `-f' option is available.
I can confirm that using the shebang above and copying browser/Run.st to
/usr/bin/gst-blox works.
> In practice, "-a" is almost never used in practice. It is used
> internally by Smalltalk images, which have "#! /usr/bin/env gst -aI" in
> their first line.
It reminds me of a patch (attached) I apply to GNU Smalltalk for Debian
package because the shebang in the image does not work. I was told that
what is behind the shebang is passed as a single argument.
The following snippet illustrate this. On my Debian GNU/Linux box:
address@hidden cat shebang1
#! /bin/echo -e
address@hidden ./shebang1
./shebang1
address@hidden ./shebang1 whatever
./shebang1 whatever
address@hidden cat shebang2
#! /bin/echo -e whatever
address@hidden ./shebang2
-e whatever ./shebang2
That is, /bin/echo from shebang2 receives '-e whatever' as first argument.
Hence /usr/bin/env receives `gst -aI...' and fails. With the patch,
executing gst.im works.
The patch is crude because it hardcodes the path to gst, I guess it could be
modified to use @automake@ variable and work in all cases; but then we'll need
to check if dummy[64] is not exceeded.
Regards,
Thomas
04_fix_image_shebang.diff
Description: Text Data