Dave,
On 2016-10-02 23:10, Dave Mitchell wrote:
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).
Well I went back to have a look and the directory is indeed owned by
Fedora:
drwxr-sr-x 2 fedora fedora 4096 Oct 2 21:00 .
but now all the greps work as expected! I'm not sure what is going on -
on that remote VM I always log in as root via SSL and use:
su - fedora
to do things - but now everything is behaving properly . . I would
prefer a problem still needing to be resolved than having no problem but
not understanding what the temporary problem was . .
Thanks anyway,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil@xxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx