How to set Lispworks's "shell" command to use ssh
Lispworks uses the editor:*shell-shell* variable to decide what to run. As near as I can tell from brief experimentation, it expects a full path and passes it no arguments. So if you want to pass arguments I guess you either have to put them in the environment or embed them in the command itself. For simplicity I do the latter (at least, for the moment; this is not what you'd call a "mature solution", just something I wrote off the cuff just now). So say you want to ssh to somewhere. Create a shell script called "ssh-to":
#!/bin/zsh
dest=${0##*ssh-to-}
exec ssh $dest
Symlink ssh-to-somewhere to it:
% ls -l ssh* -rwxr-xr-x 1 you you 46 May 26 08:34 ssh-to* lrwxrwxrwx 1 you you 6 May 26 08:34 ssh-to-somewhere -> ssh-to*Setf editor:*shell-shell* appropriately:
CL-USER 12 > (setf editor:*shell-shell* "/home/lmc/bin/ssh-to-somewhere") "/home/lmc/bin/ssh-to-somewhere"Start a shell: Works->Tools->Shell And it runs ssh-to-somewhere, which runs "ssh somewhere", and there you are. This is kind of a brute-force-and-ignorance solution and hopefully I'll figure out a better way eventually.