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

Re: sh <scriptname> malfunction after upgrade



On Wed, Nov 9, 2011 at 6:41 AM, J. Bakshi <bakshi12@gmail.com> wrote:
> On Wed, 09 Nov 2011 11:33:17 +0000
> kuLa <debian@kulisz.net> 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.
>> 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 ?

http://mywiki.wooledge.org/Bashism


Reply to: