bug-gnu-utils
[Top][All Lists]
Advanced

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

Files starting with Dash.


From: Marcin Kowalski
Subject: Files starting with Dash.
Date: Fri, 21 Nov 2003 14:34:50 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007

Hi.

This may or may not be a problem but ..

I have found a problem with trying to issue a grep, or any other command on directories with files starting with a dash.... is there a workaround or is this a bug ? (Similar problems occur when files have spaces in their names)

I am using GNU/Linux Kernel 2.2.16, redhat 7.3...

Regards and Thanks
Marcin


Problem details in a nutshell ( or maybe many nutshells) :
------ * SOFTWARE VERSION FIRST
address@hidden /var/spool/cv/0/0/0> grep --version
grep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

address@hidden /var/spool/cv/0/0/0> ls --version
ls (fileutils) 4.1
Written by Richard Stallman and David MacKenzie.

Copyright (C) 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

------******** ACTUAL PROBLEM FOLLOWS :

address@hidden /var/spool/cv/0/0/0> ls -*
ls: invalid option -- 0
Try `ls --help' for more information.
address@hidden /var/spool/cv/0/0/0> ls \-*
ls: invalid option -- 0
Try `ls --help' for more information.
address@hidden /var/spool/cv/0/0/0> ls
-1009514941.doc -1378383905.doc -1572047709.doc -1848877519.doc -192764200.doc -218093781.doc -533106144.doc -800694181.doc -1009592707.doc -1379628993.doc -1572794088.doc -1848920026.doc -192786289.doc 21.doc -536344021.doc -801085977.doc
address@hidden /var/spool/cv/0/0/0> grep Marcin ?1239155355.doc
grep: invalid option -- .
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
address@hidden /var/spool/cv/0/0/0> grep Marcin *1239155355.doc
grep: invalid option -- .
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
address@hidden /var/spool/cv/0/0/0> grep Marcin *
grep: invalid option -- .
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
address@hidden /var/spool/cv/0/0/0> grep Marcin -*
grep: invalid option -- .
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
address@hidden /var/spool/cv/0/0/0> grep Marcin \-*
grep: invalid option -- .
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
address@hidden /var/spool/cv/0/0/0> grep Marcin \\-*




--
Marcin Kowalski
Perl Developer / Unix Administrator
hotonline ltd

t: 0870 20 20 121
f: 0870 20 20 131
www.thehotgroup.com

--------------------------------------------
hotrecruit.com, planetrecruit.com, jobtrack.co.uk and jobsearch.co.uk are 
brands of hotonline ltd, a subsidiary of the hotgroup plc

This message is sent in confidence for the addressee only. It may contain 
privileged information. The contents are not to be disclosed to anyone other 
than the addressee. Unauthorised recipients are requested to preserve this 
confidentiality and to advise us of any errors in transmission. Thank you.
--------------------------------------------







reply via email to

[Prev in Thread] Current Thread [Next in Thread]