On Fri, Mar 19, 2004, Doug Henry wrote:
> the first two commands also hang. the last command hangs after the sed
> (last) command. I have attached my console output.
> [...]
> + [ .platform != . ]
> toolcmd=/home/losradar/tools/SunOS-5.8/lib/openpkg/shtool platform
> toolcmdhelp=shtool platform
> msgprefix=shtool:platform
> + echo 0=
> + sed -e s/^\([0-9]*\)\([+=]\)/arg_NUMS=\1; arg_MODE=\2/
> + eval arg_NUMS=0; arg_MODE==
> arg_NUMS=0
> arg_MODE==
> + echo h.F:S:C:L.U.v.c.n.t:d.V.h.
> + sed -e s/\([a-zA-Z0-9]\)\([.:+]\)/opt_MODE_\1=\2;/g
> + eval
> opt_MODE_h=.;opt_MODE_F=:;opt_MODE_S=:;opt_MODE_C=:;opt_MODE_L=.;opt_MODE_U=.;opt_MODE_v=.;opt_MODE_c=.;opt_MODE_n=.;opt_MODE_t=:;opt_MODE_d=.;opt_MODE_V=.;opt_MODE_h=.;
> opt_MODE_h=.
> opt_MODE_F=:
> opt_MODE_S=:
> opt_MODE_C=:
> opt_MODE_L=.
> opt_MODE_U=.
> opt_MODE_v=.
> opt_MODE_c=.
> opt_MODE_n=.
> opt_MODE_t=:
> opt_MODE_d=.
> opt_MODE_V=.
> opt_MODE_h=.
> + echo
> h:help,F:format,S:sep,C:conc,L:lower,U:upper,v:verbose,c:consise,t:type,n:no-newline,V:version,h:help
> + tr x- x_
> + sed -e s/\([a-zA-Z0-9]\):\([^,]*\),*/opt_ALIAS_\2=\1;/g
> ^C
> $
> $ exit
Err... then something is broken on your platform. Why should this hang at all?
Try the following commands:
$ echo "echo
h:help,F:format,S:sep,C:conc,L:lower,U:upper,v:verbose,c:consise,t:type,n:no-newline,V:version,h:help"
| tr x- x_ | sed -e 's/\([a-zA-Z0-9]\):\([^,]*\),*/opt_ALIAS_\2=\1;/g'
and give me the output of these commands so I can try to reproduce it on a similar
machine:
$ which echo
$ which tr
$ which sed
$ uname -a
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]