Re: Simple bash question.
On Fri, Aug 09, 2002 at 10:55:45AM -0700, Steve Juranich wrote:
> I'm almost positive that there's a way to make bash echo its commands
> to STDOUT. I have a bunch of script that have variable substitutions
> and the like. What I'd like to do is to have bash echo every command
> line that was given to it AFTER variable substitution. This would
> look a lot like the input script, but it would save some debugging
> effort.
>
> I've checked the man page for bash 5 or 6 times but I can't find what
> I'm looking for.
>
> Then again, maybe I'm thinking about the problem in the wrong way.
>
> Any suggestions are welcome.
'set -x' turns on debugging and 'set +x' will turn it off
--
"Often there may be a number of preferred alternatives, but only 1
that is acceptable to every one... This doesn¹t mean that [it] is a
compromise; it¹s 1 of several good alternatives. A compromise implies
that you are giving up some thing you believe is important. Urge
group members to voice any reservations they have. You are not
looking for a compromise; rather, a solution every one feels good
about."
-- Michael Doyle & David Straus
1982 _How To Make Meetings Work_ pg 245
Rick Pasotto rickp@telocity.com http://www.niof.net
Reply to: