It is my understanding that when invoking spawn "string command"
in xmonad
, the argument "string command"
is actually passed to /bin/sh
.
Is there a way to change this behavior ?
More specifically, is it possible to make the instance of the interpreter called by spawn
aware of some predefined environment variables (typically, SSH_AUTH_SOCK
and SSH_AGENT_PID
)?
Of course, it is always possible to resort to spawn "$VARIABLE=stuff; export $VARIABLE; string command"
, but it bothers me that the variabe should be created and exported each time.