mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Add switch fo scope hiding in output of functions builtin
darcs-hash:20070922221920-75c98-7a17d24162a3fbdfd9c05690d2358511a3ca0281.gz
This commit is contained in:
parent
e1afe17671
commit
e6b9955fc1
1 changed files with 8 additions and 3 deletions
11
builtin.c
11
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<al_get_count( &ev); i++ )
|
||||
{
|
||||
event_t *next = (event_t *)al_get( &ev, i );
|
||||
|
|
Loading…
Reference in a new issue