On Mon, 30 Oct 2000, Rick Welykochy wrote:
> On Mon, 30 Oct 2000, Sonam Chauhan wrote:
>
> > Using *both* quotes and escaping make it work
> >
> > e.g.: scp sonamc@websvr2:"/nethome/sonamc/test\:2" /tmp
> >
> > will copy a file called "test:2"
>
> as does your example without quotes or escapes:
>
> scp sonamc@websvr2:/nethome/sonamc/test:2 /tmp
>
>
> The beauty of open source shines through. A fellow worker
> looked at the source code for the rcp parsing mechanism
> and found that as long as a "/" preceeds the ":", then the
> command thinks that ":" is part of a file name, and not a hostname
> delimiter.
Sorry, this is one thing that I find kinda of wrong. Yes it is good you
have the source code and have been able to find the answer, however you
_shouldn't_ have to do this. This should be documented. Any closed source
advocate would just laugh at this, "What you need to read the source to
use the program, Microsoft just make sure it is correctly documented so you
don't need to read the source"
Open source is great but advocating being able to the source when the docs
aren't good isn't really a big plus.
Cheers,
Benno
(PS. If you have made and submitted a patch to the documenation, then I will
take it all back and admit it is a good thing (tm) ;)
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug