[Bug 265746] Can create/cd directory with ^M at end of name with "mkdir", but can't delete it with "rm"

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Aug 2022 01:23:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265746

--- Comment #1 from Ed Maste <emaste@freebsd.org> ---
I can't reproduce this here with /bin/sh as my shell:

$ sh bad_shar
x jbxvt
x jbxvt/Makefile
bad_shar: cannot create jbxvt/Makefile: No such file or directory
x jbxvt/distinfo
bad_shar: cannot create jbxvt/distinfo: No such file or directory
x jbxvt/pkg-descr
bad_shar: cannot create jbxvt/pkg-descr: No such file or directory
$ rm -r jbxvt^M/
$ ls jbx*
ls: jbx*: No such file or directory

(name entered as jbx<tab>, but jbxvt<ctrl-V><Enter> works too)

-- 
You are receiving this mail because:
You are the assignee for the bug.