[ipxe-devel] [GitHub] Add 'equals' command [ipxe/ipxe GH-4]

Michael Brown mbrown at fensystems.co.uk
Thu Apr 7 16:49:43 UTC 2011


On Thursday 07 Apr 2011 17:08:56 Greg Jednaszewski wrote:
> Any comments related to this change?  You can see the changeset by
>  following the link.  Or if it's easier for everybody, I can post a patch
>  here instead of via github.

Sorry for the delay in replying.

There is already a viable way to force a trailing space on "echo":

    set spc:hex 20
    echo -n Prompt:${spc} && read answer

I'm not keen on having "echo -n" always print a trailing space, because that 
wouldn't match the behaviour of "echo -n" in most shells.  Is the ${spc} trick 
sufficient for you?  If not, then we could think about some extra option for 
"echo".


For "equals": I think that "iseq" or "isequal" would probably be a better 
name, for consistency with "isset".  What do you think?

Michael



More information about the ipxe-devel mailing list