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 |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
[gentoo-python] [PATCH 1/2] Replace sed call with variable substitution. | "Michał Górny" <mgorny@g.o> |
[gentoo-python] [PATCH 2/2] Replace 'head -n 1' calls with 'read' built-in. | "Michał Górny" <mgorny@g.o> |
Re: [gentoo-python] [PATCHES] Use bash built-ins rather than external tools | "Michał Górny" <mgorny@g.o> |