Bug 1036326

Summary: lesskey doesn't work
Product: [Fedora] Fedora Reporter: Chris Adams <linux>
Component: lessAssignee: Jozef Mlich <jmlich>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: hhorak, jmlich, lnie
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: less-458-5.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-14 03:45:53 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 Chris Adams 2013-12-01 01:13:30 UTC
When trying to install a system-wide lesskey file, but it doesn't work (and doesn't give any information as to why):

# lesskey -o /etc/sysless -i /etc/sysless.src 
usage: lesskey [-o output] [input]

  -o output     - specify output file, otherwise $HOME/.less is used
  -i input      - specify input file, otherwise standard input is used
  -V            - print lesskey version
  -h            - print this help

I tried with and without the "-i".

Comment 1 Jozef Mlich 2013-12-02 10:08:58 UTC
Thanks for reporting. It seems, the lesskey command is not handling command line arguments correctly. As a workaround, please use --output parameter instead.

Note for myself: The break/goto is missing in parse_args() function, namely in less-458-lesskey-usage.patch in fedora repositories.

Comment 2 Fedora Update System 2013-12-02 14:28:42 UTC
less-458-5.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/less-458-5.fc20

Comment 3 Fedora Update System 2013-12-02 23:53:46 UTC
Package less-458-5.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing less-458-5.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-22576/less-458-5.fc20
then log in and leave karma (feedback).

Comment 4 lnie 2013-12-03 04:31:24 UTC
tested with 458-5.fc20,get the same output as Chris's ,
when run # lesskey -o /etc/sysless -i /etc/sysless.src

Comment 5 Chris Adams 2013-12-03 04:36:43 UTC
The "lesskey -o /etc/sysless /etc/sysless.src" format is fixed and working for me.

Comment 6 Fedora Update System 2013-12-14 03:45:53 UTC
less-458-5.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.