Re: Parameter expansion fails when assigning a local variable

2009-06-28 Thread Herbert Xu
On Sun, Jun 28, 2009 at 11:39:16PM +0200, Cristian Ionescu-Idbohrn wrote: > > But wait a second. Shouldn't quotes '"' around $@ protect the whole $...@? > It does so in different other context. Why not here? The whole point of $@ is to retain field splitting within double quotes: 2.5.2 Spe

Re: Parameter expansion fails when assigning a local variable

2009-06-28 Thread Cristian Ionescu-Idbohrn
On Mon, 22 Jun 2009, Herbert Xu wrote: > Jesper Bengtsson wrote: > > > > I've found a problem with expanding $...@. > > If I declare a local variable and assigns the expanded positional > > parameters: > >local v="$@" > > It fails with something like: > >local: 20: \/: bad variabl

Re: malloctests.c

2009-06-28 Thread Nikola Vladov
Very sorry! I have a made a stupid mistake. Change the code of malloctest.c so: u = b-a; +x = buf + sizeof(buf); *--x = '\n'; Resume: include the line with sizeof after: u = b-a; Nikola -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majord...@