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

Home » Public Forums » archive » Problem with "~" in Unix FINDFILE, still?
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
Problem with "~" in Unix FINDFILE, still? [message #2335] Wed, 08 June 1994 10:09
pendleton is currently offline  pendleton
Messages: 17
Registered: February 1992
Junior Member
Could someone verify the following Unix IDL "bug" for me in a more recent
version of IDL than 3.0.0?

The problem I am seeing is that the FINDFILE function doesn't properly
interpret a "~" as a symbol for the home directory.

For instance

IDL> A = FINDFILE("-F ~ | grep /")

results in zero entries for me in both Ultrix and SunOS versions of IDL 3.0.0.

However,

IDL> SPAWN, "ls -F ~ | grep /", OUTPUT
IDL> PRINT, OUTPUT

produces output as I would expect. Note that the use of a "." for current
directory rather than a "~" does work properly.

Thanks,
Jim Pendleton, Programmer Analyst/Technical Services Specialist
GRO/OSSE, Dept. Physics & Astronomy
Northwestern University
j-pendleton@nwu.edu (708) 491-2748 (708) 491-3135 [FAX]
http://www.astro.nwu.edu/astro/pendleton
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Question on PLOTS command
Next Topic: IDL WRITE_PICT --> Macintosh PICT???

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

Current Time: Sat Oct 11 12:29:56 PDT 2025

Total time taken to generate the page: 0.96286 seconds