New: Directory name or file name staring with '-' cannot be handled through command line,i.e.,terminal
https://bugzilla.kernel.org/show_bug.cgi?id=102621
Bug ID: 102621
Summary: Directory name or file name staring with '-' cannot be
handled through command line,i.e.,terminal
Product: File System
Version: 2.5
Kernel Version: 3.16.7-21-desktop
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ext2
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Firstly,one cannot create a directory or a file through command-line with its name starting with '-'. That is one cannot give command like 'mkdir -test' or 'touch -test' where '-test' is the directory name and file name respectively.But in other way,one can easily create or work with such directory or file in GUI,but that file or directory cannot be accessed or handled through command-line.It has been tested in Suse Linux and Ubuntu,maybe it is universal bug for linux
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 102621] Directory name or file name staring with '-' cannot be handled through command line,i.e.,terminal
https://bugzilla.kernel.org/show_bug.cgi?id=102621
Eric Sandeen <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Eric Sandeen <[email protected]> ---
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
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 102621] Directory name or file name staring with '-' cannot be handled through command line,i.e.,terminal
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=102621
--- Comment #2 from Saptarshi Nag <[email protected]> --- Hi Eric,thanks for explaining this,it works now
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 102621] Directory name or file name staring with '-' cannot be handled through command line,i.e.,terminal
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=102621
Theodore Tso <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |[email protected]
Resolution|--- |INVALIDSignature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 102621] Directory name or file name staring with '-' cannot be handled through command line,i.e.,terminal
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=102621
--- Comment #3 from [email protected] ---
unsubscribe linux-ext4
2015년 8월 10일 (월) 오후 6:38, <[email protected]>님이 작성:
Quoted 40 lines
https://bugzilla.kernel.org/show_bug.cgi?id=102621
Bug ID: 102621
Summary: Directory name or file name staring with '-' cannot be
handled through command line,i.e.,terminal
Product: File System
Version: 2.5
Kernel Version: 3.16.7-21-desktop
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ext2
Assignee: [email protected]
Reporter: [email protected]
Regression: NoFirstly,one cannot create a directory or a file through command-line with its
name starting with '-'. That is one cannot give command like 'mkdir -test' or
'touch -test' where '-test' is the directory name and file name respectively.But in other way,one can easily create or work with such directory
or file in GUI,but that file or directory cannot be accessed or handled through
command-line.It has been tested in Suse Linux and Ubuntu,maybe it is universal
bug for linux--
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 102621] Directory name or file name staring with '-' cannot be handled through command line,i.e.,terminal
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=102621
Mauricio Faria de Oliveira ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #4 from Mauricio Faria de Oliveira ([email protected]) --- (In reply to Eric Sandeen from comment #1)
Quoted 2 lines
Not a bug, kernel or otherwise. You're simply seeing mkdir & touch interpret "-t" as an option. Preface with "./" to avoid this:
One can also use '--' to stop parsing for options, e.g.,
$ touch -- -test
$ mkdir -- -test-dir
$ ls -1d -- -test* -test -test-dir
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 102621] Directory name or file name staring with '-' cannot be handled through command line,i.e.,terminal
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=102621
--- Comment #5 from Theodore Tso ([email protected]) ---
(Note that this bug is five years old, and was closed years ago. The only reason why it got activity recently is because a spammer tried to upload a malware / phishing attachment to kernel bugzilla.)
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.