runme icon indicating copy to clipboard operation
runme copied to clipboard

Better shell detection

Open mxsdev opened this issue 2 years ago • 0 comments

Currently, to detect the capabilities of a shell, we use the name of the executable (bash, sh, ksh, pwsh, etc). This is not really fool-proof since shells can be (and often are) aliased to other shells.

I looked into it, and unfortunately there does not seem to be a unified way to determine this information. Looks like every shell has a distinct way of indicating what kind of shell it is :(

mxsdev avatar Mar 08 '23 15:03 mxsdev