"Which" command

If I understand Kem’s code right, he wraps the string in single quote and I see Kimball’s code as double quote.

I tested both and they both work. Is there a “preferred” way?

sh.Execute "/bin/bash -lc 'which scan'"

or

sh.Execute "/bin/bash -lc ""which scan"""

I prefer to NOT double up quotes as it makes it harder to read, but that is dependant on the situation, as not all command will accept either/both type of quotes

https://forum.xojo.com/conversation/post/278785