Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

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

1 Answer

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
add comment

Your Answer

 
discard

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