]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - builtins/test.def
Imported from ../bash-2.03.tar.gz.
[thirdparty/bash.git] / builtins / test.def
index eded0faed1fb58a45333b12dd0a18a682da099c1..abae8b4a26d7b1e1628a13fde62818fd03c4dfeb 100644 (file)
@@ -129,7 +129,10 @@ test_builtin (list)
   if (list == 0)
     {
       if (this_command_name[0] == '[' && !this_command_name[1])
-       builtin_error ("missing `]'");
+       {
+         builtin_error ("missing `]'");
+         return (EX_BADUSAGE);
+       }
 
       return (EXECUTION_FAILURE);
     }