You are not logged in.

#1 2012-02-15 22:08:50

vwyodajl
Member
Registered: 2012-01-21
Posts: 183

[SOLVED]grep in bashrc not found in root user

Crap nothing to see here when I went to post the contents of the bashrc from root I noticed the PS1 had a call to grep in that manner and could have sworn I verified before posting.

Mods delete if you wish sorry for the noise and wasted space !!!


I have a couple things in my bashrc for root and a day or two ago I noticed when I sudo su to root it now says

bash: /bin/grep: No such file or directory

Nothing in my bashrc calls grep in any manner other than just "grep" there are no calls to it by a full path nor the path its stating. Any ideas on what I might have done? Grep still works as root of course and the error does not show up as my regular user and the part in bashrc for both users are the same that have the grep call in it.

Thanks for your time and help.

edit: the dawning on myself im a tard tongue and man you guys on the forums are the fastest on the net I think, SO AWESOME to me smile

Last edited by vwyodajl (2012-02-15 22:13:24)

Offline

#2 2012-02-15 22:11:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]grep in bashrc not found in root user

[karol@black ~]$ which grep
/usr/bin/grep

Please read pacman's output:

...
[2012-02-08 17:58] ATTENTION UDEV:
[2012-02-08 17:58] ----------
[2012-02-08 17:58] udev-compat has been removed, and should be uninstalled.
[2012-02-08 17:58]  --
[2012-02-08 17:58] Framebuffers are no longer blacklisted by default.
[2012-02-08 17:58]  --
[2012-02-08 17:58] binaries moved from /sbin to /usr/bin
[2012-02-08 17:58] ---------------
[2012-02-08 17:58] upgraded udev (180-1 -> 181-2)

Last edited by karol (2012-02-15 22:13:27)

Offline

#3 2012-02-15 22:11:41

6ng4n
Member
Registered: 2012-02-07
Posts: 84

Re: [SOLVED]grep in bashrc not found in root user

grep is in /usr/bin .Please check ~/.bashrc aliases can contain a wrong path.

Offline

#4 2012-02-15 22:14:47

vwyodajl
Member
Registered: 2012-01-21
Posts: 183

Re: [SOLVED]grep in bashrc not found in root user

@6ng4n
karol is correct in the location smile

Last edited by vwyodajl (2012-02-15 22:15:06)

Offline

#5 2012-02-15 22:15:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]grep in bashrc not found in root user

There's e.g. https://bugs.archlinux.org/task/28413 so you might get a symlink soon.

Offline

Board footer

Powered by FluxBB