This is a slowly growing collection of hopefully useful and reusable shell functions and patterns. https://code.jan.io/jan/jans_shell_utils
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

6 líneas
233B

  1. # if you run a script that launches other processes, and you want to make sure those processes exit when your script exists, this helps:
  2. #
  3. # Copyright (c) 2022 Jan Lehnardt <jan@apache.org>, MIT licensed
  4. trap 'kill $(jobs -p)' EXIT