Bug 1028717

Summary: RFE: provide "echo" parameter to scl
Product: [Fedora] Fedora Reporter: Ken Dreyer <ktdreyer>
Component: scl-utilsAssignee: Jan Zeleny <jzeleny>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bkabrda, jzeleny
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-15 09:29:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ken Dreyer 2013-11-09 23:25:22 UTC
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.

Comment 1 Ken Dreyer 2013-11-09 23:39:25 UTC
After researching this more, it looks like I can just add "set -x" as the first command in the heredoc. That works.

Comment 2 Jan Zeleny 2013-11-15 09:29:59 UTC
Closing as NOTABUG as per comment 1.