Setting nullglob causes variables containing backslashes to be expanded to an empty string
Bash version: GNU bash, version 5.0.7(1)-release (x86_64-apple-darwin18.5.0) Example: shopt -s nullglob a='\x30' echo $a Expected output: \x30 Actual output:
Re: count in vi mode alters prompt
Is there a way to disable this feature, at least in vi mode? > On May 20, 2024, at 5:27 PM, Chet Ramey wrote: > > On 5/18/24 5:28 PM, mohd.ak...@outlook.com wrote: > >> Bash Version: 5.2 >> Patch Level: 26 >> Release Status: release >> Description: >> When using vi mode in bash, whenever a count is used before a command, >> bash replaces the prompt with (arg: n) where n is the count entered. >> This causes the entire line to shift, which is particularly jarring if >> a long prompt is used, as is common. > > This is standard readline behavior in both emacs and vi mode. > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer >``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ >
Re: count in vi mode alters prompt
I’ve opened an issue in the readline repo for this with a patch if there’s interest. https://savannah.gnu.org/support/?111068 I had been using this patch for some months in my own build of bash and it seems to be working well. More recently I’ve just used the default zsh on a new machine since it doesn’t have this issue, but it would be good to align bash with the other shells in this regard. Mohamed > On May 20, 2024, at 5:51 PM, Chet Ramey wrote: > > On 5/20/24 9:34 AM, Mohamed Akram wrote: >> Is there a way to disable this feature, at least in vi mode? > > No. > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ >