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.

Required fields*

2
  • 2
    zsh can do this, but I'm fairly certain bash cannot. In zsh if you have your cursor on the parameter, and hit TAB, it'll expand it Commented Apr 25, 2013 at 13:58
  • I've since switched to zsh and it's great and does this, as you suggest... nice tip! I'll leave the original answer here, as it was a bash question. Commented Dec 10, 2014 at 20:17