Re: [PATCH] t3706: Add test for wildcard vs literal pathspec

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

 



On 2025-04-12 at 17:40:51, K Jayatheerth wrote:
> +test_expect_success 'recreate files to test add behavior' '
> +    mkdir testdir &&
> +    >testdir/f\* &&
> +    >testdir/f\*\* &&

I just want to point out that creating files with asterisks may not be
possible on Windows due to limitations in the file system.  I'm not a
Windows expert, so unfortunately I can't provide more details than that,
but you may end up needing to add a prerequisite here to skip this on
our Windows platforms if necessary.  Hopefully CI and a suitable search
can help you figure it out.

> +test_done
> \ No newline at end of file

We do want to keep newlines at the end of a file.  POSIX mandates one on
text files and some systems are less tolerant of missing newlines than
others.  Usually Linux and the BSDs handle this just fine, but some
proprietary Unix systems, which unfortunately we don't have CI for, tend
to be the ones that are less happy about this.

I haven't given this a full review, since others have done that instead,
but just pointed out one or two things that got my attention.
-- 
brian m. carlson (they/them)
Toronto, Ontario, CA

Attachment: signature.asc
Description: PGP signature


[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