Re: [dev] Preprocessor

From: Adrian Grigore <adrian.emil.grigore_AT_gmail.com>
Date: Thu, 2 May 2019 02:45:51 +0300

I sanitized double-quotes because they have a high frequency in HTML files and
you would have to do lots of escaping. I was also playing with HTML files while
developing.

I sanitized backticks before "$()" are the POSIX preferred method for command
substitution. Rest are normal POSIX sh(1) strings.

I may remove all form of sanitization and people could add it themselves in the
code itself as and if necessary.

What do you think? What's your preference?

On Wed, May 1, 2019 at 10:57 PM Teodoro Santoni <asbrasbra_AT_gmail.com> wrote:
>
> Hi,
>
> 2019-05-01 18:21 GMT, Adrian Grigore <adrian.emil.grigore_AT_gmail.com>:
> > I think it's done:
> >
> > http://adi.tilde.institute/tmp/pp.c
> >
> >
> >
> > On Thu, Apr 25, 2019 at 6:44 AM Adrian Grigore
> > <adrian.emil.grigore_AT_gmail.com> wrote:
> >>
> >> Ok, refactored.
> >>
> >> http://adi.tilde.institute/tmp/pp.c
> >>
> >> Sorry, was experimenting before.
> >>
> >> On Wed, Apr 24, 2019 at 11:58 PM opal hart <opal_AT_wowana.me> wrote:
> >> >
> >> > On Tue, 23 Apr 2019 12:26:04 -0400
> >> > Cág <ca6c_AT_bitmessage.ch> wrote:
> >> > > http://porkmail.org/era/unix/award.html
> >> >
> >> > `ls | cat` is actually useful to combat the differences between
> >> > implementations of ls(1) and ensure a one-column, uncoloured list
> >> >
> >> > --
> >> > wowaname <https://wowana.me/pgp>
> >> >
> >>
> >>
> >> --
> >> Thank you,
> >> Adi,
> >> Freelance Developer
> >> http://adi.tilde.institute/
> >
> >
> >
> > --
> > Thank you,
> > Adi,
> > Freelance Developer
> > http://adi.tilde.institute/
> >
> >
>
> Since you've ditched cat with heredocs for echo, and started to
> sanitize double-quotes and backticks running down the PHP path of
> doom, you may want to think about whether to sanitize or not dollar
> ($) symbols, too.
> It's a very good idea this one, I prefer this way to the m4 quirkies.
>


-- 
Thank you,
Adi,
Freelance Developer
http://adi.tilde.institute/
Received on Thu May 02 2019 - 01:45:51 CEST

This archive was generated by hypermail 2.3.0 : Thu May 02 2019 - 02:24:07 CEST