A GNU bash2 oddity -- was: Re: [NTLUG:Discuss] An Oddity (bug) inRedhat 7.1
Steve Baker
sjbaker1 at airmail.net
Mon Oct 29 21:13:09 CST 2001
Kenneth Loafman wrote:
>
> Thanks for the help on this. Looks like we want to find a new rpm for
> bash for 7.1, then everything will work. That's easier than going back
> through the full release process for our code. Will put in a bug report
> against our stuff to move away from the use of the system() call. [FYI
> - system() uses /bin/sh by default, so changing the behavior of system()
> may be more problematic].
I don't know any way to change 'system()' to call an alternative shell - but
you can easily reproduce what system() does using a 'fork()' followed by
an 'execle()' or one of it's close cousins - then you can call any shell
you want...or no shell at all.
--
NOTE: MY HOME PAGE HAS MOVED TO http://www.sjbaker.org - PLEASE
UPDATE YOUR LINKS AND BOOKMARKS ACCORDINGLY!
----------------------------- Steve Baker -------------------------------
Mail : <sjbaker1 at airmail.net> WorkMail: <sjbaker at link.com>
URLs : http://www.sjbaker.org
http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
http://prettypoly.sf.net http://freeglut.sf.net
http://toobular.sf.net http://lodestone.sf.net
More information about the Discuss
mailing list