|
From: Petr M. <mi...@ph...> - 2006-03-10 07:03:52
|
> It is sufficient to use whatever system-dependent shell command
> matches your use. I gave several examples already.
No examples has been presented until now, but I've just constructed it this
way:
fileexist(name)=\
system(sprintf("bash -c \"if [ -a %s ]; then echo 1; else echo 0; fi\"", name))
print fileexist('a')
print fileexist('aa')
Any better solution?
(There could be one with "REXX support" patch going into gnuplot...)
---
PM
|