bugGNU GRUB - Bugs: bug #36404, Colons in environment variable...

 
 

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

bug #36404: Colons in environment variable identifiers are unreadable

Submitter:  Chris Trenkamp <christrenkamp>
Submitted:  Sat 05 May 2012 01:49:54 AM UTC
   
 
Category:  Terminal Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Tue 08 May 2012 12:09:46 PM UTC, comment #1: 

I've added code to replace colons with underscores in variable names.

Vladimir Serbinenko <phcoder>
Group administrator
Sat 05 May 2012 01:49:54 AM UTC, original submission:  

If an environment variable has a colon in its identifier, it will be inaccessible when attempting to read it.

For example, after the user runs 'net_bootp', the environment variable 'net_pxe:dhcp_boot_file' will be set.  If the user attempts to read it with echo '${net_pxe:dhcp_boot_file}', the command will return these errors:
error: $.
error: syntax error.
error: Incorrect command.
error: syntax error.

I've tried various ways to read these variable, but can't find one that works.  I know these variables were meant to be read-only, which is probably why there's a colon in the identifier, but it would be extremely useful to be able to read them.

Chris Trenkamp <christrenkamp>

 

(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 phcoder (Posted a comment)
  • -email is unavailable- added by christrenkamp (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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-05-08 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code