On Fri, 25 Jun 2021 19:12:14 +0000, Seymour J Metz wrote: >LF=Line Feed, which *bsd, Linux and Unix use as a line ending string (DOS and >OS/2 use CRLF). > And z/OS Unix System Services uses neither of those conventions.
>The code you show is really an expression, using $() to swallow a new line. >It's a cute shellism, but it's not really a string literal. > And such an expression, coded across multiple lines, evaluates to a string. I leave it to the pedants to dispute whether it conforms to the POSIX definition of "word". >________________________________________ >From: Paul Gilmartin >Sent: Friday, June 25, 2021 11:23 AM > >On Fri, 25 Jun 2021 14:14:41 +0000, Seymour J Metz wrote: > >>Here documents create strings containing embedded new lines, which *ix >>systems encode as LF. They do not allow strings not containing embedded new >>lines to be split across multiple lines of the source code. >> >"LF"? FSVO *ix. How about: > >cat <<EOF >foo$( : >)bar >EOF -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN