Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:


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?

share|improve this question
What is (unix-system)? Some kind of Lisp or Scheme function? More details needed! – Mikel Apr 7 '11 at 10:46

You have this difference because the PATH environment variable is different on the "command line" than it is in the lisp-like language you are using.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.