Fix sort file-read to avoid actually sorting lines

Thanks to @dubek.
This commit is contained in:
Andrea Cardaci 2018-06-03 10:01:46 +02:00
parent b6dfe3e083
commit 42997519e1

View File

@ -1,17 +1,15 @@
--- ---
description: |
The read file content is corrupted by being sorted.
functions: functions:
sudo-enabled: sudo-enabled:
- code: | - code: |
LFILE=file_to_read LFILE=file_to_read
sudo sort "$LFILE" sudo sort -m "$LFILE"
suid-enabled: suid-enabled:
- code: | - code: |
LFILE=file_to_read LFILE=file_to_read
./sort "$LFILE" ./sort -m "$LFILE"
file-read: file-read:
- code: | - code: |
LFILE=file_to_read LFILE=file_to_read
sort "$LFILE" sort -m "$LFILE"
--- ---