bash_minifier
bash_minifier copied to clipboard
Hello Vsevolod!! I'm using your great bash minifier regularly, but I ran into problems now that python2 is deprecated FOR REAL. I made the changes that were needed to run...
Example: #!/bin/bash while true do sleep 1 & done Gives this with syntax error: while true;do sleep 1&;done Should be without the ; before done because of the &: while...
Any example outputs?
Instructions on how to use this as well as the version of Python it is compatible with would be helpful.
Please consider adding the MIT license to the project. Thank you
I believe replacing newlines with ';' characters is not profitable; it does not reduce the byte-count of the output, and it impairs the ease of reading the output. Maybe on...
Minifying the following code ```bash if [[ $(ls) = '' ]] then echo 'Empty folder.' fi ``` generates this (invalid) bash script: ```bash if [[ $(ls)= '' ]];then echo 'Empty...
Minimal example: echo $'x\'' Actual line that alerted me to the issue: ```shell echo $'__status=$? eval \'return $__status || exit $__status\' 2>/dev/null' ```
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:...
Hi, I'm not sure if you are maintaining this script, but I've been finding it pretty useful. I've encountered a few issues, but only one which I could fix without...