Bug 1036326 - lesskey doesn't work
Summary: lesskey doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: less
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jozef Mlich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-01 01:13 UTC by Chris Adams
Modified: 2015-08-02 23:58 UTC (History)
3 users (show)

Fixed In Version: less-458-5.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-14 03:45:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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