Hide Forgot
When I run a series of commands via "scl", there's no way to echo the commands that are running. For example, in a Jenkins job I run something equivalent to the following: scl enable ruby193 - <<EOF bundle install bundle exec rake db:test:purge bundle exec rake db:setup COVERAGE=1 bundle exec rake ci:setup:minitest test:units rcov EOF The problem is that once the script enters the "scl enable ruby193" part, I can't see any of the commands that are run. If things fail, I have a general idea because I wrote the script, but it's pretty opaque to anyone else. Compare this to bash. In plain bash, I can see the commands when I pass an "-x" parameter. For example: bash -x - <<EOF ruby -v EOF ...will print the "ruby -v" command before printing the actual Ruby version output. It would be nice to have a similar "echo" option for the scl utility.
After researching this more, it looks like I can just add "set -x" as the first command in the heredoc. That works.
Closing as NOTABUG as per comment 1.