[Thread Prev][Thread Next][Index]

Re: [ferret_users] Bug - expanding strings with slashes - Ferret6.07

Please try the following :
let fname = "../testnew"
file/format=delimited "`fname`"

Immediate mode evaluation will not keep the double quotes and Ferret needs
them when you specify the path to  a file. That is why it failed with ../testnew
and worked with testnew
Try to use symbols instead of variable for such situations.
Hope this helps,

On Wed, Nov 4, 2009 at 5:00 PM, Roman T <romantonk@xxxxxxx> wrote:
Dear Ferret Users,
I am using Ferret 6.07 and Ferret hangs when I am trying to read a file located outside the current directory (providing filename as a variable) -- presumably because Ferret has a problem expanding something which has slashes in it.

let fname = "../testnew"
yes? file/format=delimited `fname`
=>Ferret hangs

yes? let fname = "testnew"
yes? file/format=delimited `fname`
 !-> SET DATA/EZ/format=delimited testnew
=> Works perfectly.

My apologies if this has already been fixed in subsequent releases -- if so, I probably need to migrate!

[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement