diff --git a/builtin.c b/builtin.c index 6afa9aafb..932689ba8 100644 --- a/builtin.c +++ b/builtin.c @@ -880,9 +880,9 @@ static void functions_def( wchar_t *name, string_buffer_t *out ) event_get( &search, &ev ); sb_append2( out, - L"function ", - name, - (void *)0); + L"function ", + name, + (void *)0); if( desc && wcslen(desc) ) { @@ -892,6 +892,11 @@ static void functions_def( wchar_t *name, string_buffer_t *out ) free( esc_desc ); } + if( !function_get_shadows( name ) ) + { + sb_append2( out, L" --no-scope-shadowing", (void *)0 ); + } + for( i=0; i