Re: R55: -DMKSH_BINSHREDUCED ineffective

2017-04-18 Thread Thorsten Glaser
Martijn Dekker dixit:

>Op 16-04-17 om 01:24 schreef Thorsten Glaser:
>> Martijn Dekker dixit:
>>
>>> When building lksh R55, adding -DMKSH_BINSHREDUCED to the CFLAGS no
>>
>> CPPFLAGS.
>
>Done that, no difference.

Works for me well enough.

tglase@tglase:~/b $ CPPFLAGS=-DMKSH_BINSHREDUCED mksh 
/home/tglase/mbsd/mksh/Build.sh -r -L
[…]
tglase@tglase:~/b $ ln -s lksh sh
tglase@tglase:~/b $ ./lksh -c 'set -o; echo $KSH_VERSION'
Current option settings
allexport  off   inherit-xtrace onnoexec off   pipefail   
off   utf8-mode  off
bgnice off   interactiveoff   noglob off   posix  
off   verboseoff
braceexpandonkeywordoff   nohup  onprivileged 
off   vi off
emacs  onlogin  off   nolog  off   restricted 
off   vi-esccomplete off
errexitoff   markdirs   off   notify off   sh 
off   vi-tabcomplete on
gmacs  off   monitoroff   nounsetoff   stdin  
off   viraw  off
ignoreeof  off   noclobber  off   physical   off   trackall   
onxtrace off
@(#)LEGACY KSH R55 2017/04/17
tglase@tglase:~/b $ ./sh -c 'set -o; echo $KSH_VERSION'
Current option settings
allexport  off   inherit-xtrace onnoexec off   pipefail   
off   utf8-mode  off
bgnice off   interactiveoff   noglob off   posix  
off   verboseoff
braceexpandoff   keywordoff   nohup  onprivileged 
off   vi off
emacs  onlogin  off   nolog  off   restricted 
off   vi-esccomplete off
errexitoff   markdirs   off   notify off   sh 
onvi-tabcomplete on
gmacs  off   monitoroff   nounsetoff   stdin  
off   viraw  off
ignoreeof  off   noclobber  off   physical   off   trackall   
onxtrace off
@(#)LEGACY KSH R55 2017/04/17

>Also, that is not clear from mksh.htm which says to add it to "the
>command line".

Of course it is, -D is a cpp(1) flag and thus must be in CPPFLAGS.

bye,
//mirabilos
-- 
In traditional syntax ' is ignored, but in c99 everything between two ' is
handled as character constant.  Therefore you cannot use ' in a preproces-
sing file in c99 mode.  -- Ragge
No faith left in ISO C99, undefined behaviour, etc.


Re: R55: -DMKSH_BINSHREDUCED ineffective

2017-04-15 Thread Martijn Dekker
Op 16-04-17 om 01:24 schreef Thorsten Glaser:
> Martijn Dekker dixit:
> 
>> When building lksh R55, adding -DMKSH_BINSHREDUCED to the CFLAGS no
> 
> CPPFLAGS.

Done that, no difference.

Also, that is not clear from mksh.htm which says to add it to "the
command line".

'truste,

- M.



Re: R55: -DMKSH_BINSHREDUCED ineffective

2017-04-15 Thread Thorsten Glaser
Martijn Dekker dixit:

>When building lksh R55, adding -DMKSH_BINSHREDUCED to the CFLAGS no

CPPFLAGS.

//mirabilos
-- 
Stéphane, I actually don’t block Googlemail, they’re just too utterly
stupid to successfully deliver to me (or anyone else using Greylisting
and not whitelisting their ranges). Same for a few other providers such
as Hotmail. Some spammers (Yahoo) I do block.


R55: -DMKSH_BINSHREDUCED ineffective

2017-04-15 Thread Martijn Dekker
When building lksh R55, adding -DMKSH_BINSHREDUCED to the CFLAGS no
longer seems to build a reduced-size binary. It's identical in size to
mksh now and seems to have the full set of interactive editing features.

(I don't have time to hunt for the cause at the moment so for now I'm
simply reporting it.)

- M.