You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2019/05/30 15:12:49 UTC
[tomcat] branch 7.0.x updated (86ab275 -> 5a8d441)
This is an automated email from the ASF dual-hosted git repository.
markt pushed a change to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git.
from 86ab275 Update the location of the Java EE schemas
new 2f4246e Use test -t command to check if STDOUT is opened on a terminal
new 5a8d441 Update changelog for catalina.sh tty/test fix
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
bin/catalina.sh | 2 +-
webapps/docs/changelog.xml | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[tomcat] 01/02: Use test -t command to check if STDOUT is opened on
a terminal
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 2f4246e8a428207073e68bd236d895e0d8e06346
Author: Radosław Józwik <ti...@spelunca.net>
AuthorDate: Tue May 21 23:11:59 2019 +0200
Use test -t command to check if STDOUT is opened on a terminal
---
bin/catalina.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/catalina.sh b/bin/catalina.sh
index 308dcce..d479c8e 100755
--- a/bin/catalina.sh
+++ b/bin/catalina.sh
@@ -212,7 +212,7 @@ fi
# Bugzilla 37848: When no TTY is available, don't output to console
have_tty=0
-if [ "`tty`" != "not a tty" ]; then
+if [ -t 1 ]; then
have_tty=1
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[tomcat] 02/02: Update changelog for catalina.sh tty/test fix
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 5a8d44100db2280058dc15d9e9cf9173f112dec0
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu May 30 16:08:10 2019 +0100
Update changelog for catalina.sh tty/test fix
---
webapps/docs/changelog.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 5791513..015c77f 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -165,6 +165,11 @@
When using the <code>OneLineFormatter</code>, don't print a blank line
in the log after printing a stack trace. (markt)
</fix>
+ <fix>
+ Use the <code>test</code> command to check for terminal availability
+ rather than the <code>tty</code> command since the <code>tty</code>
+ based test fails on non-Eglish locales. (markt)
+ </fix>
</changelog>
</subsection>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org