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 06:13 PM|
|Help with echo||mac4rfree||Shell Programming and Scripting||6||12-17-2009 05:57 PM|
|Help with echo and sed||limmer||Shell Programming and Scripting||2||11-27-2009 02:53 PM|
|How to correctly use an echo inside an echo?||mokachoka||UNIX for Dummies Questions & Answers||3||09-20-2009 12:40 AM|
|Difference between using "echo" builtin and /bin/echo||ulidtko||Shell Programming and Scripting||2||07-15-2009 12:12 PM|