Profile
Mitch Frazier
Mitch Frazier is an Associate Editor for Linux Journal and the Web Editor for linuxjournal.com.
Mitch Frazier's Articles
Favorites
No favorites yet. Check out what's popular today.
Guestbook
I started a project that is similar to your interests. If you could help me would mean a lot. http://kupi-prodaj.biz
I am new to the site. I registered (and accessed the verify link) so I could leave you a comment about a bug in your HOWTO article with the normalize_path function. However I cannot find anyway to submit a comment. Can you tell me how to submit a comment? Regardless, the bug is that the regular expression string needs to be put in quotes as shown here:
while [[ $path =~ '([^/][^/]*/\.\./)' ]]
If you don't, then the \.\. becomes .. and the expression will match directory names that are 2 characters in length.
Other than this, the normalize_path function is exactly what I was needing. Just ignore the naysayer comments at the end of the comments. I would tell them what I think of their comments if I could comment! As I am sure you know, what normalize_path returns is quite differnt that what readlink -f returns when the path location is on a mounted are such as NFS. Also your function works even it the path does not exist.
Anyway... Thank you.
Hi!
I have little troubles with http://www.linuxjournal.com/content/add-auto-incrementing-build-number-y... . I try to implement version-info's such as build-number, git info's into app. I dont know your post as well. Please can you make one little example and update your "how-to"? I need know how work your code, if i create structure of 5 char* members in every .o(bjects) as declaration in his .cc, walk trought section does not work well. (I dont know why...). Next, asm say me msgs like: Warning: entity size for SHF_MERGE not specified, Warning: group name for SHF_GROUP not specified
as: main.o: warning: sh_link not set for section `.build_info', how fix it? But yea, one little example are so best.
Thanx a lot!
our website :[ http://shortlinks.co.uk/2fap ]
(b..r..a..n..d.)s.h.o.e.s.(34u.s.d),,
==J. a .m .e )) shoes
< j o r d a n> (1-24) shoes
< j o r d a n> 2010 shoes
c.l.o.t.h.i.n.g,,j.e.a.n,,h.a.n.d.b.a.g(35u.s.d),,
==c .o. a .c .h )) handbag
(f.r.e.e)s.h.i.p.p.i.n.g
[ http://shortlinks.co.uk/2fap ]
[ http://shortlinks.co.uk/2fap ]
Hi, Mitch,
I'm now studying how to program under linux, but I have a question about ptrace(). I need to get a program's code section and compute it's MD5 before executing. But I don't konw how to use ptrace() to compute the addresses of code section. Could you please give some advice? Thank you very much.
Sincerely,
Inifok
Yeah the dash thing has tripped me up before on ubuntu. After discovering that sh != bash I also stopped writing "sh script.sh" in my posts when I mention running a script, I now put "bash script.sh"
As I recall there are actually quite a few differences between bash and dash.
Hey Mitch.
Your article on bash was interesting. As another bash side note, in Kubuntu 9.10, sh is linked to dash instead of bash:
roberts@igor:/bin$ ls -l sh
lrwxrwxrwx 1 root root 4 2010-01-20 11:49 sh -> dash
There are a few differences between dash and bash which were enough to cause my installation of Juniper Network Connect to fail. It took a bit of hunting to nail down dash as the cause. the fix was simple: relink sh to bash. I need Juniper NC to connect to my company's corporate network...
On another note, I'm enjoying the ride as one of Linux Journal's new bloggers -- I'm anticipating having some fun with my posts!
Cheers,
--Doug
Mitch Frazier's tweets
No tweets. You may edit your profile to display your tweets.








