Bug 797113 - scl execution is inconvenient
Summary: scl execution is inconvenient
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: scl-utils
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-24 10:22 UTC by Jan Kratochvil
Modified: 2013-07-02 23:55 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-06 20:02:33 UTC
Type: ---


Attachments (Terms of Use)
Proposed patch for the scl utility (1.87 KB, patch)
2012-09-05 16:48 UTC, Jaromir Hradilek
no flags Details | Diff

Description Jan Kratochvil 2012-02-24 10:22:47 UTC
Description of problem:
When I first faced 'scl' I did not know what to do with it.

Version-Release number of selected component (if applicable):
scl-utils-20120209-1.el5

How reproducible:
Always.

Steps to Reproduce:
1. scl --help
2. scl
3. man scl

Actual results:
Usage: scl <action> [<collection1>, <collection2> ...] <command>
If <command> is '-' then the command will be read from standard input.
Usage: scl <action> [<collection1>, <collection2> ...] <command>
If <command> is '-' then the command will be read from standard input.
No manual entry for scl

Expected results:
<action> can be for actually installed packages: enable
<collection> list from /etc/scl/prefixes/ is: devtoolset-1.0
And some real man page describing /etc/scl/prefixes/ etc.

Why is it a binary? Wouldn't a script be simple enough and readable by user?

Additional info:
Best there should be also: /etc/bash_completion.d/scl

Comment 4 Jaromir Hradilek 2012-09-05 16:48:01 UTC
Created attachment 610094 [details]
Proposed patch for the scl utility

Comment 5 Jan Kratochvil 2012-09-06 04:53:43 UTC
It looks better now, thanks. I would moreover suggest:

    -l, --list            list installed Software Collections or packages
                          that belong to them
->
    -l, --list               list installed Software Collections
    -l, --list <collection>  list packages belonging to <collection>

Comment 6 Jindrich Novy 2012-09-06 20:02:33 UTC
Ok, added a similar variant to upstream with separate helper function as proposed.


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