difference in behaviour of bash-2.0 from bash-1.14.7

difference in behaviour of bash-2.0 from bash-1.14.7

Post by Mohit Aro » Wed, 01 Jan 1997 04:00:00



Hi,
        I'm using bash-2.0 on osf1 alpha. The following function definition
behaves differently in bash-2.0 than in bash-1.14.7 :

        ech ()
        {

        }

The behaviour of sh and bash-1.14.7 is the same with respect to the above
function defintion. Giving the command:
        bash$ type ech
produces different results for the two versions of bash. For bash-1.4.7, the
output is:
        ech is a function
        ech ()
        {

        }

while for bash-2.0, the output is:
        ech is a function
        ech ()
        {

        }

Can someone tell me why this difference is there in the behaviour of the two
versions ? (In case you're wondering about the use of the function ech - I use
it in the following manner with bash-1.14.7 :
            bash$ a=foo
            bash$ echo $a
                  foo
            bash$ ech a
                  foo

--

Department of Computer Science          smail:  6500 South Main #310  
Rice University                                 Houston, TX-77030    
phone: (713) 527-8750 (x2265)                   phone:  (713) 630-9221        

 
 
 

difference in behaviour of bash-2.0 from bash-1.14.7

Post by Icarus Spar » Fri, 03 Jan 1997 04:00:00




>Hi,
>    I'm using bash-2.0 on osf1 alpha. The following function definition
>behaves differently in bash-2.0 than in bash-1.14.7 :

>    ech ()
>        {

>        }

[snip]

Quote:>Can someone tell me why this difference is there in the behaviour of the two
>versions ? (In case you're wondering about the use of the function ech - I use
>it in the following manner with bash-1.14.7 :
>        bash$ a=foo
>        bash$ echo $a
>              foo
>        bash$ ech a
>              foo

If you read the documentation, then you will see that $"..." is new in
bash-2.0