Invalid Characters

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
mritter0
Posts: 214
Joined: Mon Aug 25, 2014 9:41 pm
Location: Bettendorf, IA, USA

Invalid Characters

Post 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?
Workbench Explorer - A better way to browse drawers
User avatar
Spektro
Beta Tester
Beta Tester
Posts: 122
Joined: Sat Jun 18, 2011 6:55 am
Location: Finland
Contact:

Re: Invalid Characters

Post 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.
- Janne Peräaho
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: Invalid Characters

Post 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.
User avatar
mritter0
Posts: 214
Joined: Mon Aug 25, 2014 9:41 pm
Location: Bettendorf, IA, USA

Re: Invalid Characters

Post 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.
Workbench Explorer - A better way to browse drawers
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: Invalid Characters

Post 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:> 
Post Reply