Skip to main content
edited tags
Link
terdon
  • 252.2k
  • 69
  • 480
  • 718
Source Link
Tim
  • 106.8k
  • 234
  • 650
  • 1.1k

How is a trace of commands different from shell input lines?

I am unclear about two options when invoking a bash shell process or for set:

-v Print shell input lines as they are read.

-x Print a trace of simple commands, for commands, case commands, select commands, and arithmetic for commands and their argu- ments or associated word lists after they are expanded and before they are executed. The value of the PS4 variable is expanded and the resultant value is printed before the command and its expanded arguments

How is a trace of commands different from shell input lines?