Skip to main content
Topic: grep warning (Read 983 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

grep warning

When i boot artix openrc.  I have a warning:
grep: warning: stray \ before -
grep: warning: stray \ before -

Re: grep warning

Reply #1
When i boot artix openrc.  I have a warning:
grep: warning: stray \ before -
grep: warning: stray \ before -

The solution is quite simple:

Code: [Select]
sudo -i
sed -i 's/\\-\\-noadjfile/\\--noadjfile/g' /etc/init.d/hwclock
exit

After reboot, the inconvenience is gone.
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

 

Re: grep warning

Reply #2
The solution is quite simple:

Code: [Select]
sudo -i
sed -i 's/\\-\\-noadjfile/\\--noadjfile/g' /etc/init.d/hwclock
exit

After reboot, the inconvenience is gone.

there is a scripting error in the hwclock init file?

Re: grep warning

Reply #3
there is a scripting error in the hwclock init file?

Yes. It is located in the openrc source code.
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "


Re: grep warning

Reply #5
It
Shouldn't the package be fixed then?  Is it our package?

It will be a good thing, as it is annoying having it.

FYI there are some solutions, in another forum I've found an alternative writing, that is told to be more compatible:

Code: [Select]
grep -q -e "--noadjfile";

I've implemented it and now Artix boot without complain.

Regards

Carlo D.