git.annexia.org
/
goals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
stdlib: Implement realpath() function.
[goals.git]
/
stdlib
/
prelude.gl
diff --git
a/stdlib/prelude.gl
b/stdlib/prelude.gl
index
de2a422
..
183338d
100644
(file)
--- a/
stdlib/prelude.gl
+++ b/
stdlib/prelude.gl
@@
-90,6
+90,11
@@
pure function extension (name) returning string = @{
echo "${name##*.}"
}
+# Real path.
+function realpath (filename) returning string = @{
+ realpath -- %filename
+}
+
# Expand a wildcard into a list of filenames.
#
# This function is probably not "pure" since it depends on the