Re: [hackers] [sxiv] Pass given file names to key-handler instead of real paths || Bert Münnich

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Sat, 7 Jan 2017 17:27:56 +0100

> diff --git a/exec/key-handler b/exec/key-handler
> index 03d7499..439ab2e 100644
> --- a/exec/key-handler
> +++ b/exec/key-handler
> _AT_@ -18,7 +18,7 @@ readonly TMPFILE="/tmp/sxiv.$$"
>
> rotate() {
> degree="$1"
> - while read file; do
> + tr '\n' \0' | xargs -0 realpath | sort | uniq | while read

Isn't there a missing ' here?
Received on Sat Jan 07 2017 - 17:27:56 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 07 2017 - 17:36:17 CET