aboutsummaryrefslogtreecommitdiff
path: root/bash/core.sh
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-15 01:24:43 -0500
committerJoel Martin <github@martintribe.org>2014-04-15 01:24:43 -0500
commit7e9a2883fe5c25a521b1dc37e4c549e1ed508ece (patch)
treeb444224dae6db978d4b5902f2a5b37046ba40d3e /bash/core.sh
parenta2849f89e7892feee256169398b1d2d82a2b8231 (diff)
downloadmal-7e9a2883fe5c25a521b1dc37e4c549e1ed508ece.tar.gz
mal-7e9a2883fe5c25a521b1dc37e4c549e1ed508ece.zip
All: fix get. All pass stepA tests.
Diffstat (limited to 'bash/core.sh')
-rw-r--r--bash/core.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash/core.sh b/bash/core.sh
index 0da820c..d5750e6 100644
--- a/bash/core.sh
+++ b/bash/core.sh
@@ -145,7 +145,9 @@ _get () {
local obj="${ANON["${1}"]}"
eval r="\${${obj}[\"${2}\"]}" ;;
list|vector)
- _nth "${1}" "${2}"
+ _nth "${1}" "${2}" ;;
+ nil)
+ r="${__nil}" ;;
esac
}
get () {