OSSP CVS Repository

ossp - Check-in [4867]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4867
Date: 2004-Nov-24 17:29:49 (local)
2004-Nov-24 16:29:49 (UTC)
User:rse
Branch:
Comment: PS1 should be not adjusted in batch-mode
Tickets:
Inspections:
Files:
ossp-pkg/due/.due/due.cd.sh      1.3 -> 1.4     4 inserted, 4 deleted

ossp-pkg/due/.due/due.cd.sh 1.3 -> 1.4

--- due.cd.sh    2004/10/22 19:32:52     1.3
+++ due.cd.sh    2004/11/24 16:29:49     1.4
@@ -64,11 +64,11 @@
         DIRSTACKREV=()
     fi
 
-    #   adjust the command-line prompt with new $PWD (always)
-    PS1="\\u@\\h:$PWD\n\\\$ "
-
-    #   adjust the X11 terminal window title with new $PWD (optional)
     if [ ".$BASH_INTERACTIVE" = .yes ]; then
+        #   adjust the command-line prompt with new $PWD (always)
+        PS1="\\u@\\h:$PWD\n\\\$ "
+
+        #   adjust the X11 terminal window title with new $PWD (optional)
         case "$TERM" in
             xterm | xterm-* )
                 echo -n $'\e]0;'"$USER@$HOSTNAME:$PWD"$'\cg'

CVSTrac 2.0.1