# How to enter \\n with backtick syntax?

**URL:** <https://discourse.julialang.org/t/how-to-enter-n-with-backtick-syntax/47505>\
**Category:** New to Julia\
**Created:** [September 29, 2020, 7:02pm UTC](https://discourse.julialang.org/t/how-to-enter-n-with-backtick-syntax/47505 "2020-09-29T19:02:08Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [September 30, 2020, 1:51pm UTC](https://discourse.julialang.org/t/how-to-enter-n-with-backtick-syntax/47505/21 "2020-09-30T13:51:43Z")

</div>

I made a small post describing [how to do a documentation PR directly by the github interface (no fork required) here](https://discourse.julialang.org/t/use-and-documentation-of-and/39882/7).

Because some questions arose, [I explained a little better in this post](https://discourse.julialang.org/t/test-for-existence-of-a-variable/42845/28) and, continuing in that thread, [I made a screenshot too](https://discourse.julialang.org/t/test-for-existence-of-a-variable/42845/33).

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [September 30, 2020, 2:08pm UTC](https://discourse.julialang.org/t/how-to-enter-n-with-backtick-syntax/47505/22 "2020-09-30T14:08:58Z")

</div>

> [@sijo](#):
>
> Is it a bug in Julia or a mistake in the documentation?

Again, I would say bug. But opening an issue would be best.

---

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [September 30, 2020, 3:55pm UTC](https://discourse.julialang.org/t/how-to-enter-n-with-backtick-syntax/47505/23 "2020-09-30T15:55:03Z")

</div>

Issue filed at [https://github.com/JuliaLang/julia/issues/37817](https://github.com/JuliaLang/julia/issues/37817) .

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [September 30, 2020, 4:04pm UTC](https://discourse.julialang.org/t/how-to-enter-n-with-backtick-syntax/47505/24 "2020-09-30T16:04:13Z")

</div>

I don’t know about documented, your question, but `echo` will not be portable to Windows. I’m not on Windows, do newlines as part of a command translate to there?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 30, 2020, 5:57pm UTC](https://discourse.julialang.org/t/how-to-enter-n-with-backtick-syntax/47505/25 "2020-09-30T17:57:07Z")

</div>

> [@sijo](#):
>
> But it doesn’t work!

It works in backticks:

```julia
julia> `ls $1+2`
`ls 1+2`

```

I’m not sure why `"ls $1+2"` is different.

---

<div class="post-metadata">

**Author:** ![cce](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cce/32/460_2.png) [@cce](https://discourse.julialang.org/u/cce)\
**Post date:** [December 6, 2020, 2:08pm UTC](https://discourse.julialang.org/t/how-to-enter-n-with-backtick-syntax/47505/26 "2020-12-06T14:08:09Z")

</div>

So, I think `"ls $1+2"` is probably a programming error. I’d say the problem is with backticks. I think the interpretation should be `$` could have a symbol following or should require `()`. However, I’m not sure the part about permitting arbitrary expressions after is a great idea.

Anyway, I made another ticket for a subset of this.  
[https://github.com/JuliaLang/julia/issues/38734](https://github.com/JuliaLang/julia/issues/38734)

[Previous page](https://discourse.julialang.org/t/how-to-enter-n-with-backtick-syntax/47505.md?page=1)
