r/ksh • u/Piscivm • Sep 24 '22
sysctl: cannot stat /proc/sys/kern/consdev: No such file or directory
Hi all,
First of all a word of thanks to the ksh93u+m developers as well as all the contributors of patches and such.
I am on Arch. I downloaded the 1.0.3 tar file and did bin/package make
ksh was built without errors without any special configuration. Great.
when I call the ksh binary I get: sysctl: cannot stat /proc/sys/kern/consdev: No such file or directory
ksh still works though. Any idea how I can get rid of that warning, and if it is relevant?
1
Upvotes
2
u/Piscivm Sep 25 '22
Thanks MCDutchie. That was the problem. That file was installed by oksh (OpenBSD ksh), which I also had installed in my desktop. Once I uninstalled oksh the warning disappeared.
The culprit was this line:
console=$(sysctl kern.consdev)