25
10
I have a directory, containing files generated by compiler. During each rebuild this directory gets cleaned and, after build process ls
gives me empty output. After I cd
out of directory and then back to it ls works right.
The questions are:
- Is there any other, more elegant way to refresh directory?
- What actually happens when files deleted and recreated? Why do I need to
cd
to see actual directory content?
3Interesting. Like the hummingbird, this, logically, should not work -- and yet it appears that it does. I presume that you know that it works because you've tried it. Do you have any documentation for it? I.e., if I were on the POSIX/bash development team, I would be tempted to consider this a bug. Do you know of any documentation that says that it's supposed to work this way? – G-Man Says 'Reinstate Monica' – 2015-03-21T18:27:29.133
3Like the falcon, this, beautifully, floats above the flowers -- and yet it devours hummingbirds. – Matt Faus – 2015-09-24T19:24:31.623
Yes! so perfect – chrismarx – 2017-03-04T15:39:36.933
1This is the better answer. – deddebme – 2017-03-10T19:14:36.827
Ah. I knew it! There had to be a way. Thanks! – andersoyvind – 2017-11-14T13:42:25.523