Date: Wed, 6 Jun 2007 00:00:55 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 413 ************************************************** Tuesday 05 June 2007 Number 413 ************************************************** Subjects for today 1 Re: [Ux2BS] Which shell? : Andreas =?iso-8859-1?Q?B=FCning?= **= Email 1 ==========================** Date: Mon, 04 Jun 2007 20:47:14 +0200 From: Andreas =?iso-8859-1?Q?B=FCning?= Subject: Re: [Ux2BS] Which shell? John Small wrote: > I have found that the shell program seems to make a significant difference. For > example, there are shell programs where the TYPE > and/or TEST commands are broken. > > Is there a "best" or recommended shell program to use when building software? > (BASH, ASH, etc) ksh (pdksh-5.2.14-bin-2.zip) used to work for even the trickiest configure scripts while other shells used to fail in some very strange cases. > Is there a "best" or recommended version of this shell program to use? Depends on your personal taste. bash is quite popular as interactive shell. > Since file dates and times are seemingly meaningless (programs with differing > dates/times claiming to be the same version), is there a consistent way to > establish the version of the shell? One shell program I have has a $SH_VERSION > variable and another has $BASH_VERSION. Instead of having to discover these > variables for each shell I am hoping that there is "standard" way to find the > version of a shell program. (I have tried "sh --version" which doesn't work.) I don't know of any compatible way, unfortunately. > And once one has settled on a shell program, does one copy it to /bin/sh.exe so > that all those scripts with "#!/bin/sh" will use the > preferred shell? Or is there a better way to ensure that the chosen shell is > used? Most OS/2 shells will find sh.exe even if it's somewhere in your path. For advanced scripts it might be good idea to put sh.exe into /bin, though. Best regards, Andreas ----------- To unsubscribe yourself from this list, send the following message to list-request at unixos2.com unsubscribe ux2bs end