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

Submitter:  buthanoid
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code