On Fri, Aug 17, 2018 at 12:17:26AM -0700, Todd Chester wrote:
Hi All,
grep and sed stopped working! I dnf re-installed them
both. No joy
Maybe your PATH and/or aliases settings are causing the wrong commands
to be chosen. Does
$ /usr/bin/echo "abc" | /usr/bin/grep "a"
work? If not, try strace to see whether any strange libraries are being
picked up:
$ /usr/bin/echo "abc" | strace -o /tmp/tr /usr/bin/grep "a"
look at /tmp/tr for open(), openat() etc entries:
$ ack '^open' /tmp/tr
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
Or maybe there's something funny in your environment; try running it with
all environment variables unset:
$ /usr/bin/echo "abc" | perl -e'%ENV = qw(); system "/usr/bin/grep
a"'
--
This is a great day for France!
-- Nixon at Charles De Gaulle's funeral