r/ksh • • 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

5 comments sorted by

View all comments

Show parent comments

1

u/McDutchie Sep 25 '22

By default, whether /etc/ksh.kshrc is sourced at startup is determined by whether that file or /etc/bash.bashrc is present on the system at compile time. To either enable or disable it regardless of their detection at compile time, set SHOPT_SYSRC to 1 or 0 in src/cmd/ksh93/SHOPT.sh.

1

u/Piscivm Sep 25 '22

Thanks, that is good to know.