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*

3
  • This brings in variables such as $PWD and $_ - please see your own comments below. Commented Jun 15, 2014 at 22:17
  • @Caleb How about making typeset an alias for typeset -g? Commented Jun 16, 2014 at 11:20
  • @Gilles I thought of that after Stephanie suggested the function method, but I wasn't sure how to portably set the necessary alias expand options across shells. Maybe you could put that in your answer as a viable alternative to the function one I included. Commented Jun 16, 2014 at 11:28