4 ;# require 'shellwords.pl';
5 ;# @words = &shellwords($line);
7 ;# @words = &shellwords(@lines);
9 ;# @words = &shellwords; # defaults to $_ (and clobbers it)
13 local($_) = join('', @_) if @_;
14 local(@words,$snippet,$field);
20 use re 'taint'; # leave strings tainted
21 if (s/^"(([^"\\]|\\.)*)"//) {
22 ($snippet = $1) =~ s#\\(.)#$1#g;
25 die "Unmatched double quote: $_\n";
27 elsif (s/^'(([^'\\]|\\.)*)'//) {
28 ($snippet = $1) =~ s#\\(.)#$1#g;
31 die "Unmatched single quote: $_\n";
36 elsif (s/^([^\s\\'"]+)//) {