I have set enable-bracketed-paste off
in ~/.inputrc
, but it still gets enabled from time to time.
To help figure out when this is happening, I want a short script to check if it is off or on, but much googling and chatGPT haven't been any help.
Surely there must be a way to read values set with set some-option
? shopt
seemed promising (new to me), but again a dead end.
$ shopt -s enable-bracketed-paste
bash: shopt: enable-bracketed-paste: invalid shell option name
echo "$(set)" | grep "enable-bracketed-paste"
finds nothing whether it's on or off.
CodePudding user response:
shopt
doesn't have much to do with inputrc, try :
bind -V | grep enable-bracketed-paste