You're viewing a comment by Peter Krumins and its responses.

February 19, 2009, 09:31

dhanu, -x prints commands and their arguments as they are executed:

$ echo hi
hi
$ set -x
$ echo hi
+ echo hi
hi

And -v prints shell input lines as they are read:

$ cat script
#!/bin/bash
#

set -v

. other_script

$ cat other_script
#!/bin/bash
#

echo foo

# ./script

. other_script
#!/bin/bash
#

echo foo
foo

Comment Responses

John Yoon Permalink
April 01, 2013, 16:58

'# ./script' -> '$ ./script'

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "cloud_107": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.