Hola amiguitos,
¿Cómo puedo determinar sí una función está en el bash en Linux?
Gracias.
¡
¿Cómo puedo determinar en Linux sí una función existe en el bash?
Iniciado por
Fran Roguera
, oct 23 2013 17:48
#1 AUTOR PREGUNTA
Preguntas Similares
Esto también te interesa!
#2
Publicado 23 octubre 2013 - 18:40
Puedes utilizar el comando type, el cual te dice si es algo es una función, un comando externo o simplemente no definido, por ejemplo:
type foo
bash: type: foo: not found
type ls
ls is aliased to `ls --color=auto'
which type
type type
type is a shell builtin
type foo
bash: type: foo: not found
type ls
ls is aliased to `ls --color=auto'
which type
type type
type is a shell builtin