You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this pattern, we can detect whether GNU getopt is available and use it:
getopt -T > /dev/null
if [ $? -eq 4 ]; then
# GNU enhanced getopt is available
set -- `getopt --long help,output:,version --options ho:v -- "$@"`
else
# Original getopt is available
set -- `getopt ho:v "$@"`
fi
The text was updated successfully, but these errors were encountered:
Using this pattern, we can detect whether GNU getopt is available and use it:
The text was updated successfully, but these errors were encountered: