From d4f333019d32e4423933eb6698dca75f5be062c6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 27 Dec 2018 03:18:52 -0500 Subject: tools/shman.sh: Don't treat "\" as escape char in cmd args --- diff --git a/tools/shman.sh b/tools/shman.sh index 8e4cfdc..953965a 100755 --- a/tools/shman.sh +++ b/tools/shman.sh @@ -103,7 +103,7 @@ gen_doc_func() sect_desc=".SH DESCRIPTION${LF}${args}" ;; 'option') - read opt optarg desc <<-EOF + read -r opt optarg desc <<-EOF ${args} EOF if ${first_opt}; then @@ -119,7 +119,7 @@ gen_doc_func() sect_opts="${sect_opts}${desc}${LF}" ;; 'operand') - read opd req desc <<-EOF + read -r opd req desc <<-EOF ${args} EOF if ${first_opd}; then -- cgit v0.9.1