Re: echo command as in windows

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

 



>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@xxxxxxxxxx                                /~\ The ASCII
                                                         \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]          X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux