]> git.pld-linux.org Git - packages/bash.git/commitdiff
- better test
authorankry <ankry@pld-linux.org>
Sat, 28 May 2005 20:27:36 +0000 (20:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bashrc -> 1.19

bashrc

diff --git a/bashrc b/bashrc
index 85fe46fd773be5833358727644fc133c5bc3bff9..c0a77b7300e7bf523812a3a9dafe1ba23544a9ca 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -22,4 +22,4 @@ for i in `find /etc/shrc.d -name '*.sh'` ; do
 done
 unset i
 
-[ "`LC_ALL= tty`" = "not a tty" ] || stty erase `tput kbs`
+[ -n "$TERM" ] && tty >/dev/null 2>&1 && stty erase `tput kbs`
This page took 0.061965 seconds and 4 git commands to generate.