On Wed, 8 Jun 2005 10:59:27 -0400 (EDT), wrote:
>> >> #!/bin/bash >> # csn >> # description : launch most recent file (head) >> # set -x >> cygstart $(l\s -t * | head -1) & > >Make that 'cygstart "$(/bin/ls -t | head -1)"' (add quotes, otherwise >filenames with spaces will not work). Slightly improved to ignore directories (and assuming that Windows files always have an extension) cygstart "$(/bin/ls -t *.* | head -1)" > >> Jump back into explorer in CURRENT directory >> >> wexp () { >> XPATH="$(cygpath -w "${PWD}")" >> explorer $XPATH >> } > >You could've used "$(cygpath -aw .)". And you need to quote $XPATH (i.e., >use 'explorer "$XPATH"'), for the same reasons (spaces). > >Besides, how about simply 'cygstart .'? Yep! good. >> man cygstart >> man cygpath > -- zzapper vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?" http://www.rayninfo.co.uk/tips/ vim, zsh & success 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/