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.

5
  • can you please provide some example of where and why this use in bash script Commented Feb 25, 2013 at 8:54
  • 1
    ...like I said, they are exactly the same. I don't understand how I can differentiate them if they are so. Commented Feb 25, 2013 at 10:04
  • 2
    Good one. Note that "obsolete" just appears in help typeset, not in man typeset. Commented Jul 22, 2014 at 8:05
  • 3
    @ChrisDown, you wouldn't happen to know why, exactly, typeset is considered obsolete? Commented Oct 5, 2016 at 2:40
  • 4
    In bash 4.4 and later, it is changed to synonym instead of obsolete. help typeset => A synonym for `declare'. See `help declare'. Commented Aug 20, 2021 at 11:14