[packages/mksh] - behave as proper sh when invoked as /bin/sh, wothout fancy, incompatible hacks - rel 2

Elan Ruusamäe glen at pld-linux.org
Wed Dec 17 11:15:09 CET 2014


On 17.12.2014 10:07, Kacper Kornet wrote:
>>      - behave as proper sh when invoked as /bin/sh, wothout fancy, incompatible hacks
>>      - rel 2
> This change breaks our rc-scripts:
>
> $ rpm -q mksh
> mksh-50d-1.x86_64
> $ /bin/sh -c "echo -en '\n'"
>
> $ rpm -q mksh
> mksh-50d-2.x86_64
> $ /bin/sh -c "echo -en '\n'"
> -en \n
>
> There was a small discussion about it some time ago:
> https://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2011-May/153795.html

so, our rc-scripts is not using portable shell. what would be portable 
(posix) version of above code that behaves as rc-scripts intended?

printf?


-- 
glen



More information about the pld-devel-en mailing list