You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Michael Osipov <mi...@apache.org> on 2018/07/03 18:09:44 UTC

Inconsistencies makebase.sh

Friends,

I still see some inconsistencies and portability issues:

1. Some expressions, some are not. It should be consistently quoted to 
avoid whitespace issues or similar.
2. "cp -a" is not portable. Some platforms don't have it, e.g., HP-UX 
which I use for approx 10 years with Tomcat.
3. Evaluation uses sometimes backticks sometimes $(). Seems inconsistent.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Inconsistencies makebase.sh

Posted by "William L. Thomson Jr." <wl...@o-sinc.com>.
On Tue, 3 Jul 2018 20:09:44 +0200
Michael Osipov <mi...@apache.org> wrote:

> Friends,
> 
> I still see some inconsistencies and portability issues:
> 
> 1. Some expressions, some are not. It should be consistently quoted
> to avoid whitespace issues or similar.
> 2. "cp -a" is not portable. Some platforms don't have it, e.g., HP-UX 
> which I use for approx 10 years with Tomcat.
> 3. Evaluation uses sometimes backticks sometimes $(). Seems
> inconsistent.

Make sure to shellcheck the script, or any scripts
https://www.shellcheck.net/
https://github.com/koalaman/shellcheck

-- 
William L. Thomson Jr.