Re: incorrect character handling

2021-04-06 Thread L A Walsh
On 2021/03/30 13:54, Lawrence Velázquez wrote: Further reading: https://mywiki.wooledge.org/BashPitfalls#echo_.22Hello_World.21.22 --- I find that disabling history expansion via '!' at bash-build time is the most ideal solution, since someone preferring 'csh' would likely still be using c

Re: incorrect character handling

2021-03-30 Thread Lawrence Velázquez
On Tue, Mar 30, 2021, at 4:50 PM, Greg Wooledge wrote: > On Wed, Mar 31, 2021 at 02:31:46AM +0700, by.sm--- via Bug reports for > the GNU Bourne Again SHell wrote: > > poc=whoami > > $poc > > python3 -c "print('!!')" > > > > That return 'whoami' command. > > You're running into the csh-style hi

Re: incorrect character handling

2021-03-30 Thread Greg Wooledge
On Wed, Mar 31, 2021 at 02:31:46AM +0700, by.sm--- via Bug reports for the GNU Bourne Again SHell wrote: > poc=whoami > $poc > python3 -c "print('!!')" > > That return 'whoami' command. You're running into the csh-style history expansion. A lot of us simply disable it, because it's not worth t

Re: incorrect character handling

2021-03-30 Thread Eduardo Bustamante
ut: Darwin Mac 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 > 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64 > Machine Type: x86_64-apple-darwin18.7.0 > > Bash Version: 5.1 > Patch Level: 4 > Release Status: release > > Description: > Bash (zsh

incorrect character handling

2021-03-30 Thread by . sm--- via Bug reports for the GNU Bourne Again SHell
Machine Type: x86_64-apple-darwin18.7.0 Bash Version: 5.1 Patch Level: 4 Release Status: release Description: Bash (zsh/ash/etc) has incorrect character handling, when spec symbols use in another program and work with stdout. Problem with command "!!", "!", "$"