Tidy up Show_Encoding().
[profile.git] / .bash_profile
index a89f59e..6fe0759 100644 (file)
@@ -1,4 +1,4 @@
-if tty -s || [ "${0:0:1}" = "-" -o "$1" = "force" ]; then
+if [ -t 0 -o "${0:0:1}" = "-" -o "$1" = "force" ]; then
   # Remember if nocaseglob was on.
   shopt -q nocaseglob
   nocg=$?