Problem with "~" in Unix FINDFILE, still? [message #2335] |
Wed, 08 June 1994 10:09 |
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
|
|
|