[Bug 102621] Directory name or file name staring with '-' cannot be handled through command line,i.e.,terminal

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

 



https://bugzilla.kernel.org/show_bug.cgi?id=102621

Eric Sandeen <sandeen@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandeen@xxxxxxxxxx

--- Comment #1 from Eric Sandeen <sandeen@xxxxxxxxxx> ---
Not a bug, kernel or otherwise.  You're simply seeing mkdir & touch interpret
"-t" as an option.  Preface with "./" to avoid this:

[sandeen@sandeen ~]$ mkdir ./-testdir
[sandeen@sandeen ~]$ cd ./-testdir
[sandeen@sandeen -testdir]$ pwd
/home/sandeen/-testdir
[sandeen@sandeen -testdir]$ touch ./-test
[sandeen@sandeen -testdir]$ ls -l
total 0
-rw-rw-r--. 1 sandeen sandeen 0 Aug 10 12:34 -test

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux