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
  • @Stephane the quotes you added and the ones your removed are both optional, in this case. I would recommend always having them. Commented Nov 22, 2013 at 10:42
  • 1
    No, the quotes around [2-9] are not optional. It will cause it to fail with csh, tcsh or zsh if there's no file matching that pattern in the current directory, or worse with other shells (not fish), it will fail badly and more obscurely if there are files matching that pattern in the current directory. You're right that quotes around % are necessary for the fish shell. single quotes are better than double quotes as in your earlier version since that means it also works with rc and es. As it is written now, it would work with any shell (on systems where GNU seq is installed). Commented Nov 22, 2013 at 11:01
  • @stephane Sorry I missed those cases where it did not work, this is why I recommend using quotes where ever they may be needed. Commented Nov 22, 2013 at 11:38