Re: It is possible that this can be a bug

2023-06-26 Thread Hugo Napoli
I will, and the suggestions and examples that you both told me, were excellent, and a display of remarkable generosity and value. As an educator, I have now learned more solid criteria for teaching some BASH techniques to my students. Starting tomorrow, we will be discussing and observing all of th

Re: It is possible that this can be a bug

2023-06-26 Thread Dennis Williamson
On Mon, Jun 26, 2023, 2:47 PM Hugo Napoli wrote: > Dear Dennis and Martin, thank you very much for the quick response. > > From now on, I'll use *exec bash "$0" *instead of *bash "$0"*. > What I'm wondering is (now that I understand why this happened) if there > is some special situation where it

Re: It is possible that this can be a bug

2023-06-26 Thread Greg Wooledge
On Mon, Jun 26, 2023 at 03:36:58PM -0300, Hugo Napoli wrote: > #!/bin/bash > > clear > > echo "" > read -p "Ingrese un número entero de hasta 2 cifras > : " min > read -p "Ingrese otro número entero de hasta 2 cifras, mayor que el > anterior : " max > > if [[ ${#min} -gt 2 ]] || [[ ${#max}

Re: It is possible that this can be a bug

2023-06-26 Thread Dennis Williamson
On Mon, Jun 26, 2023, 11:07 AM Hugo Napoli wrote: > Good day. > > Something strange is happening to me with this script that I have designed > moments ago. > I am a Computer Science professor, and among the subjects I teach, there is > one that has to do with BASH programming. > I make my own mat

It is possible that this can be a bug

2023-06-26 Thread Hugo Napoli
Good day. Something strange is happening to me with this script that I have designed moments ago. I am a Computer Science professor, and among the subjects I teach, there is one that has to do with BASH programming. I make my own material, therefore, I have been working since last year with this c