Saltar al contenido

Process Substitution not working with Linux 2 bash?

0

Does the bash provided with AWS Linux 2 not support process substitution? I have never used this feature previously, but now a circumstance has come up where it would be useful. But even the simplest demo fails, e.g.:

me$ cat <(date)
sh: syntax error near unexpected token `('

My shell say it's:

GNU bash, version 4.2.46(2)-release-(x86_64-koji-linux-gnu)

And fwiw my shell in /etc/passwd is /bin/bash, and anyway /bin/sh is just a symlink to /bin/bash.

Am I missing something? Or is Linux 2 really delivered with a bash that doesn't support this?

preguntada hace 6 años844 visualizaciones

2 Respuestas
0

I understand what you are saying here, however:

  1. My shell really is bash, as I stated originally. Both "bash --version" and "sh --version" identify themselves to bash, as I quoted.

  2. shebang does not enter into the question; It doesn't work right from the shell prompt either.

respondido hace 6 años

0

Still, that gave me the clue I needed. Thanks!

respondido hace 6 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.