
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@aljex.com> wrote:
You don't need awk or anything but the same shell that's already executing the script.
GetVal () { DONE=false 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 (sh-compatible)?
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. Larry -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org