[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sh <scriptname> malfunction after upgrade



On Wed, 09 Nov 2011 11:33:17 +0000
kuLa <debian@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


Reply to: