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

why is grep behaving this way ?



I have logname command give me this output
[bhaskerv@cvsrep01 ~]$ logname
bhaskerv
 
and say i execute this command
 
[bhaskerv@cvsrep01 ~]$ echo `logname`
bhaskerv
 
till this it is all fine
 
BUT
[bhaskerv@cvsrep01 ~]$ who | grep `logname`
logname: no login name
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
 
 
is there anything i am doing wrong ?
 
 
 

Reply to: