Article View: news.software.nntp
Article #55572Re: Is there a hack to support paswords that contain spaces?
From: Russ Allbery
Date: Sun, 09 Dec 2001 20:24
Date: Sun, 09 Dec 2001 20:24
33 lines
2261 bytes
2261 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> Andrew - Supernews <andrew@supernews.com> wrote:
>> You'll find that this is a pain, because you've probably argified the
>> original command line in place by nulling out the whitespace.
> Nope. We're nulling out a copy.
On the other hand, not constantly copying the incoming command line may
eventually be a good idea.
> Hmm. That's not bad. We could still have argify scan the whole string
> and return the count of the total number of arguments, which allows
> error checking for too few/many.
*nod*
> I've been wrestling with how, if you get the original buffer passed in
> as well, you can find the beginning of everything-else without running
> over the string again (which is just yuck). If we were sure there was
> never leading whitespace in the original buffer, buff[av[i] - av[0]]
> would do it, which isn't half bad.
> But I like your idea better.
So do I.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylu1v0cfar.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<9urfpi$7vi$1@teta.doit.wisc.edu> <9uuko7$br8$1@marduk.litech.org> <ylzo4t2fci.fsf@windlord.stanford.edu> <slrna16ao4.23i3.andrew+nonews@trinity.supernews.net> <9v03li$bq6$1@marduk.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <ylu1v0cfar.fsf@windlord.stanford.edu> Subject: Re: Is there a hack to support paswords that contain spaces? Date: Sun, 09 Dec 2001 20:24:44 +0000 From: Russ Allbery <rra@stanford.edu> References: <9urfpi$7vi$1@teta.doit.wisc.edu> <9uuko7$br8$1@marduk.litech.org> <ylzo4t2fci.fsf@windlord.stanford.edu> <slrna16ao4.23i3.andrew+nonews@trinity.supernews.net> <9v03li$bq6$1@marduk.litech.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 32 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1007929484 21265 171.64.13.23 (9 Dec 2001 20:24:44 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)