This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bash shell extension ?


"Adam" <cygwin@tranceambient.com> wrote;

> Ah-hah! This reg file works perfectly! Thanks Sam!

LOL. Glad I could help. Unfortunately there are still problems.

First off, you don't get the menu item for network shares in the Network Neighbourhood so you can't get a bash prompt in the root of a share.

Secondly, although you do get the prompt for folders within shares, the command doesn't select the correct directory because bash is reducing the '\\' at the front of the UNC path passed by Windows in the substitution for %1 to a single backslash even when enclosed in single quotes.

It might be time to think of a little utility that takes a Windows path as its first argument without converting any shell escapes in it, converts that to UNIX à la cygpath, chdirs to this and then execs its second argument with subsequent ones as the rest of the argv.

-- 
Sam Edge


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]