Red Hat RPM - Shell used by RPM

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat RPM > February 2005 > Shell used by RPM





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Shell used by RPM
davidcsnow@yahoo.com

2005-02-09, 5:56 pm

Hi there!

Im trying to use the following to pick up libraries of different
extensions in the .spec file:

<lib_name>.@(a|sl|so)

It works on some of our systems, but on others, Solaris and Linux, I
get the error: "syntax error at line 40: `(' unexpected Bad exit
status"

Im confused because using ksh (my default) it works:
$ ls -l libt*.@(a|sl|so)
-rwxrwxrwx 1 dsnow staff 225680 Nov 10 06:12 libtcpiptst.so*
-rwxrwxrwx 1 dsnow staff 446096 Nov 10 06:12 libtrlsnorm.so*

If however, I switch to the "sh" shell it does not work:
$ sh
[${PROMPTNAME}] -->>${PWD}<<--
$ ls -l libt*.@(a|sl|so)
syntax error: `(' unexpected
[${PROMPTNAME}] -->>${PWD}<<--
$

Is it possible when the Rpm is being created it is switching to a
different shell? Is there a way to tell what is responsible for this
change?

Any help would be much apreciated...

chers,
David.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com