cygwin build_alias issue (and a possible workaround...)

Scott Newell newell at cei.net
Sat Sep 4 13:28:58 UTC 2004


At 06:23 AM 9/4/2004 , Bogdan Vacaliuc wrote:
>
>Question: do you get the ~/expr.log if you just type this in on the command
>line (with the script in place):
>
>$ expr "xbuild_alias" :
>".*[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"

No log file is created for any of these cases:

$ /opt/rtems-4.6/bin/expr "xbuild_alias"
:".*[^_abcdefghijklmnopqrstuvwxyzABCDE
FGHIJKLMNOPQRSTUVWXYZ0123456789]"
/usr/bin/expr: syntax error
   : not found
   : not found
   : not found

$ /opt/rtems-4.6/bin/expr "xbuild_alias":
".*[^_abcdefghijklmnopqrstuvwxyzABCDE
FGHIJKLMNOPQRSTUVWXYZ0123456789]"
/usr/bin/expr: syntax error
   : not found
   : not found
   : not found

$ /opt/rtems-4.6/bin/expr "xbuild_alias" :
".*[^_abcdefghijklmnopqrstuvwxyzABCD
EFGHIJKLMNOPQRSTUVWXYZ0123456789]"
   : not found
   : not found
   : not found



Now, if I add a line to the script such as:
	echo "Calling expr with" "$@" >> ${HOME}/expr.log

I do get a logfile entry:
	Calling expr with xbuild_alias :
.*[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]


Can you double check and see if I made an error doing the cut-n-paste of
your script?  [attached].


>Hmm.  Now that is a resource problem.  Scott, what *are* the values for the
>SharedSection= of your "HKLM\SYSTEM\CurrentControlSet\Control\Session
>Manager\SubSystems\Windows" key?  Mine are (currently):
>
>SharedSection=1024,3072,128,128

SharedSection=1024,3072,512,512 


>Oh, ok, right.  They were making it to expr ok, but expr wasn't doing the
>right thing...
>
>
>Its going to be a long weekend...

Absolutely.


--
newell
-------------- next part --------------
#!/bin/sh
echo "Calling expr with" "$@" >> ${HOME}/expr.log

if result=`/usr/bin/expr "$@"` ; then
??? echo "expr $@ result $result status 0" >> ${HOME}/expr.log
??? echo $result
??? exit 0;
else
??? echo "expr $@ result $result status !0" >> ${HOME}/expr.log
??? echo $result
??? exit 1;
fi
-------------- next part --------------



More information about the users mailing list