# Using Commands from Pluto

**URL:** <https://discourse.julialang.org/t/using-commands-from-pluto/138964>\
**Category:** New to Julia\
**Tags:** question, pluto, pluto-markdown\
**Created:** [August 21, 2026, 2:48am UTC](https://discourse.julialang.org/t/using-commands-from-pluto/138964 "2026-08-21T02:48:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Sevi](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Sevi](https://discourse.julialang.org/u/Sevi)\
**Post date:** [August 25, 2026, 8:10am UTC](https://discourse.julialang.org/t/using-commands-from-pluto/138964/4 "2026-08-25T08:10:00Z")

</div>

You’re very welcome. And I just realized that I forgot to mention that the command object constructed by Julia might need to be created a bit carefully when it contains special characters (like the `*` in your example). Julia actually doesn’t run the commands in any shell, but executes them directly. So the `*` probably doesn’t do what you would like it to.

E.g. if the command you want to run is

```julia
cmd = `fossil add harold/tiddlers/*`
run(cmd)

```

Julia first complains about the unquoted `*` (so you would need to write `\*`) but then also won’t do what you want, because the expansion of `*` to all the files in the directory is a feature of Bash (or other shells), called “globbing”. This is not done by `run` though, see e.g. here [Quoting in shell commands](https://discourse.julialang.org/t/quoting-in-shell-commands/6781) and the related discussions, e.g. here [Removing directory contents recursively](https://discourse.julialang.org/t/removing-directory-contents-recursively/128761).

Probably the easiest way around it is to explicitly run the command in a shell, e.g. with `bash -c '...'`

```julia
cmd = `bash -c 'fossil add harold/tiddlers/*'`
run(cmd)

```

This should then have the complete expected behavior of the shell you’re running it in (if it’s Bash). The downside is that you rely on Bash being installed on the system, but if not, it can be easily adapted.

---

_[View the full topic](https://discourse.julialang.org/t/using-commands-from-pluto/138964)._
