Skip to content

Quoting on echo to Shell Init Files #17

@craigsadler

Description

@craigsadler

It appears the quoting might be a different to allow the HOMEBREW_PREFIX variable to properly resolve to its contents in the tee command:

echo 'export PATH="${HOMEBREW_PREFIX}/opt/openssl/bin:$PATH"'

results in shell files getting:

export PATH="${HOMEBREW_PREFIX}/opt/openssl/bin:$PATH"

While,

echo 'export PATH='"${HOMEBREW_PREFIX}/opt/openssl/bin:$PATH"

Does what is intended, i.e. shell files get a good PATH assignment.

export PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions