Disallow backslashes in bash file-read

This commit is contained in:
Andrea Cardaci 2018-05-28 19:51:31 +02:00
parent c3710d7396
commit 89985be143

View File

@ -48,5 +48,5 @@ functions:
- description: It trims trailing newlines. - description: It trims trailing newlines.
code: | code: |
export LFILE=file_to_read export LFILE=file_to_read
bash -c $'read -d \x04 a < "$LFILE"; echo "$a"' bash -c $'read -r -d \x04 a < "$LFILE"; echo "$a"'
--- ---