[Scottish] debug

2004-01-22 Thread Huard, Elise - D CW Consultant
Hi, what would you say are the most useful commands for dbx ? (Unix question more than Linux maybe) - i'm trying to find a SIGFPE error in a sizeable program. The thing is, by the time i get my debugging code released (signal handler functions + -g compiling) the code might have migrated from

Re: [Scottish] debug

2004-01-22 Thread Allan Whiteford
Huard, Elise - D CW Consultant wrote: Hi, what would you say are the most useful commands for dbx ? help :). What commands are useful depends on if you're stepping through code as it runs or examine a core file. If you're familiar with gdb then a lot of versions of dbx include the command

RE: [Scottish] debug

2004-01-22 Thread Huard, Elise - D CW Consultant
Allan, yes, sorry, using a core file. My code 'catches' SIGFPE and a few other baddies and provokes a segmentation fault, but that's not of great use if i don't know how to use the core file ... Thanks for your tips, -- From: Allan Whiteford[SMTP:[EMAIL PROTECTED] Reply To:

[Scottish] storing current directory

2004-01-22 Thread Allan Bruce
Hi there, I am modifying a script, and I need to be able to store the current directory, so I can come back to it. I tried export AMB_TMP=pwd but it doesnt work, AMB_TMP becomes 'pwd' rather than the current directory. How would I do this? Thanks Allan

RE: [Scottish] storing current directory

2004-01-22 Thread Elwell, AD (Andrew)
export AMB_TMP=pwd welcome to backticks... #!/bin/sh AMB_TMP=`pwd` cd /some/New/Dir cd $AMB_TMP ___ Scottish mailing list [EMAIL PROTECTED] http://mailman.lug.org.uk/mailman/listinfo/scottish

Re: [Scottish] storing current directory

2004-01-22 Thread Allan Whiteford
Allan, export AMB_TMP=`pwd` Note the use of back ticks, not normal quotes. Thanks, Allan Allan Bruce wrote: Hi there, I am modifying a script, and I need to be able to store the current directory, so I can come back to it. I tried export AMB_TMP=pwd but it doesnt work, AMB_TMP becomes

Re: [Scottish] storing current directory

2004-01-22 Thread Ben Thorp
export AMB_TMP=`pwd` Ben Allan Bruce

Re: [Scottish] storing current directory

2004-01-22 Thread iain d broadfoot
* Allan Bruce ([EMAIL PROTECTED]) wrote: Hi there, I am modifying a script, and I need to be able to store the current directory, so I can come back to it. I tried export AMB_TMP=pwd export AMP_TMP=`pwd` iain -- If sharing a thing in no way diminishes it, it is not rightly

Re: [Scottish] storing current directory

2004-01-22 Thread Ben Thorp
Yay! First post :o) Ben Thorp Ben

Re: [Scottish] storing current directory

2004-01-22 Thread iain d broadfoot
* Mark McRitchie ([EMAIL PROTECTED]) wrote: -Original Message- From: Elwell, AD (Andrew) [mailto:[EMAIL PROTECTED] export AMB_TMP=pwd welcome to backticks... Or... You can use AMB_TMP=$(pwd) Using the $(cmd) structure in bash means you can easily nest commands