gregwebs / Shelly.hs

Haskell shell scripting
BSD 3-Clause "New" or "Revised" License
416 stars 88 forks source link

More robust show_command #229

Closed chrismwendt closed 1 year ago

chrismwendt commented 1 year ago

Previously, there were bugs like hey 'there would be left as is and not escaped.

This will escape hey 'there as "hey 'there". It handles special characters and only quotes when necessary.

chrismwendt commented 1 year ago

Fixed, added tests ✅

chrismwendt commented 1 year ago

Added a changelog entry for a patch release, since show_command was pretty broken before this PR. I doubt anyone is relying on it.

andreasabel commented 1 year ago

Release candidate at: https://hackage.haskell.org/package/shelly-1.12.0.1/candidate

andreasabel commented 1 year ago

Squashed some commits. Can be merged as-is now.

andreasabel commented 1 year ago

Released! https://hackage.haskell.org/package/shelly-1.12.0.1