mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-23 19:25:13 +08:00
Escape semicolons and other chars that have syntactic meaning in various shell command situations
darcs-hash:20060214114739-ac50b-17616bf01a0504041c0d29ee9428abd8a9f9ad3a.gz
This commit is contained in:
parent
c595448f9c
commit
73d84fe136
@ -815,7 +815,7 @@ static const wchar_t *complete_get_desc_suffix( const wchar_t *suff_orig )
|
||||
}
|
||||
}
|
||||
|
||||
wchar_t *tmp = escape( suff, 0 );
|
||||
wchar_t *tmp = escape( suff, 1 );
|
||||
free(suff);
|
||||
suff = tmp;
|
||||
|
||||
|
2
event.c
2
event.c
@ -450,7 +450,7 @@ static void event_fire_internal( event_t *event )
|
||||
|
||||
for( j=0; j<al_get_count(&event->arguments); j++ )
|
||||
{
|
||||
wchar_t *arg_esc = escape( (wchar_t *)al_get( &event->arguments, j), 0 );
|
||||
wchar_t *arg_esc = escape( (wchar_t *)al_get( &event->arguments, j), 1 );
|
||||
sb_append( b, L" " );
|
||||
sb_append( b, arg_esc );
|
||||
free( arg_esc );
|
||||
|
Loading…
x
Reference in New Issue
Block a user