no such file or directory using "-" character

Maurizio Marini maumar at datalogica.com
Sun Aug 3 09:40:48 UTC 2014


On Sun, 3 Aug 2014 12:03:35 +0300
Angelo Moreschini <mrangelo.fedora at gmail.com> wrote:

> On 08/03/2014 09:01 AM, Angelo Moreschini wrote:
> > Hi
> >
> > I need to go inside a directory named <notebook-source>;

you have to use backslash to do escaping
cd notebook\-source

but may be you have some extra blank char after source
try to use tab completation + backslash

i have tried and here u do not need any \ before dash, but using it it owrks
either

~ # mkdir  abc-abc
~ # cd abc-abc/
~/abc-abc # cd ..
~ # cd abc\-abc/
~/abc-abc # 

but you have many strange chars
this is notebook-source
mkdir notebook-source
ls -d note* | od -tx1
0000000 6e 6f 74 65 62 6f 6f 6b 2d 73 6f 75 72 63 65 0a
0000020


6e 6f 74 65 62 6f 6f 6b 2d 73 6f 75 72 63 65 0a
n   o  t    e  b   o  o  k   -    s  o   u  r   c   e   

0a is linefeed

notebook-source are 0x0f (16) chars
you have 22 chars, instead

-m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5772 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20140803/50fd12af/attachment.p7s>


More information about the users mailing list