diff options
author | Brendan O'Dea <bod@debian.org> | 2013-08-14 22:10:05 +1000 |
---|---|---|
committer | Brendan O'Dea <bod@debian.org> | 2013-08-14 22:10:05 +1000 |
commit | 754a55d003cce581ee5cef3282039087091f00c1 (patch) | |
tree | 66f7387f2edeb3151a168fab0f0907791721cd27 /help2man.PL | |
parent | cde103669efb9caf769532eaad382565763244eb (diff) | |
download | help2man-754a55d003cce581ee5cef3282039087091f00c1.tar.gz |
Perform shell word splitting on option lines in include file
Diffstat (limited to 'help2man.PL')
-rwxr-xr-x | help2man.PL | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/help2man.PL b/help2man.PL index a2a3e19..a496b3c 100755 --- a/help2man.PL +++ b/help2man.PL @@ -16,7 +16,7 @@ use 5.008; use Config; use Getopt::Long; -my ($program, $version) = ('help2man', '1.43.3'); +my ($program, $version) = ('help2man', '1.44.1'); my %opts; die "Usage: $0 [--quiet] [--stdout] [--with-gettext] [--name] [--version]\n" @@ -83,6 +83,7 @@ print OUT <<'!NO!SUBS!'; use 5.008; use strict; use Getopt::Long; +use Text::ParseWords qw(shellwords); use Text::Tabs qw(expand); use POSIX qw(strftime setlocale LC_ALL); !NO!SUBS! @@ -340,7 +341,7 @@ while (@opt_include) # handle options if (/^-/) { - local @ARGV = split; + local @ARGV = shellwords $_; GetOptions %opt_def; } |