J. Bakshi:
>
> 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>"
/bin/sh points to dash nowadays. You need to either run "bash -x
<script>" or use "set -x" in the script.
J.
--
If I could have anything in the world it would have to be more money.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
Attachment:
signature.asc
Description: Digital signature