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
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
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:
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
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
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
export AMB_TMP=`pwd`
Ben
Allan Bruce
* 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
Yay! First post :o)
Ben Thorp
Ben
* 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
10 matches
Mail list logo