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

bash: refresh page: add here-doc example and parameter expansion examples #210

Conversation

EmilyGraceSeville7cf
Copy link
Contributor

closes #95

@EmilyGraceSeville7cf EmilyGraceSeville7cf changed the title bash: refresh page: add here-doc example bash: refresh page: add here-doc example and parameter expansion examples Dec 5, 2022
bash Outdated

# To redirect block of text with variables being substituted and other expansions performed to some command:
<command> << DELIMITER
<contents>
Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend removing the indent. I understand that it improves readability, but it can be confusing to users, because the indent will become part of the contents.

Copy link
Contributor

@edgester edgester left a comment

Choose a reason for hiding this comment

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

bash variables use curly braces, not angle brackets. For example echo ${variable}

@EmilyGraceSeville7cf
Copy link
Contributor Author

EmilyGraceSeville7cf commented Dec 18, 2022

bash variables use curly braces, not angle brackets. For example echo ${variable}

Yeah, but it's not a bash syntax, it's placeholder syntax that used over bash syntax. :) I suggested to stick to shell syntax only to @chrisallenlane, but he declined this idea.

@edgester
Copy link
Contributor

@EmilySeville7cfg Thanks for clarifying. I think the placeholder syntax is confusing in this case, but @chrisallenlane has the final word.

@EmilyGraceSeville7cf
Copy link
Contributor Author

I am closing this PR to make project maintainer pay attention for it.

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.

[Request] Heredoc and parameter expansion
2 participants