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

**URL:** <https://discourse.julialang.org/t/success-does-not-give-same-result-as-running-in-terminal/1958>\
**Category:** General Usage\
**Created:** [February 7, 2017, 5:17pm UTC](https://discourse.julialang.org/t/success-does-not-give-same-result-as-running-in-terminal/1958 "2017-02-07T17:17:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tawheeler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tawheeler/32/17657_2.png) [@tawheeler](https://discourse.julialang.org/u/tawheeler)\
**Post date:** [February 7, 2017, 5:17pm UTC](https://discourse.julialang.org/t/success-does-not-give-same-result-as-running-in-terminal/1958/1 "2017-02-07T17:17:55Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [February 7, 2017, 5:36pm UTC](https://discourse.julialang.org/t/success-does-not-give-same-result-as-running-in-terminal/1958/2 "2017-02-07T17:36:15Z")

</div>

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