configs/releng/airootfs/root/.zlogin: use grep -a to ensure /proc/cmdline is treated as text

This protects against the case where /proc/cmdline contains garbage triggering grep to think it is a binary.
See e.g. https://bugs.archlinux.org/task/76468 for an example.
This commit is contained in:
nl6720 2022-11-12 11:30:19 +02:00
parent 0c351c5182
commit c49bcf927d
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# fix for screen readers
if grep -Fq 'accessibility=' /proc/cmdline &> /dev/null; then
if grep -Fqa 'accessibility=' /proc/cmdline &> /dev/null; then
setopt SINGLE_LINE_ZLE
fi