From: SourceForge.net <no...@so...> - 2009-05-06 03:28:40
|
Bugs item #2787621, was opened at 2009-05-05 20:00 Message generated for change (Settings changed) made by miesfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=2787621&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interpreter Group: v4.0beta >Status: Pending >Resolution: Fixed Priority: 5 Private: No Submitted By: Mark Miesfeld (miesfeld) >Assigned to: Mark Miesfeld (miesfeld) Summary: Odd behavior of 'cd ~/' on Linux Initial Comment: In a Rexx program using something like: say 'Using:' say 'cd ~' say 'pwd' say 'cd ~' 'pwd' You will get the sudden premature end of the program and "Aborted" printed out. Like so: [root@Osprey work.ooRexx]# rexx newTest.rex Using: cd ~ pwd Aborted I believe the 'Aborted may be coming from bash. This is on 64-bit Fedora Core 10, haven't tried with a 32-bit OS. ---------------------------------------------------------------------- >Comment By: Mark Miesfeld (miesfeld) Date: 2009-05-05 20:28 Message: Committed revision 4606. Several areas in the code forgot to add in room for the slash separating the two strings. dir_buf = (char *)malloc(strlen(ppwd->pw_dir)+strlen(slash)+1); /* merge the strings */ sprintf(dir_buf, "%s/%s", ppwd->pw_dir, slash); This has been there for some time. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=2787621&group_id=119701 |