
4 Aug
2011
4 Aug
'11
2:22 p.m.
Thanks so much to Norbert and Richard. I solved my problem with this statement: lastComponent = (*it).string(); As long as we are on the topic: How do I expand directory notations with dots? For instance, if my app is called like this: myapp . The dot should expand to `/home/ramon/src/development' or whatever. I discovered that such construct is not expanded by the U*ix shell. Have tried dirname() plus basename() but they don't work. TIA, -Ramon