helpGNU Core Utilities - Support: sr #110227, Unremoveable file bug

 
 

You are not allowed to post comments on this tracker with your current authentication level.

sr #110227: Unremoveable file bug

Submitter:  Ali Rıza KESKİN <sulincix>
Submitted:  Sat 25 Apr 2020 12:22:34 PM UTC
 
Category:  None Priority:  5 - Normal
Severity:  4 - Important Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux

Sat 25 Apr 2020 12:22:34 PM UTC, original submission:  

if I create a file that first character is "-" I cannot remove or move file. (file name is same parameter)
But I can remove or move with python script

```shell
sulin@SulinOS:test :)  > echo aa > -f
sulin@SulinOS:test :)  > ls
-f
sulin@SulinOS:test :)  > rm -f -f
sulin@SulinOS:test :)  > ls
-f
sulin@SulinOS:test :)  > python3
Python 3.7.4 (default, Dec 15 2019, 19:57:41)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import os
>>> os.unlink("-f")
>>> exit()

sulin@SulinOS:test :)  > ls
sulin@SulinOS:test :)  >
```

Ali Rıza KESKİN <sulincix>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sulincix (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-25 sulincix Attached File- Added photo_2020-04-25_12-14-33.jpg, #48935

    Back to the top


    Powered by Savane 3.9