Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11865

Defect in manual section "Here Strings"

From <dietmar.schindler@manroland-web.com>
Newsgroups gnu.bash.bug
Subject Defect in manual section "Here Strings"
Date 2015-11-11 08:00 +0000
Message-ID <mailman.2113.1447231064.7904.bug-bash@gnu.org> (permalink)

Show all headers | View raw


In the section https://www.gnu.org/software/bash/manual/bash.html#Here-Strings there is no mention (as far as I can see, it doesn't follow from the documented expansions etc.) that the result is terminated with a newline (see e. g. od <<<''). This puzzles users and leads to speculation - see e. g. http://stackoverflow.com/questions/33245568/why-does-bash-always-add-a-newline-when-expanding-here-strings - on correctness, dependability and intent of the behavior. To clarify it, I suggest to change the last sentence from

        The result is supplied as a single string to the command on its standard input.

to

        The result with a newline appended is supplied as a single string to the command on its standard input.
--
Best regards,
Dietmar Schindler

________________________________
manroland web systems GmbH -- Managing Director: Joern Gosse
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No.: 26816 -- VAT: DE281389840

Confidentiality note:
This eMail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this eMail in error, then please delete this eMail.

! Please consider your environmental responsibility before printing this eMail !
________________________________

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Defect in manual section "Here Strings" <dietmar.schindler@manroland-web.com> - 2015-11-11 08:00 +0000

csiph-web