]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - builtins/set.def
bash-4.3-beta overlay
[thirdparty/bash.git] / builtins / set.def
index 421105be50d096aa67082c987e3c8959c3f29693..c4a7001dffeb279cafe6294b44e49f961430531b 100644 (file)
@@ -863,7 +863,7 @@ unset_builtin (list)
        }
       else
 #endif /* ARRAY_VARS */
-      tem = unset_function ? unbind_func (name) : unbind_variable (name);
+      tem = unset_function ? unbind_func (name) : (nameref ? unbind_nameref (name) : unbind_variable (name));
 
       /* This is what Posix.2 says:  ``If neither -f nor -v
         is specified, the name refers to a variable; if a variable by