mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00: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
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue