grub4dos: \ character is converted to \\ when calling grub.exe from grub2
steve6375 opened this issue · 3 comments
steve6375 commented
a1ive commented
Maybe this backslash is added by grub2?
https://github.com/a1ive/grub/blob/5b20b2f521f32e8b170581854cc7c80f0c0bc159/grub-core/lib/cmdline.c#L113-L114
steve6375 commented
Maybe - is there any way to prevent it?
steve6375 commented
set cmd="set I=/A\ B/t.iso; echo !BAT > (md)0x300+1;echo -e set I=%I% >> (md)0x300+1; call (md)0x300+1; find --set-root %I%; map %I% (0xff);map --hook;chainloader (0xff);boot"
linux16 (hd0,1)/grub.exe --config-file=${cmd};
This will convert \\ to \ and seems to work.