pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Ruby builds - Sun assembler intolerant of spaces



Hello,

On Mon, Apr 30, 2012 at 1:04 AM, Takahiro Kambe 
<taca%back-street.net@localhost> wrote:

> COUTFLAG came from configure script:
>
> : ${OUTFLAG='-o '}
> : ${COUTFLAG=${OUTFLAG}}
>
> If you execute this sciprt (test.sh), what would be output?
>
> ----------------------------------------------------------------
> #!/bin/sh
>
> : ${OUTFLAG='-o '}
> : ${COUTFLAG=${OUTFLAG}}
> echo "|${OUTFLAG}|"
> echo "|${COUTFLAG}|"
> ----------------------------------------------------------------
>
> Expected output is:
>
> % sh test.sh
> |-o |
> |-o |
>
> But you might be see without space.
>
> And what about execute with ksh?
>
> % ksh test.sh

bash-2.05# sh test.sh
|-o |
|-o |
bash-2.05# bash test.sh
|-o |
|-o |
bash-2.05# ksh test.sh
|-o |
|-o |
bash-2.05# pdksh test.sh
|-o |
|-o |

S.


Home | Main Index | Thread Index | Old Index