Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Meaning of the dollar sign and ${var} explained #854

Closed
wants to merge 1 commit into from
Closed

Meaning of the dollar sign and ${var} explained #854

wants to merge 1 commit into from

Conversation

kpalamartchouk
Copy link

Some words on why dollar sign is needed when expanding shell variable. ${variable} notation is also mentioned.

@rgaiacs
Copy link

rgaiacs commented Nov 11, 2014

@kpalamartchouk We are breaking the repo (see #759 for more information). Could you recreate this pull request against https://github.com/wking/swc-modular-shell. Thanks.

@rgaiacs rgaiacs closed this Nov 11, 2014
`filename` as a variable name and substitute its value on its place,
but not as some text or external command.
When using variables it is also possible to put the names into curly braces:
`$filename` is equivalent to `${filename}`. You may find this notation in
Copy link

Choose a reason for hiding this comment

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

The curly braces notation is useful since $filename is different than ${file}name.

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

Successfully merging this pull request may close these issues.

2 participants