bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: It is possible that this can be a bug


From: Hugo Napoli
Subject: Re: It is possible that this can be a bug
Date: Mon, 26 Jun 2023 19:00:13 -0300

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 this in the
classroom.
"I apologize for not providing better guidance": your guidance, and the
guidance of Martin, was really laudable and I'm so glad because of this.
Thank you for the link shared (I was reading it), thanks you for all this,
and thank also for writing the comments in Spanish. Chapeau, thumbs up!

Big hug!


*Hugo Napoli*

*Espacio educativo en YouTube:
https://www.youtube.com/c/entropíabinaria
<https://www.youtube.com/c/entropíabinaria>*
*Sitio web personal:                **https://hugonapoli.blogspot.com/*
<https://hugonapoli.blogspot.com/>

*Si vas a reenviar este correo:*
*-* te agradezco que antes de hacerlo, elimines mi dirección de correo
electrónico.
*-* en lugar de poner las direcciones en el renglón "PARA", ponlas en
"CCO". De este modo,
  estarás contribuyendo a que tus contactos no reciban virus y spam por
mail.
*>* Utilicemos el correo electrónico con responsabilidad.

*Haz clic aquí para informarte en Wikipedia*
<http://es.wikipedia.org/wiki/Spam>


El lun, 26 jun 2023 a la(s) 17:20, Dennis Williamson (
dennistwilliamson@gmail.com) escribió:

>
> On Mon, Jun 26, 2023, 2:47 PM Hugo Napoli <hugonapoli@gmail.com> 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's actually worth using *bash "$0"*.
>> If you have any ideas, I will really appreciate it if you can share them
>> with me.
>>
>> As for using *a=$((b+c))*, I'll also start using *((a=b+c))* whenever
>> possible, leaving out the "$", as suggested.
>>
>> Thank you very much, also, for the examples you have shown me. I have
>> learned BASH mostly self-taught. I think this is why I have been making
>> these mistakes.
>>
>>
>> *Hugo Napoli *
>>
>>>
>>>
>>>
> I would suggest that you use a loop as shown in Greg's message. I answered
> showing exec since it followed the structure of your original script. It's
> very unusual to use that technique in a script such as yours. I apologize
> for not providing better guidance.
>
> Also using $0 only works in certain circumstances and shouldn't be relied
> on in all cases. https://mywiki.wooledge.org/BashFAQ/028
>
>>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]