bugGNU source-highlight - Bugs: bug #60394, Option failsafe behave differently...

 
 

bug #60394: Option failsafe behave differently (i.e displays an error) between stdin and input file

Submitted by:  buthanoid
Submitted on:  Wed 14 Apr 2021 03:26:32 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned 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.

 

Wed 14 Apr 2021 03:26:32 PM UTC, original submission:  

Let the file "toto" contains the string "tata".
From my terminal,

when I type : source-highlight --failsafe --input toto
I get :

>   <!-- Generator: GNU source-highlight 3.1.8
>   by Lorenzo Bettini
>   http://www.lorenzobettini.it
>   http://www.gnu.org/software/src-highlite -->
>   <pre><tt>tata
>   </tt></pre>


But when I type : source-highlight --failsafe < toto
I get :

>   source-highlight: missing feature: language inference requires input file
>   <!-- Generator: GNU source-highlight 3.1.8
>   by Lorenzo Bettini
>   http://www.lorenzobettini.it
>   http://www.gnu.org/software/src-highlite -->
>   <pre><tt>tata
>   </tt></pre>


Notice the error message.
I would wait from "--failsafe" that it does not complain when it cannot infer the source format, in both cases.

Also good job and thanks for the lib

buthanoid

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by buthanoid (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.7