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.