Gentoo Archives: gentoo-python

From: "Michał Górny" <mgorny@g.o>
To: gentoo-python@l.g.o
Cc: python@g.o
Subject: [gentoo-python] [PATCHES] Use bash built-ins rather than external tools
Date: Tue, 23 Apr 2013 05:44:52
Message-Id: 20130423074605.043d7456@pomiocik.lan
1 Hi,
2
3 Two quick patches. They switch our eclasses to use bash built-ins
4 whenever possible to avoid the whole overhead of calling external tools
5 and piping variables to them to perform simple tasks.
6
7 First replaces the 'sed' call in _python_rewrite_shebang() with local
8 variable substitution to remove the CR.
9
10 Second replaces both uses of 'head -n 1' with simple 'read' call to
11 obtain the first line.
12
13 --
14 Best regards,
15 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies