shell

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

.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...

Tracing is your friend!

A huge part of programming in general is learning how to troubleshoot something, not just having someone else fix it for you. One of the basic ways to do that is by tracing. Not only can this help you figure out what your script is doing and how it's doing it, but in the event that you need help from another person, posting the...

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