Skip to content

bash: adjust example to read from file into array #2187

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

Merged
merged 2 commits into from
Jun 30, 2025

Conversation

kjetilho
Copy link
Contributor

  • use $() rather than deprecated ``
  • illustrate shortcut for builtin read of file without cat
  • don't imply this reads lines, it will split into words by default

perhaps the cheatsheet should have a section on IFS, but that's off-topic for this patch.

* use `$()` rather than deprecated `\`\``
* illustrate shortcut for builtin read of file without `cat`
* don't imply this reads lines, it will split into words by default

perhaps the cheatsheet should have a section on IFS, but that's off-topic
for this patch.
@rstacruz rstacruz merged commit b00d106 into rstacruz:master Jun 30, 2025
1 check passed
@rstacruz
Copy link
Owner

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants