Bug 112599

Summary: can not delete a file with "-" as a first character
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Ulrich Lange <email>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Beta 2   
Target Milestone: ---   
Hardware: HP   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ulrich Lange 2005-08-23 23:15:33 UTC
by example:
create a file with command: tgz --help
a file with name --help.tgz will be created.
try to erase the file with rm *.tgz
rm: unrecognized option `--help.tgz' is the failure message
with mv, cat ... it is the same.
the command: > --help.tgz is working
Comment 1 Marcus Meissner 2005-08-24 05:30:30 UTC
please read a good unix book, this is a FAQ.  
  
To delete files starting with - , use:  
rm -- *.tgz