Re: Odd behaviour for GREP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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).


-- 
O Unicef Clearasil!
Gibberish and Drivel!
    -- "Bored of the Rings"
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux