Re: [PATCH 3/24] ver_linux: gcc.patch

2015-10-03 Thread Richard Weinberger
Am 03.10.2015 um 18:07 schrieb Alexander Kapshuk: > The main objective I endeavoured to attain was to come up with an > algorithm that would possibly result in a uniform output that would > work across as many distros as possbile. The current implementation > seems to struggle with that. What that

Re: [PATCH 3/24] ver_linux: gcc.patch

2015-10-03 Thread Alexander Kapshuk
On Sat, Oct 3, 2015 at 6:07 PM, Richard Weinberger wrote: > On Sat, Oct 3, 2015 at 3:07 PM, Alexander Kapshuk > wrote: >> Using 'awk' here is a bit of an overkill. Should the output of 'gcc >> -dumpversion' vary on another disto, or change overtime, it may no longer >> be available at field 1, as

Re: [PATCH 3/24] ver_linux: gcc.patch

2015-10-03 Thread Richard Weinberger
On Sat, Oct 3, 2015 at 3:07 PM, Alexander Kapshuk wrote: > Using 'awk' here is a bit of an overkill. Should the output of 'gcc > -dumpversion' vary on another disto, or change overtime, it may no longer > be available at field 1, as relied on by the current implementation. > I believe 'sed' offers

[PATCH 3/24] ver_linux: gcc.patch

2015-10-03 Thread Alexander Kapshuk
Using 'awk' here is a bit of an overkill. Should the output of 'gcc -dumpversion' vary on another disto, or change overtime, it may no longer be available at field 1, as relied on by the current implementation. I believe 'sed' offers greater flexibility here in terms of processing varying output as