bugGNU GRUB - Bugs: bug #64925, String equality test listed as...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64925: String equality test listed as double equals sign

Submitter:  Shaddy <tnemmockcore>
Submitted:  Fri 24 Nov 2023 08:43:10 AM UTC
   
 
Category:  Documentation Severity:  Major
Priority:  5 - Normal Item Group:  Documentation
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  None
Planned Release:  None

Fri 24 Nov 2023 08:43:10 AM UTC, original submission:  

I have cause to add a customisation to my grub.cfg file, so I've been reading the GRUB manual.

I noticed that the string equality test syntax, under the "test" command section, is documented as double equals sign (==).

But in all my encounters of grub.cfg, including generated ones for years and years now, I've only ever see a single equals sign (=). ie:


        if [ "${1}" = "keep" ]; then


Admittedly, I have not tested if the double equals works in the same way, but even if it did (so it's an either/or proposition), shouldn't the single equals be documented as well?

Shaddy <tnemmockcore>

 

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

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 tnemmockcore (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code