Use process substitution to avoid an explicit temporary file

This commit is contained in:
Kovid Goyal 2017-01-12 20:44:02 +05:30
parent 8fc07485f4
commit 674d8f9650

View File

@ -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