grub4dos对变量名有什么要求吗?
daiaji opened this issue · 5 comments
daiaji commented
a1ive commented
grub4dos/README_GRUB4DOS_CN.txt
Lines 3755 to 3770 in 334e3aa
set [/p] [/a|/A] [/l|/u] [VARIABLE=[STRING]]
variable 指定环境变量名(最长8个字符)。
string 指定要指派给变量的一系列字符串(最长512个字符)。
daiaji commented
难顶,历史包袱太重了。
steve6375 commented
It is for compatibility with older grub4dos.
Behaviour is correct.
Otherwise older grub4dos batch files may fail.
daiaji commented
It is for compatibility with older grub4dos. Behaviour is correct. Otherwise older grub4dos batch files may fail.
But old scripts must never use variable names longer than eight characters (wasn't that a limitation all along?), and I don't think the compatibility makes any sense.
steve6375 commented
Older grub4dos had same behaviour, you could use 9 character variables without error.