Emily Shaffer <emilyshaffer@xxxxxxxxxx> writes: > --- /dev/null > +++ b/generate-bugreport-config-safelist.sh > @@ -0,0 +1,18 @@ > +#!/bin/sh > + > +cat <<EOF Quote the EOF if you are not doing parameter expansion in HERE-DOC. > +/* Automatically generated by bugreport-generate-config-safelist.sh */ > + > + > +static const char *bugreport_config_safelist[] = { > +EOF > + > +# cat all regular files in Documentation/config > +find Documentation/config -type f -exec cat {} \; | > +# print the command name which matches the annotate-bugreport macro > +sed -n 's/^\([^ ]*\) *annotate:bugreport\[include\].* ::$/ "\1",/p' \ > + | sort > + End the first line with a pipe '|' instead of a backslash, and lose the pipe from the beginning of the second line. > +cat <<EOF > +}; > +EOF