⚠️ copier coller change le type de quote ce qui genere des erreur bash: syntax error near unexpected token '"’

Lexer

Prompt test Bon Resultat eux au lexer Bon Resultat eux au paser (indiquer si different) Bon resultat eux a l’expander (indiquer si different) erreur eux Resultat attendu bash
tab retour a la ligne pas d’enregistrement dans l’historique
space & tab retour a la ligne pas d’enregistrement dans l’historique
ec$2ho mdr str -> [ec] type -> WORD
str -> [$2] type -> SPECIAL_VAR
str -> [ho] type -> WORD
str -> [ ] type -> BLANK
str -> [mdr] type -> WORD
$text str -> [$text] type -> VARIABLE
$ str -> [$] type -> WORD
$2
$% str -> [$2] type -> SPECIAL_VAR
str -> [$%] type -> SPECIAL_VAR
$text test str -> [$text] type -> VARIABLE
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [test] type -> WORD
$text test str -> [$text] type -> VARIABLE
str -> [ ] type -> PIPE
str -> [test] type -> WORD
$? str -> [$?] type -> RETURN_VALUE
$"titi” str -> [$] type -> WORD
str -> [titi] type -> D_QUOTE
"$"tutu$"toto” str -> [$] type -> D_QUOTE
str -> [tutu] type -> WORD
str -> [$] type -> WORD
str -> [toto] type -> D_QUOTE $tututoto: command not found
"$"titi str -> [$] type -> D_QUOTE
str -> [titi] type -> WORD
"$text” str -> [$text] type -> D_QUOTE_VAR
tets << test str -> [tets] type -> WORD
str -> [ ] type -> BLANK
str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [test] type -> WORD
titi << str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [<<] type -> HEREDOC bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token `newline
titi < str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [<] type -> HEREDOC bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token `newline
titi > str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> HEREDOC bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token `newline
titi >> str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [>>] type -> HEREDOC bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token `newline
titi< str -> [titi] type -> WORD
str -> [<] type -> HEREDOC bash: syntax error near unexpected token 'newline’
titi<< str -> [titi] type -> WORD
str -> [<<] type -> HEREDOC bash: syntax error near unexpected token 'newline’
titi> str -> [titi] type -> WORD
str -> [>] type -> HEREDOC bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token `newline
titi>> str -> [titi] type -> WORD
str -> [>>] type -> HEREDOC bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token `newline
<< test str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [test] type -> WORD
<<test str -> [<<] type -> HEREDOC
str -> [test] type -> WORD
< str -> [<] type -> R_REDIRECT bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token `newline'
> str -> [>] type -> W_REDIRECT bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token `newline'
<< str -> [<<] type -> HEREDOC bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token 'newline’
>> str -> [>>] type -> W_APPEND_REDIRECT bash: syntax error near unexpected token 'newline’ bash: syntax error near unexpected token `newline'
<< << str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [<<] type -> HEREDOC
<<< bash: syntax error near unexpected token '<’
titi<>toto str -> [titi] type -> WORD
str -> [<] type -> R_REDIRECT
str -> [>] type -> W_REDIRECT
str -> [toto] type -> WORD bash: syntax error near unexpected token '>’
titi><toto str -> [titi] type -> WORD
str -> [>] type -> W_REDIRECT
str -> [<] type -> R_REDIRECT
str -> [toto] type -> WORD bash: syntax error near unexpected token '<’
titi ><toto str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [<] type -> R_REDIRECT
str -> [toto] type -> WORD bash: syntax error near unexpected token '<’
titi > < toto str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [<] type -> R_REDIRECT
str -> [ ] type -> BLANK
str -> [toto] type -> WORD bash: syntax error near unexpected token '<’
titi >><< test str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [>>] type -> W_APPEND_REDIRECT
str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [test] type -> WORD bash: syntax error near unexpected token '<<’ bash: syntax error near unexpected token '<<’
titi >> << test str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [>>] type -> W_APPEND_REDIRECT
str -> [ ] type -> BLANK
str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [test] type -> WORD bash: syntax error near unexpected token '<<’ bash: syntax error near unexpected token '<<’
() [] {} & ; str -> [()] type -> WORD
str -> [ ] type -> BLANK
str -> [[]] type -> WORD
str -> [ ] type -> BLANK
str -> [{}] type -> WORD
str -> [ ] type -> BLANK
str -> [&] type -> WORD
str -> [ ] type -> BLANK
str -> [;] type -> WORD
()[]{}&; str -> [()[]{}&;] type -> WORD
"()[]{}&;” str -> [()[]{}&;] type -> D_QUOTE
test bash: syntax error near unexpected token '
tets bash: syntax error near unexpected token '
“$” “text$” bash: syntax error near unexpected token '
test titi str -> [test] type -> WORD
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [titi] type -> WORD bash: syntax error near unexpected token '
toto tutu str -> [toto] type -> WORD
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [tutu] type -> WORD bash: syntax error near unexpected token '
<$ str -> [<] type -> R_REDIRECT
str -> [$] type -> WORD
< $ str -> [<] type -> R_REDIRECT
str -> [ ] type -> BLANK
str -> [$] type -> WORD
<”$” str -> [<] type -> R_REDIRECT
str -> [$] type -> D_QUOTE
< "$” str -> [<] type -> R_REDIRECT
str -> [ ] type -> BLANK
str -> [$] type -> D_QUOTE
<$nve str -> [<] type -> R_REDIRECT
str -> [$nve] type -> VARIABLE
< $nve str -> [<] type -> R_REDIRECT
str -> [ ] type -> BLANK
str -> [$nve] type -> VARIABLE
<”$”nve str -> [<] type -> R_REDIRECT
str -> [$] type -> D_QUOTE
str -> [nve] type -> WORD
<”$n”ve str -> [<] type -> R_REDIRECT
str -> [$n] type -> D_QUOTE_VAR
str -> [ve] type -> WORD
< word$n”vi”$nvi str -> [<] type -> R_REDIRECT
str -> [ ] type -> BLANK
str -> [word] type -> WORD
str -> [$n”vi”$nvi] type -> VARIABLE
<word$nvi”$”nvi str -> [<] type -> R_REDIRECT
str -> [word] type -> WORD
str -> [$nvi”$”nvi] type -> VARIABLE
< word$nvi”$n”vi str -> [<] type -> R_REDIRECT
str -> [ ] type -> BLANK
str -> [word] type -> WORD
str -> [$nvi”$n”vi] type -> VARIABLE
<word”$”nvi$”nvi” str -> [<] type -> R_REDIRECT
str -> [word] type -> WORD
str -> [$] type -> D_QUOTE
str -> [nvi] type -> WORD
str -> [$] type -> WORD
str -> [nvi] type -> D_QUOTE
<word”$n”vi$”nv”i str -> [<] type -> R_REDIRECT
str -> [word”] type -> WORD
str -> [$n”vi$”nv”i] type -> VARIABLE
<< $toto str -> [$toto] type -> VARIABLE
<> str -> [<] type -> R_REDIRECT
str -> [>] type -> W_REDIRECT bash: syntax error near unexpected token 'newline'
ls cat str -> [ls] type -> WORD
str -> [ ] type -> PIPE
str -> [cat] type -> WORD
type -> BLANK
str -> [lol] type -> WORD str -> [ls] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [lol] type -> WORD
echo coucou > mdr str -> [echo] type -> WORD
str -> [ ] type -> BLANK
str -> [coucou] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [mdr] type -> WORD
e'c'ho lol str -> [e] type -> WORD
str -> [c] type -> S_QUOTE
str -> [ho] type -> WORD
str -> [ ] type -> BLANK
str -> [lol] type -> WORD
lol lol str -> [lol] type -> WORD
str -> [ ] type -> BLANK
str -> [lol] type -> WORD
lol str -> [lol] type -> WORD
> lol str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [lol] type -> WORD
cd lol $coucou 'cou'$lol <hou >>lol <d <j>l (#) allo 'cou$tata' "agrougrou$pouah$akiya” str -> [cd] type -> WORD
str -> [ ] type -> BLANK
str -> [lol] type -> WORD
str -> [ ] type -> BLANK
str -> [$coucou] type -> VARIABLE
str -> [ ] type -> BLANK
str -> [cou] type -> S_QUOTE
str -> [$lol] type -> VARIABLE
str -> [ ] type -> BLANK
str -> [<] type -> R_REDIRECT
str -> [hou] type -> WORD
str -> [ ] type -> BLANK
str -> [>>] type -> W_APPEND_REDIRECT
str -> [lol] type -> WORD
str -> [ ] type -> BLANK
str -> [<] type -> R_REDIRECT
str -> [d] type -> WORD
str -> [ ] type -> BLANK
str -> [<] type -> R_REDIRECT
str -> [j] type -> WORD
str -> [>] type -> W_REDIRECT
str -> [l] type -> WORD
str -> [ ] type -> BLANK
str -> [(#)] type -> WORD
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [allo] type -> WORD
str -> [ ] type -> BLANK
str -> [cou$tata] type -> S_QUOTE
str -> [ ] type -> BLANK
str -> [agrougrou$pouah$akiya] type -> D_QUOTE_VAR
ce >> "est" << 'test' >check<afte str -> [ce] type -> WORD
str -> [ ] type -> BLANK
str -> [>>] type -> W_APPEND_REDIRECT
str -> [ ] type -> BLANK
str -> [est] type -> D_QUOTE
str -> [ ] type -> BLANK
str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [test] type -> S_QUOTE
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [check] type -> WORD
str -> [<] type -> R_REDIRECT
str -> [after] type -> WORD
ce >> "est" << 'test' >check<after >> str -> [ce] type -> WORD
str -> [ ] type -> BLANK
str -> [>>] type -> W_APPEND_REDIRECT
str -> [ ] type -> BLANK
str -> [est] type -> D_QUOTE
str -> [ ] type -> BLANK
str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [test] type -> S_QUOTE
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [check] type -> WORD
str -> [<] type -> R_REDIRECT
str -> [after] type -> WORD
str -> [ ] type -> BLANK
str -> [>>] type -> W_APPEND_REDIRECT bash: syntax error near unexpected token 'newline’
test >> toto << $tutu str -> [test] type -> WORD
str -> [ ] type -> BLANK
str -> [>>] type -> W_APPEND_REDIRECT
str -> [ ] type -> BLANK
str -> [toto] type -> WORD
str -> [ ] type -> BLANK
str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [$tutu] type -> VARIABLE
ls cat str -> [ls] type -> WORD
str -> [ ] type -> PIPE
str -> [cat] type -> WORD
ls ls > str -> [ls] type -> WORD
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [ls] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT bash: syntax error near unexpected token 'newline’
ls > s str -> [ls] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [s] type -> WORD bash: syntax error near unexpected token ' bash: syntax error near unexpected token `
titi > toto str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [toto] type -> WORD bash: syntax error near unexpected token ' bash: syntax error near unexpected token `
titi> toto bash: syntax error near unexpected token 'newline’
DECISION TECHNIQUE Command 'titi' not found,
ls < k bash: syntax error near unexpected token '
ls >> bash: syntax error near unexpected token '
ls << t bash: syntax error near unexpected token '
titi > toto bash: syntax error near unexpected token 'newline’
DECISION TECHNIQUE Command 'titi' not found,
titi > toto str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [toto] type -> WORD bash: syntax error near unexpected token ' bash: syntax error near unexpected token `
titi > toto str -> [titi] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [toto] type -> WORD bash: syntax error near unexpected token ' bash: syntax error near unexpected token `
Command 'titi' not found
<< $lol str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [$lol] type -> VARIABLE
ls > s str -> [ls] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [s] type -> WORD bash: syntax error near unexpected token '
ls ls > str -> [ls] type -> WORD
str -> [ ] type -> BLANK
str -> [ ] type -> PIPE
str -> [ ] type -> BLANK
str -> [ls] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT bash: syntax error near unexpected token 'newline’
echo lol > $toutou str -> [echo] type -> WORD
str -> [ ] type -> BLANK
str -> [lol] type -> WORD
str -> [ ] type -> BLANK
str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [$toutou] type -> VARIABLE
< titi str -> [<] type -> R_REDIRECT
str -> [ ] type -> BLANK
str -> [titi] type -> WORD
<< titi str -> [<<] type -> HEREDOC
str -> [ ] type -> BLANK
str -> [titi] type -> WORD
> titi str -> [>] type -> W_REDIRECT
str -> [ ] type -> BLANK
str -> [titi] type -> WORD
>> titi str -> [>>] type -> W_APPEND_REDIRECT
str -> [ ] type -> BLANK
str -> [titi] type -> WORD
<titi str -> [<] type -> R_REDIRECT
str -> [titi] type -> WORD
<<titi str -> [<<] type -> HEREDOC
str -> [titi] type -> WORD
>titi str -> [>] type -> W_REDIRECT
str -> [titi] type -> WORD
>>titi str -> [>>] type -> W_APPEND_REDIRECT
str -> [titi] type -> WORD
$test >> titi "gro"'minet’ls

Redirection

| --- | --- | --- | --- |

Echo

| --- | --- | --- | --- |

Commande