What do you mean by alias? An alias defined in your shell, or a file alias that points to the command?
I haven’t looked, but I’m guessing the commands are run with the Bourne shell. That would explain both problems.
That’s the “Bourne Again” shell. The Bourne shell is `/bin/sh`.
In Terminal, run `exec /bin/sh`.
Do any of those commands work there?
I seem to remember hearing long ago that `sh` was just `bash` on OS X.
In OS X, the sh executable is really bash, but bash run in a special mode by calling it as sh.The reason none of your bash aliases work, 1.61803, is explained in this section from the bash man page:If bash is invoked with the name sh, it tries to mimic the startupbehavior of historical versions of sh as closely as possible, whileconforming to the POSIX standard as well.
Quicksilver is just being a good OS X citizen and following the rules for running non-interactive shells by using /bin/sh.
For example, if you open an AppleScript and run do shell script "echo $0", you'll note that AppleScript also uses sh, and that if you try to use a bash alias in an AppleScript, that will fail, too.
Probably your best bet, 1.61803, is to follow the advice I gave another user here: https://github.com/quicksilver/Quicksilver/issues/1164
using terms from application "Quıcĸsıɩⅴεʀ"
on process text theCommand
do shell script "/bin/bash -lic " & quoted form of theCommand
end process text
end using terms from
--
You received this message because you are subscribed to the Google Groups "Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacktree-quicks...@googlegroups.com.
To post to this group, send email to blacktree-...@googlegroups.com.
Visit this group at http://groups.google.com/group/blacktree-quicksilver?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Would it be possible/reasonable to provide another action equivalent to "run this command the same way as if I'd typed it into Terminal using my default shell"?
do shell script "$SHELL -lic " & quoted form of theCommand
--
Oh, interesting, $SHELL *does* work from the QS environment. But yes, that does work (does the -i matter?), and it does seem more robust than anything I've figured out.
do shell script "your command here"