Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Does this happen for all variable expansions? Commented Jan 7, 2015 at 13:40
  • 3
    No, it's not the way bash expands variables. It's the way bash parsing the command. Commented Jan 7, 2015 at 13:46
  • But the strace command is interesting. Didn't know it before. Commented Jan 7, 2015 at 13:56
  • yes this is the way variables gets expanded in bash. gnu.org/software/bash/manual/html_node/… give you details on how shell expansion happens. Commented Jan 7, 2015 at 13:59