Page 1 of 1

Invalid Characters

Posted: Tue Jun 23, 2015 1:48 am
by mritter0
I can find a list of invalid characters for CrossDOS filenames
http://wiki.amigaos.net/wiki/AmigaOS_Ma ... h_CrossDOS

but not for standard Amiga filenames. Is there a list?

Re: Invalid Characters

Posted: Tue Jun 23, 2015 10:21 am
by Spektro
Hello mritter0,
I don't think there is. I think path characters (colon and slash) are the only invalid characters. Pattern matching characters are valid (?, #, %, |, ~, *, [, ], (, ), ') as well as double quotation marks.

Re: Invalid Characters

Posted: Tue Jun 23, 2015 12:04 pm
by broadblues
Even colon is not invalid in filename , just in a device or volume name. Like wise "/" is is invalid in a file name but not in a volume name.

for example

9.AmigaOS4:> echo blah >ram:foo:
9.AmigaOS4:> list ram:
Directory "ram:" on Tuesday 23-Jun-15
foo: 5 ----rwed Today 11:01:12
Disk.info 76546 ----rwed Today 10:52:26
> ENVARC:Sys/def_RAM.info
Clipboards Dir ----rwed Today 10:52:18
T Dir ----rwed Today 10:52:46
2 files - 74K bytes - 2 directories - 8 blocks used
9.AmigaOS4:>


It's should be avoided though! As should the pattern matching characeters and spaces unless you *really* need them.

Re: Invalid Characters

Posted: Tue Jun 23, 2015 11:21 pm
by mritter0
Both good and "bad". I was doing my testing in Shell and was getting some errors from names like

Code: Select all

`.c
-.c
=.c
But from within Filer it will accept those names. The only invalid 2 are : and / for file names.

Re: Invalid Characters

Posted: Thu Jun 25, 2015 12:41 am
by broadblues
name like =.c might well need quoting in the shell

wrong

Code: Select all

8.AmigaOS4:> echo foo >=.c
foo >.c
right

Code: Select all

8.AmigaOS4:> echo foo >"=.c"
8.AmigaOS4:>