git.annexia.org
/
goals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use automake.
[goals.git]
/
stdlib
/
prelude.sh
diff --git
a/stdlib/prelude.sh
b/stdlib/prelude.sh
index
5b42f4e
..
fcd1bac
100644
(file)
--- a/
stdlib/prelude.sh
+++ b/
stdlib/prelude.sh
@@
-24,5
+24,16
@@
function quoted_string ()
{
# XXX This doesn't actually do quoting XXX
function quoted_string ()
{
# XXX This doesn't actually do quoting XXX
- echo "\"$1\""
+ echo -n "\"$1\""
+}
+
+# For printing strings in different colours.
+function print_red ()
+{
+ echo -e "\x1b[1;31m$@\x1b[0m"
+}
+
+function print_green ()
+{
+ echo -e "\x1b[0;32m$@\x1b[0m"
}
}