Shell used by RPM
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat RPM > Shell used by RPM




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Shell used by RPM  
davidcsnow@yahoo.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-09-05 10: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.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:16 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register