Avoid variable in bash file-read

This commit is contained in:
Andrea Cardaci 2018-05-28 19:56:32 +02:00
parent 004b4bf828
commit 640956451b

View File

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