Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between shell and nushell example #1427

Merged
merged 5 commits into from
Dec 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ saving the recipe body to a file and running it. This lets you write recipes in
different languages:

```just
polyglot: python js perl sh ruby
polyglot: python js perl sh ruby nu

python:
#!/usr/bin/env python3
Expand All @@ -1720,8 +1720,8 @@ sh:

nu:
#!/usr/bin/env nu
let hello = 'Yo'
echo $"($hello) from a shell script!"
let hello = 'Hola'
echo $"($hello) from a nushell script!"

ruby:
#!/usr/bin/env ruby
Expand All @@ -1735,6 +1735,7 @@ Greetings from JavaScript!
Larry Wall says Hi!
Yo from a shell script!
Hello from ruby!
Hola from a nushell script!
```

On Unix-like operating systems, including Linux and MacOS, shebang recipes are
Expand Down
2 changes: 1 addition & 1 deletion README.中文.md
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ sh:
nu:
#!/usr/bin/env nu
let hello = 'Yo'
echo $"($hello) from a shell script!"
echo $"($hello) from a nushell script!"

ruby:
#!/usr/bin/env ruby
Expand Down