* TAB-completion and filesystem problem
@ 2002-06-27 21:06 Sylvain Petreolle
0 siblings, 0 replies; 6+ messages in thread
From: Sylvain Petreolle @ 2002-06-27 21:06 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]
I encounter a strange behaviour with cygwin.
I am in $HOME.
Nom@snoop ~
$ ls -ld musique MPlayer/
drwxr-xr-x 26 Nom 544 0 Jun 28
01:03 MPlayer/
lrwxrwxrwx 1 Nom 544 145 Jun 28
01:33 musique -> /cygdrive/c/M
es documents/Ma musique/
in MPlayer the file etc/input.conf exists :
$ ls -ld MPlayer/etc/input.conf
-rw-r--r-- 1 Nom 544 1201 Mar 19
14:27 MPlayer/etc/input.conf
I go in musique (also symbolic link) and hit this :
cp ../MPlayer/etc/inp and press TAB to complete the
name.
then appears this, as waited :
$ cp ../MPlayer/etc/input.conf
but the result of
cp ../MPlayer/etc/input.conf / is :
$ cp ../MPlayer/etc/input.conf /
cp: cannot stat `../MPlayer/etc/input.conf': No such
file or directory
so the problem is : TAB completion finds the file, but
cp doesn't.
I also attached output of cygcheck -s -r -v.
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
[-- Attachment #2: sysinf.bz2 --]
[-- Type: application/octet-stream, Size: 5341 bytes --]
[-- Attachment #3: Type: text/plain, Size: 214 bytes --]
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TAB-completion and filesystem problem
@ 2002-06-30 19:42 Sylvain Petreolle
0 siblings, 0 replies; 6+ messages in thread
From: Sylvain Petreolle @ 2002-06-30 19:42 UTC (permalink / raw)
To: cygwin
Thank you for tips about tcsh,
but ...
I'm not using tcsh (I should have reported it),
I'm using bash as shell.
There is a misunderstanding :
bash doesn't refuse to tab-complete, it tab-completes
where it shouldn't have found the file... or is cp
buggy ?
Please review my mail.
Little question to see which one has problems :
when using a symbolic link named 'slink' in the
directory /var/dir,
and slink points to /usr/dir2 :
you are in /var/dir/link (aka /usr/dir2).
does ../file points to /var/dir/file or /usr/file ?
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TAB-completion and filesystem problem
2002-06-29 3:14 C. J.
@ 2002-06-29 8:48 ` Corinna Vinschen
0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2002-06-29 8:48 UTC (permalink / raw)
To: cygwin
On Fri, Jun 28, 2002 at 02:16:05PM -0700, C. J. wrote:
>
> >>I think this is a lame 'feature' of tcsh.
> >>If you start your cmdline with 'cp' or 'mv',
> >>it refuses to tab-complete the 2nd argument,
> >>maybe to prevent you from accidently overwriting
> >>a file by forcing you to type the full name.
> >>I wish there was a way to disable this.
> >
> >There is. Reading /etc/cshrc.* and especially 'man tcsh' could help.
>
> Arrgh, I hate digging through man pages to fix stuff that was working fine
> for years. OK, for all those out there having problems with this:
> you need to go to /etc/profile.d/complete.tcsh and '#' comment out the lines
>
> for 'complete mv' and 'complete cp'.
Oh boy. Did you see the following two lines in /etc/csh.cshrc:
# If we find $HOME/.{t}cshrc we skip our settings used for interactive sessions.
if (-r "$HOME/.cshrc" || -r "$HOME/.tcshrc") goto end
Probably not. Btw., *my* ~/.cshrc file contains a line
uncomplete *
which has the surprisingly effect that I don't have to change the
files from the distro...
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TAB-completion and filesystem problem
@ 2002-06-29 3:14 C. J.
2002-06-29 8:48 ` Corinna Vinschen
0 siblings, 1 reply; 6+ messages in thread
From: C. J. @ 2002-06-29 3:14 UTC (permalink / raw)
To: cygwin
>>I think this is a lame 'feature' of tcsh.
>>If you start your cmdline with 'cp' or 'mv',
>>it refuses to tab-complete the 2nd argument,
>>maybe to prevent you from accidently overwriting
>>a file by forcing you to type the full name.
>>I wish there was a way to disable this.
>
>There is. Reading /etc/cshrc.* and especially 'man tcsh' could help.
Arrgh, I hate digging through man pages to fix stuff that was working fine
for years. OK, for all those out there having problems with this:
you need to go to /etc/profile.d/complete.tcsh and '#' comment out the lines
for 'complete mv' and 'complete cp'.
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TAB-completion and filesystem problem
2002-06-27 21:28 C. J.
@ 2002-06-28 3:07 ` Corinna Vinschen
0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2002-06-28 3:07 UTC (permalink / raw)
To: cygwin
On Thu, Jun 27, 2002 at 06:27:29PM -0700, C. J. wrote:
>
> I think this is a lame 'feature' of tcsh.
> If you start your cmdline with 'cp' or 'mv',
> it refuses to tab-complete the 2nd argument,
> maybe to prevent you from accidently overwriting
> a file by forcing you to type the full name.
> I wish there was a way to disable this.
There is. Reading /etc/cshrc.* and especially 'man tcsh' could help.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: TAB-completion and filesystem problem
@ 2002-06-27 21:28 C. J.
2002-06-28 3:07 ` Corinna Vinschen
0 siblings, 1 reply; 6+ messages in thread
From: C. J. @ 2002-06-27 21:28 UTC (permalink / raw)
To: cygwin
I think this is a lame 'feature' of tcsh.
If you start your cmdline with 'cp' or 'mv',
it refuses to tab-complete the 2nd argument,
maybe to prevent you from accidently overwriting
a file by forcing you to type the full name.
I wish there was a way to disable this.
-------------------
I encounter a strange behaviour with cygwin.
I am in $HOME.
Nom@snoop ~
$ ls -ld musique MPlayer/
drwxr-xr-x 26 Nom 544 0 Jun 28
01:03 MPlayer/
lrwxrwxrwx 1 Nom 544 145 Jun 28
01:33 musique -> /cygdrive/c/M
es documents/Ma musique/
in MPlayer the file etc/input.conf exists :
$ ls -ld MPlayer/etc/input.conf
-rw-r--r-- 1 Nom 544 1201 Mar 19
14:27 MPlayer/etc/input.conf
I go in musique (also symbolic link) and hit this :
cp ../MPlayer/etc/inp and press TAB to complete the
name.
then appears this, as waited :
$ cp ../MPlayer/etc/input.conf
but the result of
cp ../MPlayer/etc/input.conf / is :
$ cp ../MPlayer/etc/input.conf /
cp: cannot stat `../MPlayer/etc/input.conf': No such
file or directory
so the problem is : TAB completion finds the file, but
cp doesn't.
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-06-30 20:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-27 21:06 TAB-completion and filesystem problem Sylvain Petreolle
2002-06-27 21:28 C. J.
2002-06-28 3:07 ` Corinna Vinschen
2002-06-29 3:14 C. J.
2002-06-29 8:48 ` Corinna Vinschen
2002-06-30 19:42 Sylvain Petreolle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).