Quote:
the output is NOT an error ... and if you don't want it to do this, fix it by appending << endl to the cout statement ;) I think that's what you wanted? :D Cheers, Tink P.S.: Qt rocks!! ;) |
Again, wow! :) Thanks Tink, that is what I wanted. But, oh I'm so stupid... Ever heard of the -ef test? It checks if two files are the same... Now I can solve VisionZ's problem :)
|
Ummm ... -ef checks for a hard link. Not for
file identity? In other words, whether to file descriptors point to the same inode? Cheers, Tink |
Err, maybe? :) Good or bad? :scratch: ;)
|
You could just use
cmp which works on binary and text files. |
why not just use realpath?
-michael |
Does that work in shell scripts?
|
yes, assuming it's installed on your system.
-michael |
Thanks a lot for the suggestion. Hm, it seems I don't have it. But on the other hand, from the man page it seems like a C command.
LOL, look at this - from the man page: Quote:
|
Quote:
on a side note, the reason that the c routine's man page says that it is broken is because it is impossible to know ahead of time that a particular path name will be small enough to alloc enough memory to hold it. thus, even if you alloc PATH_MAX (or whatever) space for the output of your path, you may overflow it, which is obviously a security risk. however, you can't avoid this problem, no matter which routine you choose for the purpose. -michael |
All times are GMT -5. The time now is 02:34 PM. |