echo command as in windows

Vidiot brown at mrvideo.vidiot.com
Thu May 25 16:26:58 UTC 2006


>Are you using bash?  try running it with 'bash -x <script>'
>marc

Or, within the script, on the second line do:

	set -x

This is useful if the script you are trying to debug is called from another
script.  Also, you don't care which shell you are running.

I use this to do debugging a lot.  But the error you get might be extremely
misleading.  If you have a missing/misplaced double-quote (or any of
the quotes), the error it complains about could be many lines away from the
actual location.

MB
-- 
e-mail: vidiot at vidiot.com                                /~\ The ASCII
                                                         \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]          X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email




More information about the redhat-list mailing list