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.

2
  • 1
    Incidentally, assignments with expansion (as you show here) is one place where quotes are optional... Commented Dec 7, 2013 at 18:59
  • While this is good advice, and a lack of quotes around a substitution is probably the cause of the problem (I didn't sift through the meandering, badly formatted, hard-to-follow question to see precisely where the problem is), you've picked one place where the quotes are not necessary. You don't need double quotes in places where the shell expects a single word, such as in an assignment or after case. Commented Dec 8, 2013 at 22:16