On 11/28/25 4:38 PM, Frank Bures wrote:
On 2025-11-28 07:59, Michael D. Setzer II via users wrote:

Think the file you want to check is:
# cat /etc/default/grub
GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g'
/etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=false
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
GRUB_TIMEOUT_STYLE='menu'

I am confused.

Why are some parameters quoted with ", some with ' and some not at all?

Thanks
Frank



Because of shell (bash) syntax and a bit of inconsistency.
You have to use "", when there string is subject to substitution (the text inside "" is processed by the shell to change its content for example for variable substitution or
some regexp completion.
Otherwise ' are safer (no substitution). So GRUB_DISTRIBUTOR has to use "", but
GRUB_TERMINAL_OUTPUT, GRUB_CMDLINE_LINUX and GRUB_DISABLE_RECOVERY
could use '   '.  GRUB_TERMINAL_OUTPUT, GRUB_DISABLE_RECOVERY
and GRUB_TIMEOUT_STYLE could also use nothing as for GRUB_ENABLE_BLSCFG
since the string have no space nor substitution.

    Theo.

--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to