Re: [Slackbuilds-users] Possible typo in python3.SlackBuild

2015-01-15 Thread Audrius Kažukauskas
On Sun, 2015-01-11 at 11:37:56 +1000, Christoph Willing wrote: > If we're looking for something more robust, yet generic, then my previously > proposed solution: > PYVER=${VERSION%.*} > is not so great if a version string has extra fields i.e. VERSION=3.4.2.5 > would become 3.4.2 (rather than t

Re: [Slackbuilds-users] Possible typo in python3.SlackBuild

2015-01-10 Thread Christoph Willing
On 01/11/2015 01:14 AM, Jim Diamond wrote: On Fri, Jan 9, 2015 at 20:45 (+0200), Audrius Kažukauskas wrote: On Fri, 2015-01-09 at 13:34:03 -0400, Jim Diamond wrote: On Fri, Jan 9, 2015 at 17:09 (+1000), Christoph Willing wrote: Its not stated there but I presume a blank offset defaults

Re: [Slackbuilds-users] Possible typo in python3.SlackBuild

2015-01-10 Thread Jim Diamond
On Fri, Jan 9, 2015 at 20:45 (+0200), Audrius Kažukauskas wrote: > On Fri, 2015-01-09 at 13:34:03 -0400, Jim Diamond wrote: >> On Fri, Jan 9, 2015 at 17:09 (+1000), Christoph Willing wrote: >>> Its not stated there but I presume a blank offset defaults it to 0, >>> therefore for a VERSION of 3

Re: [Slackbuilds-users] Possible typo in python3.SlackBuild

2015-01-09 Thread Christoph Willing
On 01/10/2015 04:45 AM, Audrius Kažukauskas wrote: On Fri, 2015-01-09 at 13:34:03 -0400, Jim Diamond wrote: On Fri, Jan 9, 2015 at 17:09 (+1000), Christoph Willing wrote: On 01/09/2015 04:35 PM, Niki Kovacs wrote: Hi, I just noticed a strange line in python3.SlackBuild: PYVER=${VERSI

Re: [Slackbuilds-users] Possible typo in python3.SlackBuild

2015-01-09 Thread Audrius Kažukauskas
On Fri, 2015-01-09 at 13:34:03 -0400, Jim Diamond wrote: > On Fri, Jan 9, 2015 at 17:09 (+1000), Christoph Willing wrote: > > > On 01/09/2015 04:35 PM, Niki Kovacs wrote: > >>Hi, > > >>I just noticed a strange line in python3.SlackBuild: > > >>PYVER=${VERSION::3} > > >>I only know this kind of

Re: [Slackbuilds-users] Possible typo in python3.SlackBuild

2015-01-09 Thread Jim Diamond
On Fri, Jan 9, 2015 at 17:09 (+1000), Christoph Willing wrote: > On 01/09/2015 04:35 PM, Niki Kovacs wrote: >>Hi, >>I just noticed a strange line in python3.SlackBuild: >>PYVER=${VERSION::3} >>I only know this kind of notation: >>PYVER=${VERSION:-3} >>Is this an error or some special syntax

Re: [Slackbuilds-users] Possible typo in python3.SlackBuild

2015-01-08 Thread Christoph Willing
On 01/09/2015 04:35 PM, Niki Kovacs wrote: Hi, I just noticed a strange line in python3.SlackBuild: PYVER=${VERSION::3} I only know this kind of notation: PYVER=${VERSION:-3} Is this an error or some special syntax I don't know? From the Parameter Expansion section of the bash manpage:

[Slackbuilds-users] Possible typo in python3.SlackBuild

2015-01-08 Thread Niki Kovacs
Hi, I just noticed a strange line in python3.SlackBuild: PYVER=${VERSION::3} I only know this kind of notation: PYVER=${VERSION:-3} Is this an error or some special syntax I don't know? Cheers, Niki -- Microlinux - Solutions informatiques 100% Linux et logiciels libres 7, place de l'église