I am trying to create a variable called $SPIM
that holds the result of which spim
but it instead runs the spim
which is not my intention.
➜ 10 git:(main) ✗ echo "$(which spim)"
/usr/bin/spim
➜ 10 git:(main) ✗ $SPIM=$(echo "$(which spim)")
SPIM Version 8.0 of January 8, 2010
Copyright 1990-2010, James R. Larus.
All Rights Reserved.
See the file README for a full copyright notice.
Loaded: /usr/lib/spim/exceptions.s
(spim) exit