Hoodospel functionsΒΆ
- type arg :EXISTS
If entity of the given type exists pushes one to the stack. Otherwise pushes zero. Possible types:
Type Description file File. VimL implementation checks file for being readable. directory Directory. command Executable. I.e. command false :EXISTSchecks whether there isfalsecommand somewhere in$PATH.- :CURRENT_DIRECTORY
- Pushes full path to the current directory to the stack.
- :SEPARATOR
- Pushes directory separator to the stack (i.e.
/on *nix systems and\on windows). - str... separator numargs :JOIN
- Joins given strings using given separator and pushes result to the stack.
Function with variable number of arguments:
abc def / 3 :JOINwill pushabc/defto the stack, just like{ abc def / } :JOINwill. - :PLATFORM
- Pushes name of the platform hoodospel is running on. Possible outputs:
qnx,vms,os2,amiga,beos,mac,windows,unix,other. - :OS_NAME
- Pushes less specific name of the platform hoodospel is running on. Possible
outputs:
posix,nt,os2,other. - str :SHELL_SPLIT
- Pops one value from the stack, splits it on unescaped spaces, unescapes
(replaces all
\.with.) and pops resulting values back onto the stack.