|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? OK, Now I type ws arg1 arg2 Hmm... It appears to execute. Now how do I make it echo every command? Thanks, Siegfried |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Try using set -x or search for xtrace in the bash man pages.
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
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 |
|
|