Success() does not give same result as running in terminal


#1

If I run type ls in a bash terminal I get:

ls is aliased to `ls --color=auto’

If I run success(type ls) in Julia I get:

ERROR: could not spawn type ls: no such file or directory (ENOENT)

Am I doing something wrong?


Using * as a wildcard in backtick commands
#2

type is a shell built-in so you can’t use it in Julia. Similarly, you can’t use or examine shell aliases either.