Hi Piotr,
I guess some program has set an environment variable that is trying to
set ":DO" to something.
I remember GNU screen sets a TERMCAP shell variable, which is set in
this multi-line ormat :----
TERMCAP=SC|vt100|VT 100/ANSI X3.64 virtual terminal:\
:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
<---------- snipped text from the rest of the variable value ----------->
This might be causing the problem.
Are you running nbuild within a GNU screen window?
If so, please try running nbuild outside of screen, and see if it runs fine.
Else, if you want to run in it screen, you could also try doing the
following.
I think clear_env() is not handling the multi-line env variable properly.
clear_env() tries to unset all env vars set before, and uses the "sed"
piece to isolate the name of the env var from the shell env var setting.
This is where it messes up in a multi-line format of env var.
It replaces everything starting from "=" on a line, and thus gets the
name of the env var.
On the line ":DO=..." above, ":DO" is hence isolated as the env var wrongly.
You can also try putting "grep '^[A-Z]'" between "env" and "sed ..." in
the clear_env() command.
That should isolate the correct env vars.
Please let me know how it goes.
Thanks & Regards,
Sambit
Piotr Jasiukajtis / estibi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I know I should use SXDE but ...
> I upgraded SXCE89 with my BFU.
> ON and SUNWonbld is compiled and installed from latest onnv-gate.
>
> # uname -srv
> SunOS 5.11 ON-20080529-d
>
> I have also installed Sun Studio 11.
>
>
>
> root at devhost1 /export/ohac/ohac# /opt/scbld/bin/nbuild -Da
> /opt/scbld/bin/nbuild[8]: :DO: is not an identifier
>
> I added some 'echo "debug"' to the /opt/scbld/bin/nbuild and i have
> found there is a problem with Clear_env function:
>
>
> Clear_env() {
> echo "debug clear_env 1"
> for v in Nothing $(/bin/env | sed -ne 's/=.*//p'); do
> echo "debug clear_env 2"
> case "$v" in
>
> MAKE|MAKEFLAGS|MAKETOOLS|HOME|LOGNAME|USER|OS|TEAMWARE|OPTHOME|WEBBASE)
> ;;
> [TV]_FLAG)
> ;;
> *)
> echo "unset $v"
> unset $v;;
> esac
> done
> echo "debug clear_env exit"
> }
>
>
>
> root at devhost1 /export/ohac/ohac# /opt/scbld/bin/nbuild
> debug16
> debug1234
> debug before 1
> debug before 2
> debug clear_env 1
> debug clear_env 2
> unset Nothing
> debug clear_env 2
> unset _
> debug clear_env 2
> unset SSH_TTY
> debug clear_env 2
> unset PATH
> debug clear_env 2
> unset OLDPWD
> debug clear_env 2
> debug clear_env 2
> unset STY
> debug clear_env 2
> unset MAIL
> debug clear_env 2
> unset PS1
> debug clear_env 2
> unset PS3
> debug clear_env 2
> unset PS2
> debug clear_env 2
> unset TERMCAP
> debug clear_env 2
> unset :DO
> /opt/scbld/bin/nbuild[11]: :DO: is not an identifier
> root at devhost1 /export/ohac/ohac#
>
>
> - --
> Piotr Jasiukajtis | estibi | SCA OS0072
> http://estseg.blogspot.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (SunOS)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkhChBsACgkQhlyfmo4JZ9gWQgCggf3UxDHGOJowVd+2Zc57+zyY
> aTAAniRNOR7T6YvCMkJGB+alQcOVaH2O
> =RnbQ
> -----END PGP SIGNATURE-----
> _______________________________________________
> ha-clusters-discuss mailing list
> ha-clusters-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ha-clusters-discuss
>