3 ms·
It seems this "shell" is not designed to execute commands by default? "Native Shell Commands" section[0] actually says: > Nu allows you to access native shell
by theamk 5y ago
It seems this "shell" is not designed to execute commands by default? "Native Shell Commands" section[0] actually says:
> Nu allows you to access native shell programs by escaping the program name with ^.
> sc is a Windows CMD program that is used for communicating with the Service Control Manager
I'll argue that if you cannot enter the name of executable on the line directly and have it executed, it is not an actual "shell", but just some sort of interactive-oriented language.
Also author calling sc.exe "an Windows CMD program" makes me suspect that author is not very familiar with low-level shell concepts such as "terminal", "console", "PATH" and so on. A random sample of source code, which always hardcodes "sh" for shell files (! no bash for you, buddy !) seems to support this [1].
[0] https://www.nushell.sh/cookbook/native_shell_programs.html https://www.nushell.sh/cookbook/native_shell_programs.html
[1] https://github.com/nushell/nushell/blob/565be6aaefc60be154265d8951027c19769b02ae/crates/nu-plugin/src/plugin/mod.rs#L38 https://github.com/nushell/nushell/blob/565be6aaefc60be15426...
- 1MachineElf 5y agoIt sounds like you know more than I do. How would you compare this to PowerShell? Using a special method to call Windows command line programs is something both Nushell and PowerShell have in common.
- boudin 5y agoIt does run any command, but nushell has its own versions of a few commands, like "ls". For those commands, you can call the native ones by using ^