From: Eric Wong <e@80x24.org>
To: <spew@80x24.org>
Cc: EW <e@80x24.org>
Subject: [PATCH] xap_helper_cxx: force awk mode split
Date: Thu, 7 Dec 2023 22:57:38 +0000 [thread overview]
Message-ID: <20231207225738.23993-1-e@80x24.org> (raw)
From: EW <e@80x24.org>
\0
Nothing after NUL
---
lib/PublicInbox/XapHelperCxx.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/XapHelperCxx.pm b/lib/PublicInbox/XapHelperCxx.pm
index 1250c964..48849d00 100644
--- a/lib/PublicInbox/XapHelperCxx.pm
+++ b/lib/PublicInbox/XapHelperCxx.pm
@@ -86,7 +86,7 @@ sub build () {
# distributed packages.
$^O eq 'netbsd' and $fl =~ s/(\A|[ \t])\-L([^ \t]+)([ \t]|\z)/
"$1-L$2 -Wl,-rpath=$2$3"/egsx;
- my @xflags = split(/\s+/, "$fl $xflags");
+ my @xflags = split(' ', "$fl $xflags"); # ' ' for awk-mode
my @cflags = grep(!/\A-(?:Wl|l|L)/, @xflags);
run_die([$cxx, '-c', "$prog.cpp", @cflags]);
run_die([$cxx, '-o', "$prog.tmp", "$prog.o", @xflags]);
--
next reply other threads:[~2023-12-07 22:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-07 22:57 Eric Wong [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-07 21:37 [PATCH] xap_helper_cxx: force awk mode split Eric Wong
2023-12-07 21:36 Eric Wong
2023-12-07 21:36 Eric Wong
2023-12-07 21:34 Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231207225738.23993-1-e@80x24.org \
--to=e@80x24.org \
--cc=spew@80x24.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).