On Sun, Oct 02, 2016 at 09:15:36PM +1100, Philip Rhoades wrote:
On F25 x86_64 as user "fedora" with default environment I get:
grep Cock application.html.erb
Provider for the National Disability Insurance Trial Site in Kwinana/ Cockburn</a>
grep Cock *
grep: *: No such file or directory
grep Cock a*
grep: a*: No such file or directory
grep Cock *erb
grep: *erb: No such file or directory
The same commands for root work as expected . . but I cannot see anything in .bash[rc | _profile] that would make a difference - I can send the diffs if people think I am missing something . .
This isn't an issue with grep, but with your shell not expanding wildcards. If grep Cock *
gives you
grep: *: No such file or directory
then I'd expect
echo *
to give you
*
If indeed the shell isn't expanding wildcards (but does for root), then I'd suspect the directory isn't readable by the current user (i.e. it's --x or -wx rather than r-x or rwx).