Browse Source

Use proper directory name also for exit status temp

Alois Mahdal 2 years ago
parent
commit
26efba26bc
3 changed files with 5 additions and 5 deletions
  1. 1
    1
      dotfiles/bashum/head.bashrc
  2. 2
    2
      dotfiles/bashum/main.bashrc
  3. 2
    2
      dotfiles/bashum/post.bashrc

+ 1
- 1
dotfiles/bashum/head.bashrc View File

@@ -1,6 +1,6 @@
1 1
 #!/bin/bash
2 2
 
3
-mkdir -p /var/tmp/bash-rv
3
+mkdir -p /var/tmp/bashum-rv
4 4
 
5 5
 BASHUM_TASK_CTX=false
6 6
 BASHUM_BMO_NAG=false

+ 2
- 2
dotfiles/bashum/main.bashrc View File

@@ -667,8 +667,8 @@ x4x() {
667 667
     xo | pad4 | xii
668 668
 }
669 669
 
670
-RV_TMP="/tmp/bash-rv"
671
-mkdir -p "$RV_TMP"
670
+BASHUM__RV_TMP="/tmp/bashum-rv"
671
+mkdir -p "$BASHUM__RV_TMP"
672 672
 
673 673
 ### ...... ###
674 674
 ### OTHERS ###

+ 2
- 2
dotfiles/bashum/post.bashrc View File

@@ -9,7 +9,7 @@ __bashum__lastrv() {
9 9
     local rvfile        # path to return value cache file
10 10
     local lastrv        # actual last return value
11 11
     local do_rm         # true if we should remove the cache
12
-    rvfile="$RV_TMP/$$.lastrv"
12
+    rvfile="$BASHUM__RV_TMP/$$.lastrv"
13 13
     lastrv="$(cat "$rvfile")"
14 14
     do_rm=false
15 15
     test "$1" == "-r" && do_rm=true
@@ -23,7 +23,7 @@ __bashum__lastrv() {
23 23
 }
24 24
 
25 25
 __bashum__save_rv() {
26
-    local rvfile="$RV_TMP/$$.lastrv"
26
+    local rvfile="$BASHUM__RV_TMP/$$.lastrv"
27 27
     [ -w "${rvfile%/*}" ] && echo "$1" > "$rvfile"
28 28
 }
29 29