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 From: "Robert Mark Bram" To: "Cygwin" Subject: cygpath question Date: Fri, 24 Jan 2003 17:07:53 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Howdy all! I am trying to write a little script that will allow me to "cd" to any directory in Cygwin by pasting in the Windows path.. Here is a screen dump of my work so far: $ function cdd () { > cd "`cygpath --unix "$*"`" > } $ pwd / $ cdd C:\My Music $ pwd /cygdrive/c/My Music $ cdd C:\Rob\mcd3060\Tri32002\a2 bash: cd: C:Robmcd3060Tri32002a2: No such file or directory $ pwd /cygdrive/c/My Music $ Why does the first use work but not the second? *puzzled* Any help would be appreciated! Rob :) :-> :-} -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/