fish-shell/fish-shell — pull request #720 by dag (2013-05-08 22:21:55+00:00)
Title: Abstract getopt handling for GNU vs BSD

I'm hoping this will resolve #715, although I'm not on OSX so I can't easily test it. As an added bonus, the code is a bit less repetitive and this new function could be reused in future code. I also fixed a typo in the trap function; it was passing `-n type` to GNU getopt.