We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input script:
#!/usr/bin/env bash case "$PATH" in thing) echo "Shouldn't match this." ;; esac
Resulting minified code:
case "$PATH" in thing);echo "Shouldn't match this.";;;esac
Bash's error:
bash: test.min: line 1: syntax error near unexpected token `;' bash: test.min: line 1: `case "$PATH" in thing);echo "Shouldn't match this.";;;esac'
There shouldn't be a semicolon after the close parenthesis. Also, the three ;;; in a row cause a problem. Here's the fixed version:
;;;
case "$PATH" in thing) echo "Shouldn't match this." ;; esac
Also, you might need to treat ;& and ;;& because they parse similarly to ;;.
;&
;;&
;;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Input script:
Resulting minified code:
Bash's error:
There shouldn't be a semicolon after the close parenthesis. Also, the three
;;;
in a row cause a problem. Here's the fixed version:Also, you might need to treat
;&
and;;&
because they parse similarly to;;
.The text was updated successfully, but these errors were encountered: