bashsupport-pro icon indicating copy to clipboard operation
bashsupport-pro copied to clipboard

Variables with unset Cannot Be Auto-Completed

Open mylovesaber opened this issue 1 year ago • 2 comments

Code outside function

aaa=q
echo 

When you type $a after echo , BSP will show $aaa image

GOOD


If you do this first:

aaa=q
echo 
unset aaa

When you type $a after echo , BSP will show $aaa image

GOOD


Code inside function

f1(){
aaa=q
echo 
}

When you type $a after echo , BSP will show $aaa image

GOOD


If you do this first:

f1(){
aaa=q
echo 
unset aaa
}

When you type $a after echo , BSP will NOT show $aaa image

BAD

mylovesaber avatar Oct 15 '24 09:10 mylovesaber