From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: python@gentoo.org
Subject: [gentoo-python] [PATCHES] Use bash built-ins rather than external tools
Date: Tue, 23 Apr 2013 07:46:05 +0200 [thread overview]
Message-ID: <20130423074605.043d7456@pomiocik.lan> (raw)
[-- Attachment #1: Type: text/plain, Size: 449 bytes --]
Hi,
Two quick patches. They switch our eclasses to use bash built-ins
whenever possible to avoid the whole overhead of calling external tools
and piping variables to them to perform simple tasks.
First replaces the 'sed' call in _python_rewrite_shebang() with local
variable substitution to remove the CR.
Second replaces both uses of 'head -n 1' with simple 'read' call to
obtain the first line.
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]
next reply other threads:[~2013-04-23 5:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-23 5:46 Michał Górny [this message]
2013-04-23 5:46 ` [gentoo-python] [PATCH 1/2] Replace sed call with variable substitution Michał Górny
2013-04-23 5:46 ` [gentoo-python] [PATCH 2/2] Replace 'head -n 1' calls with 'read' built-in Michał Górny
2013-04-30 5:37 ` [gentoo-python] [PATCHES] Use bash built-ins rather than external tools Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130423074605.043d7456@pomiocik.lan \
--to=mgorny@gentoo.org \
--cc=gentoo-python@lists.gentoo.org \
--cc=python@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox