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*

4
  • 3
    "This works, though, only on ksh-like shells." Are you saying I have to verify the shell before running this? Hmm... Commented Aug 17, 2016 at 20:17
  • @jpaugh, the lists must be supported by the shell sourcing this code, which is not the case for dash, yash etc. Normally, if you are using bash, zsh, ksh, whatever - you shouldn't care about such things. Commented Aug 18, 2016 at 0:50
  • So you're counting bash as "ksh-like"? Got it. That makes more sense Commented Aug 18, 2016 at 1:38
  • @jpaugh, well, that's what I meant because ksh's set of features is mostly a subset of bash's features (haven't checked this thoroughly though). Commented Aug 18, 2016 at 2:32