Register
It is currently Mon Nov 24, 2014 11:51 am

ls returnes no files or directories cd . fixes it


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Fri Jan 11, 2013 4:34 pm   

Joined: Fri Jan 11, 2013 3:56 pm
Posts: 1
I am tracking down an odd effect from one of my scripts.
After I run this rather complicated bach script, if I give an ls command it returnes only the command prompt, no files, no directories, no output of any sort.
I stumbled accross a cure for this by trial and error.
If I give the command "cd ." and further ls returnes the correct file list.
I tried adding a cd . as the last line of the script but it didn't seem to fix the problem.
What is happening that would disable ls
What am I doing that would cause this effect.

Thanks
Mike


Top
 Profile  
 PostPosted: Fri Jan 11, 2013 10:26 pm   

Joined: Mon Mar 02, 2009 3:03 am
Posts: 568
hi,

can you post the whole script?
without being able to read it, how could we tell?


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 13 guests


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 post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP