I have read the bash manual. My level of English is insufficient to understand what is written, “or rather what is not written”. Moreover, there are very few examples. I solved my problem but in a somewhat inelegant way.
Thank you very much for helping.