a1ive/grub

Issue using wildcard * in filespecs

steve6375 opened this issue · 2 comments

I have been trying using -f with wildcards in some .sh batch files with * and have been seeing errors or it just does not work sometimes.
In this case I was testing my own version of loop_detect.sh from grubfm.
There seems to be a problem with memory maybe ??
image
I see you use wildcards in loop_detect.sh so I assumed they should work.
This is UEFI64 boot to grubfm.
On first run it works, but during testing .sh files multiple times, it stops working and I have to reboot.
I have seen this behaviour on many different versions of grubfm so I don't think it is version specific.
It happens on both NTFS and FAT32 volumes so it is not specific to one filesystem.
Note that specifying the exact filename always works, so it is something to do with using wildcards.
Have you ever come across this?

a1ive commented

-f "(hd0,2)/.cfg" and -f (hd0,2)/.cfg (no quotes) are not the same.
path with quotes will not use wildcard.

OK, my bad test in console, but I used code where I have not used quotes and it did not work until a reboot.
There is something odd about using wildcards sometimes.