mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
Allow backslash of quotes within quotes
darcs-hash:20060212161331-ac50b-c25affaa4b18e1654dab3d08debafa95017009ea.gz
This commit is contained in:
@@ -272,11 +272,11 @@ static void read_string( tokenizer *tok )
|
||||
case L'"':
|
||||
{
|
||||
|
||||
wchar_t *end = quote_end( tok->buff );
|
||||
const wchar_t *end = quote_end( tok->buff );
|
||||
tok->last_quote = *tok->buff;
|
||||
if( end )
|
||||
{
|
||||
tok->buff=end;
|
||||
tok->buff=(wchar_t *)end;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -311,10 +311,10 @@ static void read_string( tokenizer *tok )
|
||||
case L'\'':
|
||||
case L'\"':
|
||||
{
|
||||
wchar_t *end = quote_end( tok->buff );
|
||||
const wchar_t *end = quote_end( tok->buff );
|
||||
if( end )
|
||||
{
|
||||
tok->buff=end;
|
||||
tok->buff=(wchar_t *)end;
|
||||
}
|
||||
else
|
||||
do_loop = 0;
|
||||
|
||||
Reference in New Issue
Block a user