Bug 1028717 - RFE: provide "echo" parameter to scl
Summary: RFE: provide "echo" parameter to scl
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: scl-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Zeleny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-09 23:25 UTC by Ken Dreyer
Modified: 2013-11-15 09:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-15 09:29:59 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.