I think I confused that existing code in the script. I thought the script
did not have the double quotes and you were trying to add them.

Lets do trimming with:

| awk '{ print $1 }'

its more readable.

On 12/28/07, Oliver Schäfer <[EMAIL PROTECTED]> wrote:
>
> Hello Kristis,
>
> this was the output from my test script.
>
> It isn't blank, dependent on line counts I can produce 0, 1, 2...,
> but OUTPUT is a string with leading whitespace.
> It passes, because I do a trim before.
>
> On Dec 28, 2007, at 10:59 , Kristis Makris wrote:
>
> >
> >
> > On 12/28/07, Oliver Schäfer <[EMAIL PROTECTED]>
> > wrote:
> > On Dec 27, 2007, at 8:22 , Kristis Makris wrote:
> >
> > > Because the OUTPUT variable was left blank, hence the shell
> > executed:
> > >
> > > if [ = 1 ]; then
> > >    ...
> > >
> > > which is invalid.
> > >
> > > I suspect OUTPUT remained blank due to a problem with the 'wc'
> > > utility on the Mac. Can you look into it ?
> >
> > I've looked into it. OUTPUT isn't blank, it has leading whitespaces.
> > Script below produces:
> >
> > -----------
> > 1
> >         1
> > PASSED
> > -----------
> >
> > Then it passed. And it is not a problem. The testcase worked when
> > you just run it and copy pasted the output here.
> >
> >
> > Trimming the output works for me. Shall we apply trimming to all
> > 'install_glue_wrong_ip.sh' tests?
> >
> >
> > Trimming is irrelevant here.
> >
> > if [ 1 = 1 ]; then
> >
> > is the same as
> >
> > if [                      1    = 1 ]; then
> >
> > I still believe OUTPUT is blank.
> >
>
>
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to