On Sat, Dec 08, 2018 at 07:17:59PM +0100, Ingo Schwarze wrote:
> Hi Ralph,
>
> Ralph Corderoy wrote on Sat, Dec 08, 2018 at 11:28:40AM +0000:
> > Ingo:
> >> Ralph:
> >>> Ingo:
> >>>> Ralph:
>
[...]
> The printf(1) utility is already used in
>
> * Makefile.in (5 places)
> * bootstrap (8 places)
> * build-aux (10 places in multiple scripts)
> * configure (several places)
>
[...]
> >> . pso sh -c \
> >> "printf '%s' '.ds *f ' ; \
> >> ls \\*[fontpath]/dev\*[.T] \
> >> - | tr '[:cntrl:]' '[ *32]'"
> >> + | tr '\\\\n' ' '"
> >> . \" This dummy line is necessary; the preceding line eats it.
>
For the record.
Avoid unnecessary output (files contrib/hdtbl/examples/fonts_[nx].in).
ls \\*[fontpath]/dev\*[.T] \
| tr '[:cntrl:]' '[ *32]'"
becomes
cd \\*[fontpath]/dev\*[.T] ; \
printf '%s ' * "
--
Bjarni I. Gislason