From 674d8f965022f14538d03eb043987f604f87c7d5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 12 Jan 2017 20:44:02 +0530 Subject: [PATCH] Use process substitution to avoid an explicit temporary file --- count-lines-of-code | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/count-lines-of-code b/count-lines-of-code index 0aa2817e8..aba98cc0f 100755 --- a/count-lines-of-code +++ b/count-lines-of-code @@ -1,5 +1,2 @@ -#!/bin/sh -E=/tmp/exclude-from-cloc -echo -e 'kitty/wcwidth9.h\nkitty/unicode-data.h\nkitty/gl.h\nkitty/glfw.c\nkitty/glfw.h' > $E -cloc --exclude-list-file=$E kitty -rm $E +#!/bin/bash +cloc --exclude-list-file <(echo -e 'kitty/wcwidth9.h\nkitty/unicode-data.h\nkitty/gl.h\nkitty/glfw.c\nkitty/glfw.h') kitty