Philosophical 'which' Guru question

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

 



The default installation creates the alias:
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

OK, so if you issue the 'which' command, it pipes the output of 'alias'
into /usr/bin/which, which would be a list of aliases as arguments to the
/usr/bin/which command, right?  

I am assuming that the argument to the 'which' command would be appended
to the back end of the pipe, so 'which man' would expand to 
'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde man'

The rest of the default aliases are pretty much useful variations of 'ls',
but what is the point of this?

If I make an alias like 'foo=<print all of the man pages>' then wouldn't 
this kind of wipe out the value of the which command?

It would seem from my rookie view that the intent of this alias is to include `pwd` in the 'which' search. 

Why do they include every alias definition as input to /usr/bin/which?






      

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux