The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
echo debasis.mishra Shell Programming and Scripting 0 03-28-2006 01:35 AM
What does echo ^[[r do? hamsasal UNIX for Advanced & Expert Users 1 07-24-2005 02:14 PM
echo with \n whatisthis UNIX for Dummies Questions & Answers 3 05-18-2005 11:59 AM
echo ????? nguda UNIX for Dummies Questions & Answers 1 06-30-2003 05:02 PM
echo help bb00y High Level Programming 5 10-02-2002 09:53 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-17-2005
siegfried siegfried is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 91
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
  #2 (permalink)  
Old 11-18-2005
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,409
Try using set -x or search for xtrace in the bash man pages.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0