Bug 11009

Summary: 4_a1: /lib/systemd/system/-.slice causing invalid option errors with ls, grep, less, ...
Product: Mageia Reporter: Bit Twister <bittwister2>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: systemd-206-5.mga4.src.rpm CVE:
Status comment:

Description Bit Twister 2013-08-15 17:37:37 CEST
Description of problem:

/lib/systemd/system/-.slice causing invalid option errors with ls, grep, less,..

$ cd /lib/systemd/system/
$ less -.slice
There is no -. option ("less --help" for help)
Missing filename ("less --help" for help)

$ grep ControlGroup *
grep: invalid option -- '.'
Usage: grep [OPTION]... PATTERN [FILE]...

$ ls *.slice
ls: invalid option -- '.'

Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
Clean install of Mageia-4-alpha1-LiveDVD-KDE4-x86_64-DVD.iso.

1. cd /lib/systemd/system/
2. grep ControlGroup *
3. ls *.slice
4. less -.slice



Reproducible: 

Steps to Reproduce:
Comment 1 David Walser 2013-08-20 23:54:34 CEST
Use -- before the filename, i.e.:
less -- -.slice

Status: NEW => RESOLVED
Resolution: (none) => INVALID