Bug 156333

Summary: less only works when getting piped input
Product: [Retired] Fedora Legacy Reporter: Grant Mills <gmills>
Component: lessAssignee: Fedora Legacy Bugs <bugs>
Status: CLOSED DEFERRED QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: rhl9   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: DEFER
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-10 12:31:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Grant Mills 2005-04-29 00:02:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Description of problem:
less works fine when receiving input from a pipe:
      ls -alR / | less

when I try to access less' help I get this across the top of the screen, minus the quotes:
      "ESC]2;<host>:/home/<login>^GESC]1;<host>^G"
I get '~' starting each line all the down to the bottom and this along the bottom, again minus the quotes:
      "@/\less/\help/\file/\@ (file 2 of 2) (END)"

If I try to give less a file directly to display:
      less sometextfile.txt
The screen clears (terminal init stuff) and I get this at the bottom, again minus the quotes:
      "ESC]2;<host>:/home/<login>^GESC]1;<host>^G
       sometextfile.txt (END)"

Version-Release number of selected component (if applicable):
less-378-7.2.legacy

How reproducible:
Always

Steps to Reproduce:
1. Execute "ls -alR | less"
2. At the ":" Prompt, hit 'h' for help

  

Actual Results:  I get this across the top of the screen, minus the quotes:
      "ESC]2;<host>:/home/<login>^GESC]1;<host>^G"
I get '~' starting each line all the down to the bottom and this along the bottom, again minus the quotes:
      "@/\less/\help/\file/\@ (file 2 of 2) (END)"


Expected Results:  Less' help.  I can't remember if the help occurs in a whole or split screen, but I do recall seeing the key (or combos) along the left column with their description to the right.

Additional info:

 less --version
less 378+iso254   (Red Hat)
Copyright (C) 2002 Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less

Comment 1 Grant Mills 2005-04-29 00:22:18 UTC
*** Bug 156335 has been marked as a duplicate of this bug. ***

Comment 2 Pekka Savola 2005-11-16 13:24:52 UTC
This doesn't seem to be important enough to fix just on its own, so mark it DEFER.

Comment 3 Jindrich Novy 2006-01-10 12:31:16 UTC
Should work fine with less-394