Here's what I ended up doing (the permissions were 777 on the directory)

cat "$(cygpath -u "$(cat
/etc/setup/last-cache)")/ftp%3a%2f%2fsourceware.org%2fpub%2fcygwinports/setup.ini"
| \
sed -e "/^setup-timestamp:/ s/ \(.*\)/ $(date +%s)/"> \
"$(cygpath -u "$(cat
/etc/setup/last-cache)")/ftp%3a%2f%2fsourceware.org%2fpub%2fcygwinports/setup.ini"

Ive done some reading on the sed command.  It seems calling the sed
command with the -i flag launches another process, that in some cases
problems as documented by others.  Although the above command is more
complex, it basically passes everything in a series of pipes, avoiding
the -i flag.

-- 
Kevin Hilton

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to