[ipxe-devel] Ability to edit variable content

"Ján ONDREJ (SAL)" ondrejj at salstar.sk
Thu Oct 25 06:00:17 UTC 2012


On Wed, Oct 24, 2012 at 10:46:36PM -0700, Michael Brown wrote:
> On 23/10/12 22:32, Ján ONDREJ (SAL) wrote:
> >   in my scripts I have ability to set kernel boot parameters. My kickstart
> >scripts can be configured by these parameters. Often I need to change/update
> >this variable. Please, can you add feature to edit variables?
> 
> Done:
> 
>   http://git.ipxe.org/ipxe.git/commitdiff/34863a5

Thank you. But something is wrong. If content length is larger than lenght
of row, editing only displays last line. Even if I can edit previous line
too, it's not refreshed and I should edit it in blind mode.

Steps to reproduce:

iPXE> set test 1234567890 1234567890 abcdefghijklmnopqrstuvwxyz 1234567890 12345
67890 1234567890 1234567890                                                     
iPXE> echo ${test}                                                              
1234567890 1234567890 abcdefghijklmnopqrstuvwxyz 1234567890 1234567890 123456789
0 1234567890                                                                    
iPXE> read test                                                                 

Now try to backspace 20 charactes and then echo ${test} .

Also editing does not work in one "read" command without predefined text for
multirow content.

Another small problem should be, that breaking (ctrl+c) read command will
clear original content. Consider, if this is an feature or bug. :-)

				SAL



More information about the ipxe-devel mailing list