comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Bugfix/workaround for Mac directory names with spaces?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Bugfix/workaround for Mac directory names with spaces? [message #30191] Thu, 11 April 2002 00:48 Go to next message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
I've finally been trying to do some serious programming with IDL
5.5 on the Mac and have been brought to my knees by the problems that
version has with spaces in directory names. I seem to remember an
advisory or a thread here which discussed this, but can't find
anything in a quick search of my harddisk or the RSI website.

Has this been cured in a bugfix that I simply haven't been sent?
Is there a workaround that doesn't involve me completely renaming the
directory structure on my hard disk, my users' hard disks and my
granny's hard disk too?


Struan
Re: Bugfix/workaround for Mac directory names with spaces? [message #30229 is a reply to message #30191] Mon, 15 April 2002 16:39 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"James Kuyper" <kuyper@gscmail.gsfc.nasa.gov> wrote in message
news:3CBB58A5.5070702@gscmail.gsfc.nasa.gov...
> Mark Hadfield wrote:
>> Unix people look down their noses at us Windows users because we're
>> foolish enough to use file names with spaces in the middle. But
>> only a Mac user would put a space at the beginning!
>
> It's perfectly legal to have spaces in Unix filenames, even at the
> start of filenames. They can cause a number of very annoying
> problems when working with command line utilities, but then the same
> could be said of Windows. As long as you stick with GUI interfaces,
> the spaces are pretty much irrelevant.

The people who wrote Cray's DMF (Data Migration Facility) software
obviously weren't expecting any Windows users on their system. You can
check in files with spaces in their names any time you like, but you
can't get them back! Even with a GUI.

> Of course, power Unix users know they have a better list of command
> line utilities at their disposal than Windows users, so they're
> tempted to leave their GUI's more often. :-)

I stand corrected. I should have said that "Unix people look down
their noses at us Windows users because we're foolish enough to use
file names with spaces in the middle *and* because we don't know how
to use command-line tools".

I should warn you that I will fight to the death any attempt to turn
this thread back into a serious discussion.

--
Mark Hadfield
m.hadfield@niwa.co.nz Ka puwaha et tai nei
http://katipo.niwa.co.nz/~hadfield Hoea tatou
National Institute for Water and Atmospheric Research (NIWA)
Re: Bugfix/workaround for Mac directory names with spaces? [message #30230 is a reply to message #30191] Mon, 15 April 2002 15:48 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Mark Hadfield wrote:

> "Struan Gray" <struan.gray@sljus.lu.se> wrote in message
> news:a9einm$3a4$1@news.lth.se...
>
>> I recently started putting a space at the start of the names of
>> folders containing my most recent data. This forces them to appear
>> at the top of listings when using, for example, IDL's
>> DIALOG_PICKFILE.
>
>
> Unix people look down their noses at us Windows users because we're
> foolish enough to use file names with spaces in the middle. But only a
> Mac user would put a space at the beginning!

It's perfectly legal to have spaces in Unix filenames, even at the start
of filenames. They can cause a number of very annoying problems when
working with command line utilities, but then the same could be said of
Windows. As long as you stick with GUI interfaces, the spaces are pretty
much irrelevant.

Of course, power Unix users know they have a better list of command line
utilities at their disposal than Windows users, so they're tempted to
leave their GUI's more often. :-)
Re: Bugfix/workaround for Mac directory names with spaces? [message #30233 is a reply to message #30191] Mon, 15 April 2002 14:50 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Struan Gray" <struan.gray@sljus.lu.se> wrote in message
news:a9einm$3a4$1@news.lth.se...
> I recently started putting a space at the start of the names of
> folders containing my most recent data. This forces them to appear
> at the top of listings when using, for example, IDL's
> DIALOG_PICKFILE.

Unix people look down their noses at us Windows users because we're
foolish enough to use file names with spaces in the middle. But only a
Mac user would put a space at the beginning!

--
Mark Hadfield
m.hadfield@niwa.co.nz Ka puwaha et tai nei
http://katipo.niwa.co.nz/~hadfield Hoea tatou
National Institute for Water and Atmospheric Research (NIWA)
Re: Bugfix/workaround for Mac directory names with spaces? [message #30241 is a reply to message #30191] Mon, 15 April 2002 05:57 Go to previous message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
Mark Hadfield, m.hadfield@niwa.co.nz writes:
>
> "Struan Gray" wrote:
>>
>> I've finally been trying to do some serious programming with IDL
>> 5.5 on the Mac and have been brought to my knees by the problems that
>> version has with spaces in directory names...
>
> What problems?

Hmm. Time to eat some humble pie. Yum, yum, munch munch.

I recently started putting a space at the start of the names of
folders containing my most recent data. This forces them to appear at
the top of listings when using, for example, IDL's DIALOG_PICKFILE.
This also breaks a program I wrote to split paths from filenames back
in the dark ages when dragons still roamed the earth and IDL 3.5.1
seemed cool and young. Naturally, I wrote a hasty post to usenet
instead of sitting down and thinking for a bit.

My Bug. My Bad.

Dear RSI. I am very very sorry to have committed this dreadful
act of calumny and will go to bed tonight without my cocoa or my
goodnight kiss. I have also donated my secret list of HISTOGRAM tips
to the starving poor of Bulawayo. I hope this goes some way towards
mitigating my terrible crime.


Struan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: analyze reader and writer in IDL?
Next Topic: New in 5.5: SFit, /Irregular, /Max_Degree

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:15:41 PDT 2025

Total time taken to generate the page: 0.00672 seconds