Welcome to iraf.net Friday, April 19 2024 @ 01:06 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 directory names with spaces
   
duvall
 10/18/2016 12:45PM (Read 1024 times)  
+++--
Chatty

Status: offline


Registered: 03/08/2006
Posts: 59
If I have a directory name with spaces, I can't seem to cd to it:

(in a shell)
mkdir "test 2"
ls
test 2
cd "test 2"
(ok)

(in iraf)
dir
test 2
cd "test 2"
ERROR: Cannot change directory to 'test 2'
called as ...

This seems to happen on both linux iraf and also on my mac. It's a particular problem on the mac
as I have an external disk with name "Seagate HD" which I can't seem to rename and have been
unable to get at in iraf. Any thoughts?

 
Profile Email
 Quote
fitz
 10/18/2016 12:53PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Spaces in directory names aren't supported in IRAF. The usual workaround is to create a symlink without spaces (e.g. 'Seagate_HD' in your case) and use that in the path name.

 
Profile Email
 Quote
   
Content generated in: 0.07 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login