Hello there,
I have a strange behaviour from sort on lastest rawhide (of today) when I try to pipe rpm -qa | sort >> list
see screenshot http://flickr.com/photo_zoom.gne?id=376030395&size=o
Chitlesh
On 1/31/07, Chitlesh GOORAH chitlesh@fedoraproject.org wrote:
Hello there,
I have a strange behaviour from sort on lastest rawhide (of today) when I try to pipe rpm -qa | sort >> list
see screenshot http://flickr.com/photo_zoom.gne?id=376030395&size=o
Chitlesh
http://clunixchit.blogspot.com
-- fedora-test-list mailing list fedora-test-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-test-list
Sort works for me before and after the update yesterday, check your coreutils package.
Justin Conover justin.conover@gmail.com wrote:
["so<TAB>" finds sort, "rpm -qa | sort" doesn't]
Perhaps the "sort" is mistyped somehow (i.e., you snuck in a correction into the command name)? Perhaps the sort it is finding is not sort(1), i.e., /bin/sort (which(1) should answer that, try calling that one explicitly). Perhaps the PATH is borked? It could be a error message from the sort program being called (yes, I've seen my share of less than useful messages in my time). What shell are you using?
The package containing sort could be broken, try "rpm -Vf /bin/sort".
Try something like "sort /etc/passwd" or "/bin/sort /etc/passwd", if it fails, try
strace sort /etc/passwd 2> /tmp/SOMEPLACESAFE
or the same with /bin, and look at what it tries to do and where it fails. That should give some clue on what is going on here.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Horst H. von Brand wrote:
Justin Conover justin.conover@gmail.com wrote:
["so<TAB>" finds sort, "rpm -qa | sort" doesn't]
Perhaps the "sort" is mistyped somehow (i.e., you snuck in a correction into the command name)? Perhaps the sort it is finding is not sort(1), i.e., /bin/sort (which(1) should answer that, try calling that one explicitly). Perhaps the PATH is borked? It could be a error message from the sort program being called (yes, I've seen my share of less than useful messages in my time). What shell are you using?
The package containing sort could be broken, try "rpm -Vf /bin/sort".
Try something like "sort /etc/passwd" or "/bin/sort /etc/passwd", if it fails, try
strace sort /etc/passwd 2> /tmp/SOMEPLACESAFE
or the same with /bin, and look at what it tries to do and where it fails. That should give some clue on what is going on here.
I was wondering if possibly the <tab> expansion of programs uses the update database. if so it will find it until you run updatedb.
Do an 'ls /bin/so*' to find out if it is still there.
hth
Scott