Explorar el Código

Fix "grep: warning: stray \ before -" in `conda.bash` (#2768)

According to the POSIX spec, an unescaped backslash not followed by
an escapable character is undefined behavior,
and it has become an error in GNU grep 3.8 (2022-09-02).
pull/2769/head
Alex Hedges hace 1 año
cometido por GitHub
padre
commit
e1b7e1b519
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      pyenv.d/rehash/conda.bash

+ 1
- 1
pyenv.d/rehash/conda.bash Ver fichero

@ -35,7 +35,7 @@ make_shims() {
deregister_conda_shims() {
# adapted for Bash 4.x's associative array (#1749)
if declare -p registered_shims 2> /dev/null | grep -Eq '^(declare|typeset) \-A'; then
if declare -p registered_shims 2> /dev/null | grep -Eq '^(declare|typeset) -A'; then
for shim in ${!registered_shims[*]}; do
if conda_shim "${shim}" 1>&2; then
unset registered_shims[${shim}]

Cargando…
Cancelar
Guardar