Bug 212906
Summary: | PATCH: awk + grep vs. sed in /usr/share/cluster/ip.sh | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Cluster Suite | Reporter: | Satoru SATOH <ssato> | ||||
Component: | rgmanager | Assignee: | Marek Grac <mgrac> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Cluster QE <mspqa-list> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 4 | CC: | cluster-maint | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-11-28 17:31:55 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Satoru SATOH
2006-10-30 02:42:27 UTC
Created attachment 139691 [details]
grep+awk -> sed patch
I say 'to-MAY-toes', you say 'to-MAH-toes'. I'd like to know a clear benefit before I change currently-working code in a stable release. It spawns one less process. However, if it's performance we cared about, we could use bash shell text parsing to accomplish the same things... Does it fix a bug? Note: I'm cool with putting this in RHCS5 for GA, and backporting to RHCS4 later. Excuse me not to give any response for a while. I'm not sure there are any clear benefits actually. My patch is just another way to do that and I just thought that less program size and less dependency is better for HA softwares. devel NAK for rhel4. Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. I'm also against changing working code because there are no real benefits. resources) Yes, grep + awk is surely slower than sed (2 vs 1 process) but for input as small as we have from ethtool/ifconfig/ip/... it doesn't matter at all. dependencies) You have to have installed awk anyway clean code) Such simple awk commands are easily read by non-awk users but you are right that this combination should not be used in new RA. |