Shellwords is a thin wrapper around the shellwords.pl package, which comes preinstalled with Perl. This module imports a single subroutine, shellwords(). The shellwords() routine parses lines of text and returns a set of tokens using the same rules that the Unix shell does for its command-line arguments. Tokens are separated by whitespace, and can be delimited by single or double quotes. The module also respects backslash escapes.

This commit is contained in:
David 2004-11-19 21:54:57 +00:00 committed by Thomas Klausner
parent 327ba0cbb8
commit 0cc12a2909
4 changed files with 33 additions and 0 deletions

7
p5-Text-Shellwords/DESCR Normal file
View file

@ -0,0 +1,7 @@
Shellwords is a thin wrapper around the shellwords.pl package, which
comes preinstalled with Perl. This module imports a single subroutine,
shellwords(). The shellwords() routine parses lines of text and
returns a set of tokens using the same rules that the Unix shell does
for its command-line arguments. Tokens are separated by whitespace,
and can be delimited by single or double quotes. The module also
respects backslash escapes.

View file

@ -0,0 +1,21 @@
# $NetBSD: Makefile,v 1.1.1.1 2004/11/19 21:54:57 daprice Exp $
#
DISTNAME= Text-Shellwords-1.02
PKGNAME= p5-${DISTNAME}
WRKSRC= ${WRKDIR}/Text-Shellwords-1.02
CATEGORIES= textproc
MASTER_SITES= http://www.cpan.org/authors/id/L/LD/LDS/
MAINTAINER= dprice@cs.nmsu.edu
HOMEPAGE= http://www.cpan.org/authors/id/L/LD/LDS/
COMMENT= Wrapper around shellwords.pl package
USE_BUILDLINK3= yes
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Text/Shellwords/.packlist
pre-build:
cd ${WRKSRC}; perl Makefile.PL
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

1
p5-Text-Shellwords/PLIST Normal file
View file

@ -0,0 +1 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/19 21:54:57 daprice Exp $

View file

@ -0,0 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2004/11/19 21:54:57 daprice Exp $
SHA1 (Text-Shellwords-1.02.tar.gz) = afedaff985555260e2736cb28906840d3cb15d3d
Size (Text-Shellwords-1.02.tar.gz) = 2162 bytes