Re: [PATCH 5/5] ci: add support for GitLab CI

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

 



On Fri, Oct 27, 2023 at 03:32:48PM +0100, Phillip Wood wrote:
On 27/10/2023 11:43, Oswald Buddenhagen wrote:
On Fri, Oct 27, 2023 at 11:22:35AM +0100, Phillip Wood wrote:
+    CI_BRANCH="$CI_COMMIT_REF_NAME"
+    CI_COMMIT="$CI_COMMIT_SHA"

assignments need no quoting to prevent word splitting.
repeats below.

I think it is quite common for us to quote variables when it isn't strictly necessary as it makes it clear to anyone reading the script that there is no word splitting going on

and ensures that we don't start splitting the variable if the contents changes in the future.

the point was that it *isn't* content-dependent; it's simply the shell rules.

Oh, I'd misunderstood what you were saying which was that assignment and case statements are not subject to field splitting.

of course, many people (apparently you included) don't know these subtleties

I find this comment to be condescending, needlessly antagonistic and completely at odds with the norms of constructive discussion on this list.

the observation was necessary for the point i subsequently made (which was basically agreeing with the first part of your response).

i think it's a rather uncontroversial statement that many people don't know the ins and outs of the shell's word splitting rules. in fact, this is to be expected given how arbitrary the rules seem.

that you seem to be among these people was a reasonable inference from what you actually wrote. mentioning it was meant to provide a segue and add emphasis.

regards




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux