[OT] Re: Types, shells, echoes and other phenomena ?

Peter Garrett peter.garrett at optusnet.com.au
Wed Jul 5 16:28:02 UTC 2006


On Wed, 05 Jul 2006 15:27:16 +0200
Alan McKinnon <alan at linuxholdings.co.za> wrote:

Peter Garrett wrote:

> > So... I'm more confused than I was now :) Are there two "echoes" ? ( An
> > echo of an echo perhaps ? 
> 
> Yes, there are two echoes
> 
> When you run 'echo' the builtin will run
> If you run /bin/echo, the other one will run

Umm - OK ;-) ...
> 
> 'which echo' searches your $PATH looking for a command called echo

Uh-huh.... Yep I got that :)
> 
> So, in almost all cases, the file you can see right in front of you is
> not the one that get's run. Confusing isn't it? Welcome to The One True
> Way - Unix. :-)

$ sudo apt-get install bsdgames
.........
........
peter at prospero:~ $ wtf is true
true: true (1)             - do nothing, successfully

Interesting definition - I seem to be well on the way to the goal of Truth,
then ;-)

peter at prospero:~ $ wtf is unix
unix: unix (7)             - Sockets for local interprocess communication

(Someone missed their "English Communication" classes *grin* )

peter at prospero:~ $ wtf is echo
echo: echo (1)             - display a line of text
echo (3ncurses)      - curses input options

Well, the second definititon seems apt ( the "curses" part anyway ;-)

peter at prospero:~ $ wtf is linux
Gee...  I don't know what linux means...


    :-D

Peter




More information about the ubuntu-users mailing list