The 1.4.6 version of Shorewall makes additional demands on the shell. I have found that both the RH9.0 version of ash and the version of ash that has long been available from the Shorewall download sites are *not* suitable for use with Shorewall 1.4.6. The LEAF Bering version of ash on the other hand works fine. Attached is a small shell program that will allow you to test your shell for compability with 1.4.6. a) Save the attachment. b) cd <directory where you saved shellcheck.sh> c) chmod +x shellcheck.sh d) ./shellcheck.sh -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://www.shorewall.net Washington USA \ teastep@shorewall.net -------------- next part -------------- A non-text attachment was scrubbed... Name: shellcheck.sh Type: text/x-sh Size: 389 bytes Desc: not available Url : http://lists.shorewall.net/pipermail/shorewall-users/attachments/20030701/5a98ef31/shellcheck.bin
Tom Eastep
2003-Jul-01 14:16 UTC
[Shorewall-announce] Shell Requirements for Shorewall 1.4.6
On Tue, 2003-07-01 at 14:11, Dan Harkless wrote:> You forgot the attachment, Tom. Below is a raw copy of your entire email. >The Shorewall Announcements List doesn''t permit attachments -- you may download the script from ftp://shorewall.net/pub/shorewall/misc/shellcheck.sh -Tom
Peter Lindeman
2003-Jul-01 14:17 UTC
[Shorewall-users] Shell Requirements for Shorewall 1.4.6
Tom Eastep wrote:> The 1.4.6 version of Shorewall makes additional demands on the shell. I > have found that both the RH9.0 version of ash and the version of ash > that has long been available from the Shorewall download sites are *not* > suitable for use with Shorewall 1.4.6. The LEAF Bering version of ash on > the other hand works fine. > > Attached is a small shell program that will allow you to test your shell > for compability with 1.4.6. > > a) Save the attachment. > b) cd <directory where you saved shellcheck.sh> > c) chmod +x shellcheck.sh > d) ./shellcheck.shLooks good in Mandrake 9.0 -- Groeten, Peter -- Your modem (or other connecting device) has reported an error. --- --- Heb je een Sony Digital video camera ? --- Kijk eens op http://www.dvin.org --- Kijk ook op http://www.lindeman.org --- ICQ 22383596 --- Uptime lindeman.org - 177 days, 21 hours and 6 minutes, 1 user logged in.
On Tue, 2003-07-01 at 14:23, Steve Herber wrote:> I ran the script on my RH 9.0 system and the default sh is linked to bash, > so the test worked. Using ash shellcheck.sh it failed as you mentioned. >For some reason, the RH 9.0 version of ash doesn''t support "^" (XOR) in arithmetic expressions.> I wondered why you brought this up without a reference to the earlier thread > about faster startup with ash vs. bash. >I''m afraid that I''m having a bit of a disorganized day. I have made the Bering version of ash available for download in case folks wish to use that (ftp://shorewall.net/pub/shorewall/misc/ash.gz). That''s the shell that I''m using in conjunction with the SHOREWALL_SHELL option in shorewall.conf that''s included in the latest snapshot. I''ve moved that shell to /bin/Bering_ash and have set SHOREWALL=SHELL=/bin/Bering_ash in shorewall.conf.> Another dark corner of shell hell to stumble over.Nod. It shouldn''t affect anyone using bash but for those using light-weight Bourne Shell derivatives, there may be problems. I''m trying to alert people well in advance to eliminate as many surprises as possible. Thanks, -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://www.shorewall.net Washington USA \ teastep@shorewall.net
Sam Johnston
2003-Jul-01 17:35 UTC
[Shorewall-announce] Shell Requirements for Shorewall 1.4.6
Tom Eastep wrote:> The Shorewall Announcements List doesn''t permit attachments -- you may download > the script from ftp://shorewall.net/pub/shorewall/misc/shellcheck.shThe ash packages in Debian GNU/Linux''s stable (ash 0.3.8-37) and unstable (ash 0.4.17) distributions both satisfy the shellcheck.sh script. - samj -- Sam Johnston, Director Australian Online Solutions 1300 132 809
Tom Eastep
2003-Jul-01 17:39 UTC
[Shorewall-announce] Shell Requirements for Shorewall 1.4.6
On Wed, 02 Jul 2003 10:31:16 +1000, Sam Johnston <samj@aos.net.au> wrote:> The ash packages in Debian GNU/Linux''s stable (ash 0.3.8-37) and unstable > (ash 0.4.17) distributions both satisfy the shellcheck.sh script.Thanks Sam! -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://www.shorewall.net Washington USA \ teastep@shorewall.net
firewall:~# ./shellcheck.sh Your shell looks good! On a Debian 3.0 -----Original Message----- From: shorewall-users-bounces+meph=telia.com@lists.shorewall.net [mailto:shorewall-users-bounces+meph=telia.com@lists.shorewall.net] On Behalf Of Tom Eastep Sent: den 1 juli 2003 23:09 To: Shorewall Users; Shorewall Announcements Subject: [Shorewall-users] Shell Requirements for Shorewall 1.4.6 The 1.4.6 version of Shorewall makes additional demands on the shell. I have found that both the RH9.0 version of ash and the version of ash that has long been available from the Shorewall download sites are *not* suitable for use with Shorewall 1.4.6. The LEAF Bering version of ash on the other hand works fine. Attached is a small shell program that will allow you to test your shell for compability with 1.4.6. a) Save the attachment. b) cd <directory where you saved shellcheck.sh> c) chmod +x shellcheck.sh d) ./shellcheck.sh -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://www.shorewall.net Washington USA \ teastep@shorewall.net