On 7/12/25 12:18 AM, Francis Montagnac via users wrote:
Hi.

home user wrote:

Here's the real code fragment:
# 220 lines of code above here constructs string variables
# line1, line2, line3, begchars, and endchars.
line1="${begchars}${line1}"
line2="${begchars}   ${line2}"
line3="${begchars}   ${line3}"
echo "before if, endchars = "${endchars}"."

Beware: word splitting will be done here when expanding ${endchars}
because the " before it closes the first "

You should quote the inner ":

   echo "before if, endchars = \"${endchars}\"."

It doesn't look like there are supposed to be any quotes. It should be simply:
echo "before if, endchars = ${endchars}."
But it appears to be just a debugging statement anyway.

--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to