954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

#+ and #++ concept in shell script

hello all
i hav a script when i print it's execution in some line there is #+ in the starting and somewhere there is #++.can anyone plz tell me about these

manish250
Junior Poster in Training
88 posts since Aug 2008
Reputation Points: 10
Solved Threads: 1
 
hello all i hav a script when i print it's execution in some line there is #+ in the starting and somewhere there is #++.can anyone plz tell me about these

[indent]
Please show the script. I have no idea what you are talking about.

Are #+ and #++ in the script itself or in its output?
[/indent]

cfajohnson
Junior Poster
196 posts since Dec 2008
Reputation Points: 25
Solved Threads: 23
 

it is in the output before the every line
when we run the script using

sh -x filename.sh

manish250
Junior Poster in Training
88 posts since Aug 2008
Reputation Points: 10
Solved Threads: 1
 

[indent]
It is the value of $PS4:

PS4    The value of this parameter is expanded as with PS1 and
       the value is printed before each command bash displays
       during an execution trace. The first character of PS4 is
       replicated multiple times, as necessary, to indicate
       multiple levels of indirection.  The default is ''+ ''.

[/indent]

cfajohnson
Junior Poster
196 posts since Dec 2008
Reputation Points: 25
Solved Threads: 23
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: