summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/shellwords.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl/lib/shellwords.pl')
-rw-r--r--Master/tlpkg/tlperl/lib/shellwords.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl/lib/shellwords.pl b/Master/tlpkg/tlperl/lib/shellwords.pl
new file mode 100644
index 00000000000..b24ce963ad9
--- /dev/null
+++ b/Master/tlpkg/tlperl/lib/shellwords.pl
@@ -0,0 +1,17 @@
+;# This legacy library is deprecated and will be removed in a future
+;# release of perl.
+;#
+;# shellwords.pl
+;#
+;# Usage:
+;# require 'shellwords.pl';
+;# @words = shellwords($line);
+;# or
+;# @words = shellwords(@lines);
+;# or
+;# @words = shellwords(); # defaults to $_ (and clobbers it)
+
+require Text::ParseWords;
+*shellwords = \&Text::ParseWords::old_shellwords;
+
+1;