Skip to content

Conversation

@clach04
Copy link
Contributor

@clach04 clach04 commented Aug 24, 2024

Updated echo sample for "greeting" to be portable for both Unix/Linux and Windows.

The Microsoft Windows CMD echo treats both single and double quotes as values (not delimiters).

Updated echo sample for "greeting" to be portable for both Unix/Linux and Windows.

The Microsoft Windows CMD echo treats both single and double quotes as values (not delimiters).
@clach04 clach04 mentioned this pull request Aug 24, 2024
```bash
$ mkdir sample; cd sample
$ echo 'Hello, world!' > greeting
$ echo Hello, world!> greeting
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$ echo Hello, world!> greeting
$ echo Hello, world\!> greeting

I think that on some shells, having an unescaped bang like this might be interpreted as a history reference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants