From: Bob McGowan <rmcgowan@veritas.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: earnie_boyd@yahoo.com, Steve Kelem <kelem@adaptivesilicon.com>,
Cygwin <cygwin@sourceware.cygnus.com>
Subject: Re: pathname with spaces causes problems for tcsh
Date: Tue, 21 Mar 2000 13:53:00 -0000 [thread overview]
Message-ID: <38D7F0A2.8C5F68F4@veritas.com> (raw)
In-Reply-To: <200003212109.QAA25555@hrothgar.gw.com>
I have the CD 1.0 with the same version of tcsh as the original poster.
If I use double quotes around the path with spaces, there seems to be no
problem. When I use a backslash to escape the spaces in the pathname, I
also have no problem.
But I did notice that the original poster gave the path name as /c/...
and I am wondering if the problem seen relates to this. When I used the
//c/dir... format to change to "Multimedia Files" and typed pwd, it
printed out "/cygdrive/c/Multimedia Files" (expected) but "echo $PWD"
printed "/c/Multimedia Files". This is clearly not correct. The tests
I mentioned above used pathnames beginning with /cygpath/c/... When I
repeated the tests using the //c... path name, the following happens:
pushd "$PWD" # errors with "no such file or directory"
pushd $PWD # errors with "pushd: Too many arguments."
My only issue is that I cannot reproduce the setenv error mentioned in
the original post, nor can I get it to "work" with $PWD when I use "cd
//c/dir..." to change to the pathname with spaces.
So, spaces can be a problem but once input (through some quoting
mechanism), things should work, since the system now has a single null
terminated string to work with. The spaces would only be problematic a
second time if they were passed in such a way that the string was
re-parsed by the shell as if it were a complete command line (or at
least an argument list).
Christos Zoulas wrote:
>
> On Mar 21, 12:52pm, earnie_boyd@yahoo.com (Earnie Boyd) wrote:
> -- Subject: Re: pathname with spaces causes problems for tcsh
>
> | Pathnames with spaces are a problem, period. By the time that pushd got the
> | argument the backslashes had been removed and pushd passed to setenv more than
> | one argument thus the complaint.
> |
> | You'll have to modify the source of tcsh to fix this problem.
> |
> | Earnie.
> |
> | P.S.: This problem would exist on UNIX if the directory contained spaces.
>
> No it would not. chdir("foo bar") works fine as well as
> setenv/putenv("foo bar", "bar baz"). The problem is in the way
> the interface call to the win32 setenv is implemented.
>
> christos
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
--
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan@veritas.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
next prev parent reply other threads:[~2000-03-21 13:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-21 12:52 Earnie Boyd
2000-03-21 13:10 ` Christos Zoulas
2000-03-21 13:37 ` Chris Faylor
2000-03-21 13:53 ` Bob McGowan [this message]
2000-03-21 13:57 ` Chris Faylor
-- strict thread matches above, loose matches on Subject: below --
2000-03-21 13:03 Halim, Salman
2000-03-21 11:35 Steve Kelem
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38D7F0A2.8C5F68F4@veritas.com \
--to=rmcgowan@veritas.com \
--cc=christos@zoulas.com \
--cc=cygwin@sourceware.cygnus.com \
--cc=earnie_boyd@yahoo.com \
--cc=kelem@adaptivesilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).