profile: fixed - function.

This commit is contained in:
k1574 2022-01-22 21:15:23 +05:00
parent bd572d40a1
commit 76e351d7c7

View file

@ -126,10 +126,10 @@ tmpcdfile = `{mktemp}
fn c { fn c {
# History implementation. # History implementation.
oldpwd = `{pwd}
if(builtin cd $1 && test -n $1){ if(builtin cd $1 && test -n $1){
pwd = `{pwd}
cat $cdfile > $tmpcdfile cat $cdfile > $tmpcdfile
{echo $pwd ; cat $tmpcdfile } | \ {echo $oldpwd ; cat $tmpcdfile } | \
sed $maxcds^q | goblin uniq -U > $cdfile sed $maxcds^q | goblin uniq -U > $cdfile
} }
} }