Firefox Panel Icon Loads Swiftfox

Karl Auer kauer at biplane.com.au
Sun Aug 12 13:15:01 UTC 2007


On Sun, 2007-08-12 at 06:03 -0700, Leonard Chatagnier wrote:
> >  What do you get from:
> > ls -l $(which firefox)
> ls -l $(firefox) loaded another 2 instances of firefox

Not "ls -l $(firefox)" - "ls -l $(which firefox)". Big difference.

> Didn't know the the ls command could load a program.???

It can't. The shell looks at "$(which firefox)" and runs the stuff
between the parentheses, then provides the output as a parameter to "ls
-l". You can get the same effect with backticks: "ls -l `which
firefox`".

Regards, K

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)                   +61-2-64957160 (h)
http://www.biplane.com.au/~kauer/                  +61-428-957160 (mob)





More information about the ubuntu-users mailing list