You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the script with -x option on and notice that the value of fRank and iCount in line 465, 466,467 was empty like following
++ (( fRank=(10#)*10**d ))
/usr/local/bin/fasder: line 466: ((: fRank=(10#: invalid integer constant (error token is "10#")
++ (( iCount=10#+10#2 ))
/usr/local/bin/fasder: line 467: ((: iCount=10#: invalid integer constant (error token is "10#")
++ (( fCount=10#000000+10# ))
/usr/local/bin/fasder: line 468: ((: fCount=10#000000+10#: invalid integer constant (error token is "10#")
# Increase the count. Be careful about precision and overflow((d = scale -${#fRank}))if((d >0));then((fRank = (10#$fRank) *10** d));fi((iCount =10#$iCount+10#$iRank))# force base-10 arithmetic((fCount =10#$fCount+10#$fRank))
I can see that fRank seems failed to match corresponding value with regex from passed in entry, like following:
populate_ranks_and_times() {
# Parse a line of fasd data
[[ $2=~ (.*)\|(([0-9]+)(\.([0-9]*))?)\|(.*) ]]
fname=${BASH_REMATCH[1]}#rank=${BASH_REMATCH[2]}
iRank=${BASH_REMATCH[3]}
fRank=${BASH_REMATCH[5]}
time=${BASH_REMATCH[6]}
But I have no idea about the situation of iCount. It seems never to be initialized with a value.
The text was updated successfully, but these errors were encountered:
following error message prompted when selecting a entry or enterinig a directory.
Usage Scenario
OS Environment
Bug Cause
I ran the script with
-x
option on and notice that the value offRank
andiCount
in line 465, 466,467 was empty like followingI can see that
fRank
seems failed to match corresponding value with regex from passed in entry, like following:But I have no idea about the situation of
iCount
. It seems never to be initialized with a value.The text was updated successfully, but these errors were encountered: