Mailinglist Archive: opensuse-factory (883 mails)

< Previous Next >
Re: grep, cut, and all that (Re: [opensuse-factory] Status: Beta)
On 05/29/2012 03:33 PM, Jan Engelhardt wrote:
On Tuesday 2012-05-29 21:48, Claudio Freire wrote:

On Tue, May 29, 2012 at 4:44 PM, Brian K. White<brian@xxxxxxxxx> wrote:
You don't need awk or anything but the same shell that's already executing
the script.

GetVal () {
until $DONE ; do
IFS=: read KEY VAL junk || DONE=:
[[ "$KEY" == "$1" ]]&& { echo $VAL ; DONE=: ; }
done< $2

Isn't that bash-specific? Don't spec scripts have to be more generic

This was not inside rpm, if I followed the thread.

And if it was, it would only be a "%define _buildshell /bin/bash" away
to force bash for %prep, %build, %check& %install.

This was inside the extremely limited shell that is inside Kiwi. Very few commands are available.


To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >