/usr/lib/s9fes/help/name-to-file-name is in scheme9 2010.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | S9 LIB (name->file-name string) ==> string
(load-from-library "name-to-file-name.scm")
Map the given symbol name to a name that is a valid file name
on most computer file systems. In particular, the procedure
replaces the following characters:
character(s) becomes
@ at
+ plus
* star
/ slash
? p (predicate)
! b (bang)
= eq
-> -to-
< lt
<= le
> gt
>= ge
In addition a name that consists of a minus sign exclusively
("-") is replaced with "minus". All other special characters
are replaced with an underscore. Non-special characters include
the letters a-z, the digits 0-9, the minus sign, and the dot.
(name->file-name "sys:stat-pipe?") ==> "sys_stat-pipep"
(name->file-name "a->b") ==> "a-to-b"
(name->file-name "*foo*") ==> "starfoostar"
|