summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-24 01:19:03 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-24 01:19:03 (EDT)
commit7a4695c2881c1d353ff24766ad7b971d4602c00e (patch)
tree65e2ff4dd6600ac6fc44fa293ddc7578fb39988e /src
parent9db89ede8f76b1d5e0e7b9ef908c318faf86327a (diff)
parse_control(): Protect cat cmd from operands beginning with "-"
Diffstat (limited to 'src')
-rw-r--r--src/control.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control.sh b/src/control.sh
index d06cdbd..bb0c0e6 100644
--- a/src/control.sh
+++ b/src/control.sh
@@ -146,7 +146,7 @@ parse_control()
esac
done <<-EOF
- $(cat "${file}")
+ $(cat -- "${file}")
EOF
# The first blank line above triggers the paragraph end code to