X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: zzapper Subject: RE: Suggestion: add "setup.exe" version number to Cygwin home page Date: Tue, 20 Jun 2006 14:04:38 +0000 (UTC) Lines: 21 Message-ID: References: <31DDB7BE4BF41D4888D41709C476B65704168B42 AT NIHCESMLBX5 DOT nih DOT gov> <00be01c6945d$00463bb0$a501a8c0 AT CAM DOT ARTIMI DOT COM> User-Agent: Xnews/5.04.25 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com "Dave Korn" wrote in news:00be01c6945d$00463bb0 $a501a8c0 AT CAM DOT ARTIMI DOT 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/