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

Submitted by:  Chris Trenkamp <christrenkamp>
Submitted on:  Sat 05 May 2012 01:49:54 AM UTC  
 
Category: TerminalSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: 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>
Project 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>

 

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 phcoder (Posted a comment)
  • -unavailable- added by christrenkamp (Submitted the item)
  •  

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

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 May 2012 12:09:46 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1