Suggestion: add "setup.exe" version number to Cygwin home page

zzapper david@tvis.co.uk
Tue Jun 20 14:14:00 GMT 2006


"Dave Korn" <dave.korn@artimi.com> wrote in news:00be01c6945d$00463bb0
$a501a8c0@CAM.ARTIMI.COM:

> pushd >/dev/null /tmp && wget 2>/dev/null `cat
> /etc/setup/last-mirror`/setup.bz2 && ( bunzip2 -c setup.bz2 | grep
> setup-version | cut -f2 -d' ' ) && popd >/dev/null
> 
How this works AFAICT
The meat is here
wget `cat /etc/setup/last-mirror`/setup.bz2 && ( bunzip2 -c setup.bz2 | 
grep setup-version | cut -f2 -d' ' ) 

pushd              # save current directory
>/dev/null         # suppress output from pushd
/tmp               # move to /tmp
2>/dev/null        # suppresses a lot of wget's "noise"
popd >/dev/null    # return to original directory , suppressing "noise"


-- 
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list