Bash-minifier icon indicating copy to clipboard operation
Bash-minifier copied to clipboard

what is this script doing apart from removing coments?

Open rubo77 opened this issue 6 years ago • 7 comments

It seems like the same solution would be solved with this script, so far: https://github.com/rubo77/ffm-packages/blob/2018.1.x/ffffm-button-bind/gluonShellDiet.sh

basically just remove coments with

sed '/^\s*\#[^!].*/d; /^\s*\#$/d' $1

rubo77 avatar Oct 18 '19 19:10 rubo77

It also removes newlines and replaces them with ;, which breaks a lot of stuff.

eepykate avatar Aug 20 '20 03:08 eepykate

@6gk what do you mean? my command? or this repository?

rubo77 avatar Aug 25 '20 19:08 rubo77

This repository. @rubo77

I tried on a rather complicated project of mine and it broke so bad due to it.

eepykate avatar Aug 26 '20 02:08 eepykate

So did you try my sed command instead? It should work fine

rubo77 avatar Aug 26 '20 07:08 rubo77

I know standard utils well enough, I don't really have a need for this either.

eepykate avatar Aug 26 '20 18:08 eepykate

why dont u minify the script using ur minify script ? :))

shadichy avatar Apr 26 '22 12:04 shadichy

از همگی بخاطر نظری که دادید سپاس گذارم

mugoee avatar Apr 09 '24 03:04 mugoee