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
In BashSupportPro 2.1.4.213 Refactor/Rename… a function containing colon characters : is wrongly denied.
What happens
This wrong limitation prevents the Refactor/Rename… feature to be used to rename function names with a colon character.
What is expected
When building Bash-shell library files to be sourced, it is a common and valid practice to prefix function names
with the library name.
Namespacing like library_name::function_name prevents shadowing main Bash-script functions with name collisions.
Colons are perfectly legal for function names.
(They are only illegal for variable names.)
BashSupport Pro should not refuse to Refactor/Rename… function names containing colons.
Reproducing
Create a function:
function_name () { :;}
Place cursor over function_name and select Refactor/Rename… for example with: shift+F6
and enter lib_name::func_name as the new name.
Here is how it wrongly refuses the rename:
The text was updated successfully, but these errors were encountered:
I've backported this change for the next update of 2.1. If you need this now or would like to make sure that it's what you need, please consider to use the already available beta version.
Description
In BashSupportPro 2.1.4.213
Refactor/Rename…
a function containing colon characters:
is wrongly denied.What happens
This wrong limitation prevents the
Refactor/Rename…
feature to be used to rename function names with a colon character.What is expected
When building Bash-shell library files to be sourced, it is a common and valid practice to prefix function names
with the library name.
Namespacing like
library_name::function_name
prevents shadowing main Bash-script functions with name collisions.Colons are perfectly legal for function names.
(They are only illegal for variable names.)
BashSupport Pro should not refuse to
Refactor/Rename…
function names containing colons.Reproducing
Create a function:
Place cursor over
function_name
and selectRefactor/Rename…
for example with:shift+F6
and enter
lib_name::func_name
as the new name.Here is how it wrongly refuses the rename:
The text was updated successfully, but these errors were encountered: