How to set echo on
I'm looking at my bash man page and I'm expecting to find some option that I can use to make it echo every command that it executes. The description of --verbose was pretty terse!
Is --verbose supposed to make it echo every command it executes?
My bash script script (named ws2) contains a single function (named ws) and I cannot get it to echo the commands.
Maybe I don't understand functions. When I type
bash --verbose ~/.bash/ws2
no commands are echoed. Could that be because there are no commands and only a single function?
Now I type
ws arg1 arg2
Hmm... It appears to execute. Now how do I make it echo every command?
|Thread Tools||Search this Thread|
|More UNIX and Linux Forum Topics You Might Find Helpful|
|Thread||Thread Starter||Forum||Replies||Last Post|
|With that logic this echoes "echo". Question about echo!||hakermania||Shell Programming and Scripting||2||11-11-2010 05:13 PM|
|Help with echo||mac4rfree||Shell Programming and Scripting||6||12-17-2009 04:57 PM|
|Help with echo and sed||limmer||Shell Programming and Scripting||2||11-27-2009 01:53 PM|
|How to correctly use an echo inside an echo?||mokachoka||UNIX for Dummies Questions & Answers||3||09-19-2009 11:40 PM|
|Difference between using "echo" builtin and /bin/echo||ulidtko||Shell Programming and Scripting||2||07-15-2009 11:12 AM|