[ipxe-devel] question about double amp

Thomas Miletich thomas.miletich at gmail.com
Sat Dec 11 00:51:03 UTC 2010

while I haven't tried the new scripting features myself it is my
impression that this is the intended behavior.

If I understood it correctly you're supposed to append '||' at the end
of the commands, if you don't want the script to abort:

     imgfetch ${uuid}/foo.bar && goto :have_foo_bar ||
     imgfetch foo.bar

I could be totally wrong though.
Hope that helps


On Fri, Dec 10, 2010 at 8:31 PM, Duane Voth <duanev at gmail.com> wrote:
> Michael,
> What should the double ampersand operator do in the following case?
>      imgfetch ${uuid}/foo.bar && goto :have_foo_bar
>      imgfetch foo.bar
>      :have_foo_bar
> The goto only executes if the ${uuid}/foo.bar fetch succeeds, but the script
> aborts when this fetch fails.  Is this the expected behavior?
> Duane
> ps. check your backlog again
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo/ipxe-devel

More information about the ipxe-devel mailing list