Differentiate between shell and nushell example (#1427)
This commit is contained in:
parent
d530fea378
commit
c7acaa82cb
@ -1699,7 +1699,7 @@ saving the recipe body to a file and running it. This lets you write recipes in
|
|||||||
different languages:
|
different languages:
|
||||||
|
|
||||||
```just
|
```just
|
||||||
polyglot: python js perl sh ruby
|
polyglot: python js perl sh ruby nu
|
||||||
|
|
||||||
python:
|
python:
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
@ -1720,8 +1720,8 @@ sh:
|
|||||||
|
|
||||||
nu:
|
nu:
|
||||||
#!/usr/bin/env nu
|
#!/usr/bin/env nu
|
||||||
let hello = 'Yo'
|
let hello = 'Hola'
|
||||||
echo $"($hello) from a shell script!"
|
echo $"($hello) from a nushell script!"
|
||||||
|
|
||||||
ruby:
|
ruby:
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
@ -1735,6 +1735,7 @@ Greetings from JavaScript!
|
|||||||
Larry Wall says Hi!
|
Larry Wall says Hi!
|
||||||
Yo from a shell script!
|
Yo from a shell script!
|
||||||
Hello from ruby!
|
Hello from ruby!
|
||||||
|
Hola from a nushell script!
|
||||||
```
|
```
|
||||||
|
|
||||||
On Unix-like operating systems, including Linux and MacOS, shebang recipes are
|
On Unix-like operating systems, including Linux and MacOS, shebang recipes are
|
||||||
|
@ -1704,7 +1704,7 @@ sh:
|
|||||||
nu:
|
nu:
|
||||||
#!/usr/bin/env nu
|
#!/usr/bin/env nu
|
||||||
let hello = 'Yo'
|
let hello = 'Yo'
|
||||||
echo $"($hello) from a shell script!"
|
echo $"($hello) from a nushell script!"
|
||||||
|
|
||||||
ruby:
|
ruby:
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
Loading…
Reference in New Issue
Block a user