Imported from ../bash-2.05b.tar.gz.
[platform/upstream/bash.git] / builtins / umask.def
index 4d62184..19a0ac0 100644 (file)
@@ -1,7 +1,7 @@
 This file is umask.def, from which is created umask.c.
 It implements the builtin "umask" in Bash.
 
-Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.
+Copyright (C) 1987-2002 Free Software Foundation, Inc.
 
 This file is part of GNU Bash, the Bourne Again SHell.
 
@@ -107,8 +107,7 @@ umask_builtin (list)
             is lousy. */
          if (umask_value == -1)
            {
-             builtin_error ("`%s' is not an octal number from 000 to 777",
-                               list->word->word);
+             sh_erange (list->word->word, "octal number");
              return (EXECUTION_FAILURE);
            }
        }
@@ -222,7 +221,7 @@ parse_symbolic_mode (mode, initial_bits)
        case '=':
          break;
        default:
-         builtin_error ("bad symbolic mode operator: %c", op);
+         builtin_error ("`%c': invalid symbolic mode operator", op);
          return (-1);
        }
 
@@ -275,7 +274,7 @@ parse_symbolic_mode (mode, initial_bits)
        }
       else
        {
-         builtin_error ("bad character in symbolic mode: %c", *s);
+         builtin_error ("`%c': invalid symbolic mode character", *s);
          return (-1);
        }
     }