Message-Id: <200501241011.j0OABS7G020346@delorie.com> 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 Reply-To: From: To: Cc: Subject: Moving to the Desktop Date: Mon, 24 Jan 2005 10:04:31 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-UoD-Spam-Score: -1.3 (-) X-UoD-Spam-Report: -------------------------------------------------- This message has been scanned by a SpamAssassin installation on the spam checking server caroltoo at the University of Dundee. Content analysis details: (-1.3 hits, 5.0 required) 0.2 NO_REAL_NAME From: does not include a real name -1.4 BAYES_20 BODY: Bayesian spam probability is 20 to 30% [score: 0.2109] X-UoD-Scan-Signature: 78e8fde07d567d12cab99828cc391a7d Note-from-DJ: This may be spam Can anybody help with a single keyboard command that would move the user to the Desktop, usable across all systems? I've got as far as ~> cygpath -D /cygdrive/c/Documents and Settings/fergus/Desktop ~> cygpath -D | xargs ls # demo: spaces are a pain ls: /cygdrive/c/Documents: No such file or directory ls: and: No such file or directory ls: Settings/fergus/Desktop: No such file or directory ~> cygpath -D | sed 's/ /\\ /g' # OK recover spaces /cygdrive/c/Documents\ and\ Settings/fergus/Desktop ~> cygpath -D | sed 's/ /\\ /g' | xargs ls Command Prompt.lnk Signature.txt desktop.ini What I'm actually after is something like ~> cd `cygpath -D` to move me to the Desktop (but that particular syntax fails). Any ideas? Thanks. Fergus -- 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/