From e6b9955fc187b257337429b7711c3d1558e43ff3 Mon Sep 17 00:00:00 2001 From: liljencrantz Date: Sun, 23 Sep 2007 08:19:20 +1000 Subject: [PATCH] Add switch fo scope hiding in output of functions builtin darcs-hash:20070922221920-75c98-7a17d24162a3fbdfd9c05690d2358511a3ca0281.gz --- builtin.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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