[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <663e86d5-4e79-4f37-b2af-9c671c8948ef@gmail.com>
Date: Thu, 22 May 2025 10:20:02 +0530
From: "Nirjhar Roy (IBM)" <nirjhar.roy.lists@...il.com>
To: Dave Chinner <david@...morbit.com>
Cc: fstests@...r.kernel.org, linux-ext4@...r.kernel.org,
linux-xfs@...r.kernel.org, ritesh.list@...il.com, ojaswin@...ux.ibm.com,
djwong@...nel.org, zlang@...nel.org
Subject: Re: [PATCH v2 1/2] new: Add a new parameter (name/emailid) in the
"new" script
On 5/22/25 06:21, Dave Chinner wrote:
> On Wed, May 21, 2025 at 10:52:22AM +0530, Nirjhar Roy (IBM) wrote:
>> On 5/21/25 05:01, Dave Chinner wrote:
>>> On Thu, May 15, 2025 at 11:00:16AM +0000, Nirjhar Roy (IBM) wrote:
>>>> This patch another optional interactive prompt to enter the
>>>> author name and email id for each new test file that is
>>>> created using the "new" file.
>>>>
>>>> The sample output looks like something like the following:
>>>>
>>>> ./new selftest
>>>> Next test id is 007
>>>> Append a name to the ID? Test name will be 007-$name. y,[n]:
>>>> Creating test file '007'
>>>> Add to group(s) [auto] (separate by space, ? for list): selftest quick
>>>> Enter <author_name> <email-id>: Nirjhar Roy <nirjhar.roy.lists@...il.com>
>>>> Creating skeletal script for you to edit ...
>>>> done.
>>>>
>>>> ...
>>>> ...
>>>>
>>>> Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@...il.com>
>>>> ---
>>>> new | 5 ++++-
>>>> 1 file changed, 4 insertions(+), 1 deletion(-)
>>>>
>>>> diff --git a/new b/new
>>>> index 6b50ffed..636648e2 100755
>>>> --- a/new
>>>> +++ b/new
>>>> @@ -136,6 +136,9 @@ else
>>>> check_groups "${new_groups[@]}" || exit 1
>>>> fi
>>>> +read -p "Enter <author_name>: " -r
>>>> +author_name="${REPLY:=YOUR NAME HERE}"
>>>> +
>>>> echo -n "Creating skeletal script for you to edit ..."
>>>> year=`date +%Y`
>>>> @@ -143,7 +146,7 @@ year=`date +%Y`
>>>> cat <<End-of-File >$tdir/$id
>>>> #! /bin/bash
>>>> # SPDX-License-Identifier: GPL-2.0
>>>> -# Copyright (c) $year YOUR NAME HERE. All Rights Reserved.
>>>> +# Copyright (c) $year $author_name. All Rights Reserved.
>>> In many cases, this is incorrect.
>>>
>>> For people who are corporate employees, copyright for the code they
>>> write is typically owned by their employer, not the employee who
>>> wrote the code. i.e. this field generally contains something like
>>> "Red Hat, Inc", "Oracle, Inc", "IBM Corporation", etc in these
>>> cases, not the employee's name.
>> Yes. The existing placeholder is already "YOUR NAME HERE" (which I have kept
>> unchanged). The author can always use the company's name from read -p prompt
>> or simply chose to fill it up later, right? Or are you saying that the
>> existing placeholder "YOUR NAME HERE" is incorrect?
> I'm noting that your prompt - <author_name> - is incorrect
> for this "YOUR NAME HERE" field. That field is supposed to contain
> the -copyright owner-, not the author of the patch. Sometimes they
> are the same, but in many cases they are not.
Oh, okay. I can change the prompt to "Enter <copyright-owner>: ".
--NR
>
> -Dave.
--
Nirjhar Roy
Linux Kernel Developer
IBM, Bangalore
Powered by blists - more mailing lists