It is currently Tue, 30 Nov 2021 17:09:07 GMT



 
Author Message
 Bourne Shell compatible shells (was: Request: which shells)
In article <1qmdl8$...@news.cs.tu-berlin.de> w...@cs.tu-berlin.de (Wolfgang

Me too :-)

I also had some problems with smail and make depend. Don't remember how I
fixed them.

I also detected two other problems with bash 1.12:

 - it wouldn't run the Configure script of trn 3.0 (beta). This will be
   fixed in bash 1.13, but the Configure script has already changed so that
   it works with bash 1.12 too.

 - it does something wrong with passing $* from other shell scripts which are
   included by the `.' command. I detected this when INN 1.4 rejected all
   newgroup messages.

The pdksh I have (4.7) is absolutely unuseable for running Configure
scripts. Try the following script with pdksh 4.7 with two or more parameters:

        #!/bin/ksh
        echo "$@"

Zsh gives also problems with Configure scripts.

I use tcsh as interactive shell and bash as /bin/sh substitute because bash
is the more-or-less Bourne shell compatible shell which runs most of the
(Configure) scripts I have.  Running Configure scripts (sometimes >100Kb) is
a real good test for testing /bin/sh compatibility of shells.

Arjan

--
Arjan de Vet                             <Arjan.de....@adv.win.tue.nl> (home)
Eindhoven University of Technology, the Netherlands <de...@win.tue.nl> (work)



 Wed, 04 Oct 1995 08:00:15 GMT   
 Bourne Shell compatible shells (was: Request: which shells)
In article <1qnhaf...@adv.win.tue.nl> de...@adv.win.tue.nl (Arjan de Vet)
writes:

The bug has been fixed in pdksh 4.8. Maybe I'll give pdksh another try...

Arjan

--
Arjan de Vet                             <Arjan.de....@adv.win.tue.nl> (home)
Eindhoven University of Technology, the Netherlands <de...@win.tue.nl> (work)



 Wed, 04 Oct 1995 18:58:43 GMT   
 Bourne Shell compatible shells (was: Request: which shells)
In article <1qnhaf...@adv.win.tue.nl> de...@adv.win.tue.nl (Arjan de Vet) writes:

I will make my pdksh 4.8 available in source code when I get time. I
fixed two bugs. There is still one bug hard to fix. That is

if [ -s foo -a "`cat foo`" = "FOO" ]; then
....

If foo doesn't exist, pdksh still do cat foo since it evaluates
`cat foo` first before everything else.

H.J.



 Thu, 05 Oct 1995 00:20:47 GMT   
 Bourne Shell compatible shells (was: Request: which shells)

hl> I will make my pdksh 4.8 available in source code when I get time. I
hl> fixed two bugs. There is still one bug hard to fix. That is

hl> if [ -s foo -a "`cat foo`" = "FOO" ]; then
hl> ....

hl> If foo doesn't exist, pdksh still do cat foo since it evaluates
hl> `cat foo` first before everything else.

I wouldn't call this a bug. In fact, I would call the behaviour you
desire a bug. If it doesn't parse the backquotes in the second
argument if the first one is false, how could this ever be compatible
with an external /bin/test ?

Bas.



 Sun, 08 Oct 1995 05:54:18 GMT   
 
   [ 4 post ] 

Similar Threads

1. Light Speed Bourne Shell! (was: Bourne shell tricks)

2. getting environment variables from c shell using Bourne shell

3. Changing from the Bourne shell to C-shell

4. Changing from the Bourne shell to C-shell

5. Bourne Shell vs C-Shell

6. Process history under C-shell and Bourne shell

7. Bourne shell script to determine users shell

8. Bourne shell script affecting current shell with arguments

9. Trying to run nohup from Korn shell but getting Bourne shell errors


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software