Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 18 May 2013, 18:45
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Noticed IF test for dir. "-d" IDs a link also...
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 4001
Location: Arizona, U.S.A.

PostPosted: Thu 22 Dec 2011, 03:55    Post subject:  Noticed IF test for dir. "-d" IDs a link also...  

As you can see it IDs the link as a link and a dir both.
Code:
sh-4.1# [ -L /root/my-documents ]&& echo GOOD!
GOOD!
sh-4.1# [ -d /root/my-documents ]&& echo BAD!
BAD!

Fortunately it doesn`t ID a dir. as a link.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0290s ][ Queries: 11 (0.0034s) ][ GZIP on ]