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:
sudo-enabled:
- code: |
LFILE=file_to_read
sudo sort "$LFILE"
sudo sort -m "$LFILE"
suid-enabled:
- code: |
LFILE=file_to_read
./sort "$LFILE"
./sort -m "$LFILE"
file-read:
- code: |
LFILE=file_to_read
sort "$LFILE"
sort -m "$LFILE"
---