On Thu, Jan 27, 2022 at 09:49:02AM -0800, skybuck2000 wrote:

> Script test.sh runs badly in git bash:
> 
> echo Let's start
> 
> and 
> 
> echo (convert blabla)
[...]

In POSIX-compatible shells, of which Bash is one example, apostrophes delimit
a string—making what's between them a single "word" in the shell's terms,—and
( ... ) start a subshell interpreting the text between as a script to execute
in that subshell.

If memory serves me right, you—for some reason which is beyond me—expected
`echo` to behave as a built-in command of command.com and cmd.exe.

If you need Windows batch file syntax in your scripts, execute them using
the Windows shell, cmd.exe.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20220127182427.jcnefa7uf6ebs246%40carbon.

Reply via email to