QUOTE
i have see this in documentation
but if i do
set mnuimg = "\\images\\menu\\menu.img"
print "$mnuimg"
he print me : magesenuenu.img
he doesn't print the backslash and delete the first letter after each "\\"
For each time you assign a string to a variable that you want to print out, you actually have to double the double \\. But then that variable will have double quotes in the string if you want to do something like show the gif or run the command.
Try this code:
CODE
set mnuimg = "\\\\images\\\\menu\\\\menu.img"
print "$mnuimg"
print "\n"
set mnuimgdir = "\\\\images\\\\menu"
set mnuimg = "$(mnuimgdir)\\\\menu.img"
print "$mnuimg"
print "\n"
set mnuimgdir = "\\\\\\\\images\\\\\\\\menu"
set mnuimg = "$(mnuimgdir)\\\\menu.img"
print "$mnuimg"
print "\n"
The first one prints what you would want (or expect):
CODE
\images\menu\menu.img
The second does not print what you would want (or expect):
I expected this one to print imagesmenu\menu.img
CODE
magesenu\menu.img
The third one prints what you would want:
CODE
\images\menu\menu.img
The problem is that you have to double the quotes for every time you would nest and assign a variable, you have to leave enough \ so that the print only picks up a '\\' where you want it to.
However, AFAIK (and I actually haven't tested this), you now cannot use any of those variables to do path related things, so you can't use them to actually chain a bootloader or run a diskimage.
Use a / instead of \ for path related things and you will be just fine.
Hope this helps.
Eric