[Thread Prev][Thread Next][Index]

Re: [ferret_users] Refer to a file with an escaped character



Hi Olivier and Billy,

I've tested it, and its works, with quotes and no escape character.

yes? use "/Users/marti/My File.nc"

I think the above is the solution.

The confusion arises from (*footnote*)

> /Volumes/WD\ Backup/ . . . 

Ferret doesn't (seem to) understand this escape.  The only escape Ferret has for spaces is the double quotes.

In contrast, the shell understands both types of escape:

$ ls abc def.nc
ls: abc: No such file or directory
ls: def.nc: No such file or directory
$ ls "abc def.nc"
abc def.nc
$ ls abc\ def.nc
abc def.nc
$ ls "abc\ def.nc"
ls: abc\ def.nc: No such file or directory

Ryo
-----
(*footnote*) On the bash prompt, type

$ ls /Volumes/WD (hit the tab key here)

Then, you'll get /Volumes/WD\ Backup/ . . .   On the other hand, type

$ ls "/Volume/WD (hit the tab key here)

Then, you'll get "/Volumes/WD Backup/ . . . "



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement