The original complaint about '$ completing environment variables is valid IMO. The bash-completion package does the right thing here and completes to: '$#!~'. The builtin completion tries to complete environment variables. So this bug is in the builtin completion of bash.
The other thing is the automatic quoting of $ characters when using cd. This is a bug in the bash-completion package. The builtin completion works correctly. So this part of the bug is actually the same as #177243.
These are two bugs actually.
The original complaint about '$ completing environment variables is valid IMO. The bash-completion package does the right thing here and completes to: '$#!~'. The builtin completion tries to complete environment variables. So this bug is in the builtin completion of bash.
The other thing is the automatic quoting of $ characters when using cd. This is a bug in the bash-completion package. The builtin completion works correctly. So this part of the bug is actually the same as #177243.