Re: sh <scriptname> malfunction after upgrade
On Wed, Nov 9, 2011 at 6:41 AM, J. Bakshi <firstname.lastname@example.org> wrote:
> On Wed, 09 Nov 2011 11:33:17 +0000
> kuLa <email@example.com> wrote:
>> On 09/11/11 11:15, J. Bakshi wrote:
>> > 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.
> I see.. but should user redesign the script if use dash ?
> Any compatibility, at-lease for running the existing shell script
> for bash ?