Re: [dev] Preprocessor

2019-05-01 Thread Adrian Grigore
In the code itself as in compile your own `pp.c`.

On Thu, May 2, 2019 at 2:45 AM Adrian Grigore
 wrote:
>
> 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  wrote:
> >
> > Hi,
> >
> > 2019-05-01 18:21 GMT, Adrian Grigore :
> > > I think it's done:
> > >
> > > http://adi.tilde.institute/tmp/pp.c
> > >
> > >
> > >
> > > On Thu, Apr 25, 2019 at 6:44 AM Adrian Grigore
> > >  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  wrote:
> > >> >
> > >> > On Tue, 23 Apr 2019 12:26:04 -0400
> > >> > Cág  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 
> > >> >
> > >>
> > >>
> > >> --
> > >> 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/



-- 
Thank you,
Adi,
Freelance Developer
http://adi.tilde.institute/



Re: [dev] Preprocessor

2019-05-01 Thread Adrian Grigore
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  wrote:
>
> Hi,
>
> 2019-05-01 18:21 GMT, Adrian Grigore :
> > I think it's done:
> >
> > http://adi.tilde.institute/tmp/pp.c
> >
> >
> >
> > On Thu, Apr 25, 2019 at 6:44 AM Adrian Grigore
> >  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  wrote:
> >> >
> >> > On Tue, 23 Apr 2019 12:26:04 -0400
> >> > Cág  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 
> >> >
> >>
> >>
> >> --
> >> 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/



Re: [dev] Preprocessor

2019-05-01 Thread Teodoro Santoni
Hi,

2019-05-01 18:21 GMT, Adrian Grigore :
> I think it's done:
>
> http://adi.tilde.institute/tmp/pp.c
>
>
>
> On Thu, Apr 25, 2019 at 6:44 AM Adrian Grigore
>  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  wrote:
>> >
>> > On Tue, 23 Apr 2019 12:26:04 -0400
>> > Cág  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 
>> >
>>
>>
>> --
>> 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.



Re: [dev] Preprocessor

2019-05-01 Thread Adrian Grigore
I think it's done:

http://adi.tilde.institute/tmp/pp.c



On Thu, Apr 25, 2019 at 6:44 AM Adrian Grigore
 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  wrote:
> >
> > On Tue, 23 Apr 2019 12:26:04 -0400
> > Cág  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 
> >
>
>
> --
> Thank you,
> Adi,
> Freelance Developer
> http://adi.tilde.institute/



--
Thank you,
Adi,
Freelance Developer
http://adi.tilde.institute/