jack23912 / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

Cannot run a batch file from menu.lst if path length is more than 32 characters #125

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In a menu.lst file

/boot_files/grub/autolinuxme.bat  
/boot_files/grub/autolinuxmen.bat
/boot_files/grub/autolinuxmenu.bat

title test
call /boot_files/grub/autolinuxme.bat  fred doris
call /boot_files/grub/autolinuxmen.bat   fred doris
call /boot_files/grub/autolinuxmenu.bat   fred doris
/boot_files/grub/autolinuxme.bat  fred doris
/boot_files/grub/autolinuxmen.bat   fred doris
/boot_files/grub/autolinuxmenu.bat   fred doris
root ()

2.
in each .bat file, add
!BAT
echo %0
pause

What is the expected output? What do you see instead?
first 4 lines runs OK
next two lines do not >> 'no such command'

Is there a path length limitation of 32 characters?

If use e to edit the menu, the paths are wrong and fred and doris are missing - 
e.g.

/boot_files/grub/autolinuxme.bat  
/boot_files/grub/autolinuxmen.ba
/boot_files/grub/autolinuxmenu.b

What version of the product are you using? On what operating system?
March 03 045c

Please provide any additional information below.

Original issue reported on code.google.com by Steve6375 on 25 Mar 2013 at 10:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
in stage2.c
if (!(info & 4) && ((c & 0x80) || pos > 31))    /* bit 2 for argument */

Thanks!
try this

Original comment by chenall.cn on 28 Mar 2013 at 1:06

Attachments:

GoogleCodeExporter commented 8 years ago
This works too!
Can this and ;; be combined into one version please?
Thanks
Steve

Original comment by Steve6375 on 28 Mar 2013 at 11:19

GoogleCodeExporter commented 8 years ago
this is the newest,with both issue 125 and 126's patch

Original comment by chenall.cn on 28 Mar 2013 at 12:08