diff options
author | Jari Aalto <jari.aalto@cante.net> | 2001-11-13 17:56:06 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:54 +0000 |
commit | f73dda092b33638d2d5e9c35375f687a607b5403 (patch) | |
tree | f21584e70a444d6a1ecba0fb5e2cf79e8cce91db /builtins/setattr.def | |
parent | 28ef6c316f1aff914bb95ac09787a3c83c1815fd (diff) | |
download | bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.gz |
Imported from ../bash-2.05a.tar.gz.
Diffstat (limited to 'builtins/setattr.def')
-rw-r--r-- | builtins/setattr.def | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/builtins/setattr.def b/builtins/setattr.def index 2e3ad842..dad11fdf 100644 --- a/builtins/setattr.def +++ b/builtins/setattr.def @@ -40,7 +40,7 @@ $PRODUCES setattr.c extern int posixly_correct; extern int array_needs_making; extern char *this_command_name; -extern Function *this_shell_builtin; +extern sh_builtin_func_t *this_shell_builtin; #ifdef ARRAY_VARS extern int declare_builtin (); @@ -248,7 +248,11 @@ set_or_show_attributes (list, attribute, nodefs) if (arrays_only && array_p (var) == 0) continue; #endif +#if 0 if ((var->attributes & attribute) && invisible_p (var) == 0) +#else + if ((var->attributes & attribute)) +#endif show_var_attributes (var, READONLY_OR_EXPORT, nodefs); } free (variable_list); @@ -327,6 +331,8 @@ show_var_attributes (var, pattr, nodefs) printf ("%s\n", var->name); else if (function_p (var)) printf ("%s\n", named_function_string (var->name, function_cell (var), 1)); + else if (invisible_p (var)) + printf ("%s\n", var->name); else { x = sh_double_quote (value_cell (var) ? value_cell (var) : ""); @@ -342,7 +348,6 @@ show_name_attributes (name, nodefs) int nodefs; { SHELL_VAR *var; - int ret; var = find_tempenv_variable (name); if (var == 0) |