grub icon indicating copy to clipboard operation
grub copied to clipboard

Issue using wildcard * in filespecs

Open steve6375 opened this issue 4 years ago • 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?

steve6375 avatar May 21 '20 12:05 steve6375

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

a1ive avatar May 21 '20 13:05 a1ive

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.

steve6375 avatar May 21 '20 16:05 steve6375