🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #44073

Re: Making excuses for software that can't handle spaces in pathnames.

#44073
From: David M. Cook
Date: Tue, 27 Oct 1998 00:00
35 lines
2160 bytes
On 26 Oct 1998 10:12:39 GMT, Dawn Owens-Nicholson
<bluemoon@ux6.cso.uiuc.edu> wrote:

>I know how CLIs work and I understand the convenience you're talking about.
>I'm unwilling to make programmatic convenience (better known as "the bug
>many programmers don't want to fix") 

There are bugs and then there is reality.  Programming isn't magic; the
reality is that you need some kind of delimiter between items on a command
line.  The way most CLI tools seem to handle spaces in filenames is by
requiring the user to put quotes around the filename, which seems more of an
inconvenience that the addition of spaces to filenames is worth.  Actually,
the addition of spaces to filenames strikes me as totally gratuitous, though
it's use under win9x wouldn't be so bad if DOS7 wasn't total junk.

That said, I'll note that the bash shell handles spaces in filenames pretty
well and will do tab completion on them, so I can do

touch "Now is the time"

ls Now<tab>

and this expandes to

ls "Now is the time"

However

ls Now<space><tab>

won't work.  

Dave Cook

Technical Details
Message-ID: <slrn73a42p.8lq.davecook@rama.escnd1.sdca.home.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <703iib$44k$9@thingy.apana.org.au> <slrn72ark8.ma.thorfinn@tertius.net.au> <706h07$sqt$9@thingy.apana.org.au> <--nightshade---1610980804580001@annex-0-4-port-41.dialup.coast.net> <70e1r9$af6$7@thingy.apana.org.au> <slrn72s65u.gr.aidan@skinner.demon.co.uk> <slrn72t82m.ev2.bluemoon@ux6.cso.uiuc.edu> <slrn72tger.2rv.cbbrowne@godel.brownes.org> <slrn738iok.9jj.bluemoon@ux6.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn73a42p.8lq.davecook@rama.escnd1.sdca.home.com>
Subject: Re: Making excuses for software that can't handle spaces in pathnames.
Date: Tue, 27 Oct 1998 00:00:00 +0000
From: davecook@home.com (David M. Cook)
References: <703iib$44k$9@thingy.apana.org.au> <slrn72ark8.ma.thorfinn@tertius.net.au> <706h07$sqt$9@thingy.apana.org.au> <--nightshade---1610980804580001@annex-0-4-port-41.dialup.coast.net> <70e1r9$af6$7@thingy.apana.org.au> <slrn72s65u.gr.aidan@skinner.demon.co.uk> <slrn72t82m.ev2.bluemoon@ux6.cso.uiuc.edu> <slrn72tger.2rv.cbbrowne@godel.brownes.org> <slrn738iok.9jj.bluemoon@ux6.cso.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 405376476
Organization: http://www.kernel-panic.com/links/devel.html
User-Agent: slrn/0.9.5.3 (UNIX)
NNTP-Posting-Date: Mon, 26 Oct 1998 16:14:18 PDT
Newsgroups: news.software.readers