Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ENC 'echo' script template to prevent expansion
Currently the template script for creating the 'echo' script used for ENC data wraps the data provided by the actual ENC in `cat <<-EOF`, which causes the enclosed data to be variable-expanded, escape characters (like double backslashes) to be replaced with their concrete representations, etc. This breaks things horribly if you have (e.g.) JSON data with escaped strings (`"C:\\Windows"`), which will be processed and output without those escapes (`"C:\Windows"`), which is invalid, and definitely not what the user intended under any circumstance. Using the 'quoted' variant of shell heredocs (`cat <<-'EOF'`) stops this expansion.
- Loading branch information