[LTP] [PATCH 1/2] docparse/parse.sh: Fix parsing on dash
Petr Vorel
pvorel@suse.cz
Thu Dec 17 13:36:15 CET 2020
> Hi!
> > bash keeps escape sequences (e.g. \t and \n) when using echo:
> > $ a="-v\tverbose output\n"; echo "$a"
> > -v\tverbose output\n
> > $
> > But dash interprets them (behaves like echo -e on bash):
> > $ a="-v\tverbose output\n"; echo -e "$a"
> > -e -v verbose output
> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
Thanks for both reviews!
> Can we remove the \t from the perf_event_open02.c as well please? I
> doubt that it will do any good when we pass the strings into asciidoc
> parser...
Sure, I'll replace it with <tab>.
Kind regards,
Petr
More information about the ltp
mailing list