42shpimanmls / 42sh

Shell project at 42
3 stars 0 forks source link

history is not correctly read if it contains an empty line in multiline #326

Closed n0izn0iz closed 7 years ago

n0izn0iz commented 7 years ago
e1r8p18% ./42sh
[nmeier@e1r8p18.42.fr ~/Projects/42sh]$ real phail "
dquote>
dquote> "
>42sh: real: no such command.
[nmeier@e1r8p18.42.fr ~/Projects/42sh]$ forget me
>42sh: forget: no such command.
[nmeier@e1r8p18.42.fr ~/Projects/42sh]$

CTRL-D

e1r8p18% ./42sh
[nmeier@e1r8p18.42.fr ~/Projects/42sh]$ 

UP

[nmeier@e1r8p18.42.fr ~/Projects/42sh]$ real phail "

.42sh_history

real phail "

"
forget me

Doit y avoir un "if empty line, stop reading history"