Re: readline completion

2005-08-17 Thread Andrew DeFaria

Igor Pechtchanski wrote:


On Tue, 16 Aug 2005, Eric Blake wrote:


Besides, a one-time sequence of commands below will allow painless
Tab-completion of /cygdrive:

cd /  \
mkdir /cygdrive  \
cmd /c ren cygwin.bat Cygwin.bat  \
cmd /c ren cygwin.ico Cygwin.ico


Only if you don't have case-insensitive tab-completion turned on.
Me, I like 'shopt -s nocaseglob' in ~/.bashrc, and
'set completion-ignore-case on' in ~/.inputrc, which then means
/cygdrive and /Cygwin.bat still have a common '[cC][yY][gG]' prefix,
so your trick doesn't help.



Yes, that turns a '/c[Tab]' sequence into a '/c[Tab]d[Tab]' (two more
keystrokes). :-)
Igor


That's why I've long since changed cygdrive prefix to /dev! ;-)
--
On the keyboard of life, always keep one finger on the escape key.


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



Re: readline completion

2005-08-17 Thread Sam Steingold
 * Eric Blake [EMAIL PROTECTED] [2005-08-16 22:53:24 +]:

 And if it is too many characters to type, change your cygdrive prefix
 to /.

how do I do that?


-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
http://www.jihadwatch.org/ http://www.palestinefacts.org/
http://pmw.org.il/ http://www.openvotingconsortium.org/
nobody's life, liberty or property are safe while the legislature is in session

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



Re: readline completion

2005-08-17 Thread Eric Blake
  And if it is too many characters to type, change your cygdrive prefix
  to /.
 
 how do I do that?
 

http://cygwin.com/cygwin-ug-net/using-utils.html#id4748539

--
Eric Blake



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



Re: readline completion

2005-08-17 Thread Christopher Faylor
On Tue, Aug 16, 2005 at 11:18:20PM -0700, Andrew DeFaria wrote:
That's why I've long since changed cygdrive prefix to /dev! ;-)

Because we all know how linux loves to put filesystems under /dev!

ls /dev/home

etc.

cgf

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



Re: readline completion

2005-08-17 Thread Andrew DeFaria

Christopher Faylor wrote:


On Tue, Aug 16, 2005 at 11:18:20PM -0700, Andrew DeFaria wrote:


That's why I've long since changed cygdrive prefix to /dev! ;-)


Because we all know how linux loves to put filesystems under /dev!

ls /dev/home


Well there are file systems under /dev in a way. Am I necessarily trying 
to emulate Linux religiously? No. To me /dev is where I would naturally 
expect a C *drive*, which is not really a file system but a device in my 
view (IOW I can pull out my C drive, hold it in my hand and say - this 
is my C device!). Also /dev is short - shorter than cygdrive anyway and 
I just naturally think, C Drive ~= C Device, D Drive ~= D Device.


No, /home for me in a domain environment is usually on the file server 
thus a mount //server/homeshare /home works just fine. Outside a 
domain environment C:/Home/User (I've long since hacked the registry 
to change the usual C:\Documents and Settings - C:\Home) can as 
easily be mounted with mount c:/home /home.


I also do mounts for things like C:\Program Files - /apps, making 
things like ls /apps/Firetab a breeze. YMMV.


There's the You must adhere to pure *nix conventions mentality and 
there's the I will utilize what the system offers to make my life 
easier mentality - both with pluses and minuses...

--
Living on Earth may be expensive, but it includes an annual trip around 
the sun.



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



Re: readline completion

2005-08-17 Thread Sam Steingold
 * Eric Blake [EMAIL PROTECTED] [2005-08-17 13:55:59 +]:

  And if it is too many characters to type, change your cygdrive prefix
  to /.
 
 how do I do that?

 http://cygwin.com/cygwin-ug-net/using-utils.html#id4748539

thanks.
where do I put

mount --change-cygdrive-prefix /

to have it done on each cygwin startup

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
http://www.openvotingconsortium.org/ http://www.dhimmi.com/
http://www.palestinefacts.org/ http://ffii.org/
The only time you have too much fuel is when you're on fire.

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



Re: readline completion

2005-08-17 Thread Eric Blake
  http://cygwin.com/cygwin-ug-net/using-utils.html#id4748539
 
 thanks.
 where do I put
 
 mount --change-cygdrive-prefix /

Read that full webpage.  Mounts are persistent.  Running the command
just once will make it affect all future cygwin startups, until you
rerun mount or umount.  (Just like Unix mount points.)  So you
don't need to edit any shell startup files to change your mounts.

--
Eric Blake



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



Re: readline completion

2005-08-17 Thread Sam Steingold
 * Eric Blake [EMAIL PROTECTED] [2005-08-17 19:30:14 +]:

 Mounts are persistent.  Running the command just once will make it
 affect all future cygwin startups, until you rerun mount or umount.

thanks!

 (Just like Unix mount points.)

Not on linux.
mount /dev/fd /mnt/floppy; reboot; ls /mnt/floppy
will show an empty directory.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
http://www.jihadwatch.org/ http://www.memri.org/ http://truepeace.org
http://www.honestreporting.com http://www.savegushkatif.org
UNIX, car: hard to learn/easy to use; Windows, bike: hard to learn/hard to use.

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



Re: readline completion

2005-08-17 Thread Christopher Faylor
On Wed, Aug 17, 2005 at 11:00:29AM -0700, Andrew DeFaria wrote:
Christopher Faylor wrote:

On Tue, Aug 16, 2005 at 11:18:20PM -0700, Andrew DeFaria wrote:

That's why I've long since changed cygdrive prefix to /dev! ;-)

Because we all know how linux loves to put filesystems under /dev!

ls /dev/home

Well there are file systems under /dev in a way. Am I necessarily trying 
to emulate Linux religiously? No. To me /dev is where I would naturally 
expect a C *drive*, which is not really a file system but a device in my 
view (IOW I can pull out my C drive, hold it in my hand and say - this 
is my C device!). Also /dev is short - shorter than cygdrive anyway and 
I just naturally think, C Drive ~= C Device, D Drive ~= D Device.

No, /home for me in a domain environment is usually on the file server 
thus a mount //server/homeshare /home works just fine. Outside a 
domain environment C:/Home/User (I've long since hacked the registry 
to change the usual C:\Documents and Settings - C:\Home) can as 
easily be mounted with mount c:/home /home.

I also do mounts for things like C:\Program Files - /apps, making 
things like ls /apps/Firetab a breeze. YMMV.

There's the You must adhere to pure *nix conventions mentality and 
there's the I will utilize what the system offers to make my life 
easier mentality - both with pluses and minuses...

Yes, I understood that if you are using /dev in this way that it is
purely an idiosyncratic thing that doesn't necessarily make any sense
when you consider the pure UNIX sense of what /dev is supposed to be
for.  I just wouldn't recommend this for the general cygwin populace.
If we ever start doing something like udev on cygwin you're going to
have some problems.

/mnt makes a little more sense for an alternate location, IMO.

cgf

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



Re: readline completion

2005-08-17 Thread Andrew DeFaria

Christopher Faylor wrote:

Yes, I understood that if you are using /dev in this way that it is 
purely an idiosyncratic thing that doesn't necessarily make any sense
when you consider the pure UNIX sense of what /dev is supposed to be for. 


i.e. the Unix purist view. Hey I understand where you're coming from but 
I'm not a purist.


I just wouldn't recommend this for the general cygwin populace. If we 
ever start doing something like udev on cygwin you're going to

have some problems.


Yes this is the risk. I understand it.


/mnt makes a little more sense for an alternate location, IMO.


Yes this is a quick alternative though I tend to thing of mounts as 
mounting of file systems from other machines. I guess I just think Well 
of course any disk/file system that's present should be mounted already 
so to me /mnt is for other, not normally mounted file systems from other 
machines or perhaps floppy/USB, etc.


Yes to each his own
--
Analyzing humor is like dissecting a frog. Few people are interested and 
the frog dies of it. - E. B. White



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



Re: readline completion

2005-08-17 Thread Reid Thompson

Sam Steingold wrote:


* Eric Blake [EMAIL PROTECTED] [2005-08-17 19:30:14 +]:

Mounts are persistent.  Running the command just once will make it
affect all future cygwin startups, until you rerun mount or umount.
   



thanks!

 


(Just like Unix mount points.)
   



Not on linux.
mount /dev/fd /mnt/floppy; reboot; ls /mnt/floppy
will show an empty directory.

 


I think that's a reflection of how the mount is defined in /etc/fstab.

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



readline completion

2005-08-16 Thread Sam Steingold
pathname completion in bash (implemented using readline) does not work
with woe32 pathnames:
this does not work:
$ ls c:/ TAB
this works:
$ ls /cygdrive/c/ TAB

is it possible to fix this?

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
http://www.dhimmi.com/ http://www.camera.org
http://www.memri.org/ http://www.savegushkatif.org
Daddy, why doesn't this magnet pick up this floppy disk?

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



Re: readline completion

2005-08-16 Thread Eric Blake
 pathname completion in bash (implemented using readline) does not work
 with woe32 pathnames:
 this does not work:
 $ ls c:/ TAB
 this works:
 $ ls /cygdrive/c/ TAB
 
 is it possible to fix this?
 

Possible? Yes.  Likely to happen?  Depends on whether I ever get
time to look at it, or if someone beats me to it by providing a patch.
Also, which version of bash and readline are you using?  bash-3.0-11
introduced the notion of c: being an absolute path to the bash
internals; maybe I need to find where readline also needs to be
taught that fact.  Also, readline 5.1 and bash 3.1 are in alpha, so
the fix might not appear until those go mainstream.

One other thing to consider - by default, filename completion breaks
words at the : character (useful for completing assignments to PATH,
among others).  So do yourself a favor, and get used to a /cygdrive
style pathname, rather than the c: prefix.  And if it is too many
characters to type, change your cygdrive prefix to /.  '/c' is just as many
characters as 'c:', but more unix-y:
http://lists.gnu.org/archive/html/bug-bash/2005-08/msg00017.html
http://lists.gnu.org/archive/html/bug-bash/2005-08/msg00019.html

--
Eric Blake
volunteer cygwin readline maintainer



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



Re: readline completion

2005-08-16 Thread Igor Pechtchanski
On Tue, 16 Aug 2005, Eric Blake wrote:

  pathname completion in bash (implemented using readline) does not work
  with woe32 pathnames:
  this does not work:
  $ ls c:/ TAB
  this works:
  $ ls /cygdrive/c/ TAB
 
  is it possible to fix this?

 Possible? Yes.  Likely to happen?  Depends on whether I ever get
 time to look at it, or if someone beats me to it by providing a patch.
 Also, which version of bash and readline are you using?  bash-3.0-11
 introduced the notion of c: being an absolute path to the bash
 internals; maybe I need to find where readline also needs to be
 taught that fact.  Also, readline 5.1 and bash 3.1 are in alpha, so
 the fix might not appear until those go mainstream.

 One other thing to consider - by default, filename completion breaks
 words at the : character (useful for completing assignments to PATH,
 among others).  So do yourself a favor, and get used to a /cygdrive
 style pathname, rather than the c: prefix.  And if it is too many
 characters to type, change your cygdrive prefix to /.  '/c' is just as many
 characters as 'c:', but more unix-y:
 http://lists.gnu.org/archive/html/bug-bash/2005-08/msg00017.html
 http://lists.gnu.org/archive/html/bug-bash/2005-08/msg00019.html

Besides, a one-time sequence of commands below will allow painless
Tab-completion of /cygdrive:

cd /  \
mkdir /cygdrive  \
cmd /c ren cygwin.bat Cygwin.bat  \
cmd /c ren cygwin.ico Cygwin.ico

Enjoy,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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



Re: readline completion

2005-08-16 Thread Eric Blake
 
 Besides, a one-time sequence of commands below will allow painless
 Tab-completion of /cygdrive:
 
 cd /  \
 mkdir /cygdrive  \
 cmd /c ren cygwin.bat Cygwin.bat  \
 cmd /c ren cygwin.ico Cygwin.ico

Only if you don't have case-insensitive tab-completion turned on.
Me, I like 'shopt -s nocaseglob' in ~/.bashrc, and
'set completion-ignore-case on' in ~/.inputrc, which then means
/cygdrive and /Cygwin.bat still have a common '[cC][yY][gG]' prefix,
so your trick doesn't help.

--
Eric Blake



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



Re: readline completion

2005-08-16 Thread Igor Pechtchanski
On Tue, 16 Aug 2005, Eric Blake wrote:

  Besides, a one-time sequence of commands below will allow painless
  Tab-completion of /cygdrive:
 
  cd /  \
  mkdir /cygdrive  \
  cmd /c ren cygwin.bat Cygwin.bat  \
  cmd /c ren cygwin.ico Cygwin.ico

 Only if you don't have case-insensitive tab-completion turned on.
 Me, I like 'shopt -s nocaseglob' in ~/.bashrc, and
 'set completion-ignore-case on' in ~/.inputrc, which then means
 /cygdrive and /Cygwin.bat still have a common '[cC][yY][gG]' prefix,
 so your trick doesn't help.

Yes, that turns a '/c[Tab]' sequence into a '/c[Tab]d[Tab]' (two more
keystrokes). :-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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