bugranger - Bugs: bug #39762, scope.sh should use printf instead...

 
 

bug #39762: scope.sh should use printf instead of echo

Submitted by:  None
Submitted on:  Sun 11 Aug 2013 05:03:00 PM UTC  
 
Severity: 3 - NormalStatus: Works For Me
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 01 Nov 2013 10:19:51 PM UTC, comment #1:

I can't reproduce this. I made a file containing newlines and a file containing a literal "\n", both didn't produce any effect out of the ordinary.

Roman Z. <hut>
Project Administrator
Sun 11 Aug 2013 05:03:00 PM UTC, original submission:

If there is "\n" in some text file, it breaks ranger's preview with highlighting. It can be fixed by changing line:
dump() { echo "$output"; }
to:
dump() { printf '%s\n' "$output"; }

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hut (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 01 Nov 2013 10:19:51 PM UTChutStatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1