diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-12 15:35:40 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-12 15:35:40 -0800 |
commit | acbb6fb8e2a12c9071b9729e4033cdb2a3d39c07 (patch) | |
tree | 115a57b958c9bfdfadff05cb48d9459aaaba15c7 /share/functions/type.fish | |
parent | 11639619274d531429afb5a5895897da6d92ba41 (diff) |
Make umask work on OS X
Diffstat (limited to 'share/functions/type.fish')
-rw-r--r-- | share/functions/type.fish | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/share/functions/type.fish b/share/functions/type.fish index 881bac04..94c77efa 100644 --- a/share/functions/type.fish +++ b/share/functions/type.fish @@ -5,23 +5,15 @@ function type --description "Print the type of a command" set -l res 1 set -l mode normal set -l selection all - - set -l new_getopt - if not getopt -T > /dev/null - set new_getopt 1 - else - set new_getopt '' - end - + # # Get options # set -l options set -l shortopt tpPafh - set -l longopt - if test $new_getopt + if not getopt -T > /dev/null # GNU getopt - set longopt type,path,force-path,all,no-functions,help + set -l longopt type,path,force-path,all,no-functions,help set options -o $shortopt -l $longopt -- # Verify options if not getopt -n type $options $argv >/dev/null |