Re: [hackers] [farbfeld] 2ff: use trap to remove temporary file || FRIGN

From: <ssd_AT_mailless.org>
Date: Mon, 19 Sep 2016 23:39:33 +0200

* git_AT_suckless.org 2016-09-19 22:52
> 2ff: use trap to remove temporary file
>
> This also frees us from having to store the return value somewhere.

I would almost favor the following (despite the long line) and get rid
of the `if`:

        [...]
                ;;
        esac || (printf "%s: failed to convert from %s\n" "$0" "$FORMAT" >&2; exit 1)


the whole `$?` business is mostly wasteful if logic operators are
available.

cheers
--s
Received on Mon Sep 19 2016 - 23:39:33 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 19 2016 - 23:48:14 CEST