this post was submitted on 01 Dec 2024
407 points (99.5% liked)

Bash

763 readers
1 users here now

Talk about the Bash Shell and Bash scripting

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 3 days ago (2 children)

You may also like NuShell. It's been designed from the ground up to be an intuitive and convenient shell language.

[–] [email protected] 6 points 3 days ago (1 children)

Wait, the other shells were designed to be obtuse and inconvenient? /s

[–] [email protected] 2 points 2 days ago* (last edited 2 days ago)

Haha whoops, didn't want to imply that. I meant to say that it's intuitive for me, who finds bash syntax cryptic.

[–] [email protected] 1 points 3 days ago (1 children)

Can you tell me how to run a command and ignore an alias in NuShell? I don't really use nu but when i tried to write something in it, this was something that eluded me

[–] [email protected] 4 points 2 days ago (1 children)

Oh, if you want to avoid running a built in command like ls or cp and want to run the actual thing in /usr/bin, you prefix it with a ^, so eg ^cp -p.

[–] [email protected] 1 points 2 days ago* (last edited 2 days ago) (1 children)

Interesting. What does the ^ do in this situation?

And I just want to not respect an alias, so falls back to either builtin or path.

In zsh or bash I can prefix the command with the word command, or a backslash (directly before the command)