#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    0

    “which” command difference


    What is the difference between (unix-system “which [name]) and which [name] commands.

    For example when I use the (unix-system “which visual_elite) command I get the following result:

    /home/vhdl/edatools/mentor/visualelite/VisualElite-4.2.1/Linux2.4/bin/visual_elite

    When I do the same on the command line using which visual_elite I get

    enidl-atlas-schur <76> # which visual_elite visual_elite is /home/vhdl/edatools/mentor/visualelite/VisualElite-4.2.1/visual_elite

    Why do I have this difference?

    Thanks,
    Mihaela
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    834
    Rep Power
    387

    Cool


    Both commands seem to produce the same result.
    Maybe one is executed from a certain directory and the other is an "alias" script on a different directory and the one executed will depend on the location of that directory in the PATH variable.

IMN logo majestic logo threadwatch logo seochat tools logo