On Wed, Nov 09, 2011 at 12:41:00PM CET, "J. Bakshi" <baksh...@gmail.com> said:
> On Wed, 09 Nov 2011 11:33:17 +0000
> kuLa <deb...@kulisz.net> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > On 09/11/11 11:15, J. Bakshi wrote:
> > > 
> > > Hello list,
> > > 
> > > I have upgraded a very old lenny server to squeeze.
> > > The shell scripts are now malfunctioning; specially the
> > > loop statement. Moreover "sh -x <script>" are malfunctioning
> > > but :bash -x <script>" are running fine. what actually I am missing
> > > here ? I have tried both with #!/bin/bash and #!/bin/sh but the same
> > > problem with "sh -x <script>"
> > 
> > Default shell in squeeze is dash not like in lenny where was bash.
> > http://wiki.debian.org/Shell
> > 
> 
> I see.. but should user redesign the script if use dash ?
> Any compatibility, at-lease for running the existing shell script
> for bash ?
> 
> Thanks

If your scruipt uses bash feature, explicitely use bash to start it : the 
shebang is not used when you say
sh -x script


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111109115718.gp22...@rail.eu.org

Reply via email to