.bin/check_installed.sh:fc:3: no such event: 1 when trying to run a set of commands from script that work fine when ran in the terminal directly

Hello everyone. I wrote this command in the terminal directly and got the desired and expected output - that being the last 50 occurrences of me installing or removing a package with pacman or yay: history | grep -e ‘pacman -Ss’ -e ‘pacman -Rs’ -e ‘yay -Ss’ -e ‘yay -Rs’ | tail -n 50 > ~/history_installed...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • shell@programming.dev
  • kavyap
  • InstantRegret
  • khanakhh
  • ngwrru68w68
  • osvaldo12
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • everett
  • Youngstown
  • slotface
  • rosin
  • GTA5RPClips
  • JUstTest
  • Durango
  • cubers
  • modclub
  • tester
  • tacticalgear
  • cisconetworking
  • ethstaker
  • anitta
  • Leos
  • megavids
  • normalnudes
  • provamag3
  • lostlight
  • All magazines