3 ms·
Thank you for your explanation. After we press the return/enter key to tell bash to "run the command", is bash doing everything from here (ls is not part of th
by oars 4y ago
Thank you for your explanation.
After we press the return/enter key to tell bash to "run the command", is bash doing everything from here (ls is not part of this bash part right?) including switching off the bracketed paste and re-enabling it?
- faho 4y agoBash also turns off the bracketed paste, because it can't know if the command it is about to launch supports it. So that command would have to re-enable it itself. Something like emacs or vim might do so (or another bash, you can nest shells). And yes, then bash starts ls, which is an external program. It might be /usr/bin/ls. And then ls quits, and bash re-enables bracketed paste because the command might have not enabled it or enabled it and disabled it before quitting. So you get this weird bracketed paste sandwich.