That worked. Sometimes the answer is SO OBVIOUS you can't see it. Thank you very much.
Summary for anyone else who has this problem:
( ) - this is a "command grouping", in which all commands executed within the parenthesis are executed in a subshell. If you hit and exit stmt in...
I have inherited this wierd code, in which I execute a child script. I'm trying to pass back the return code, as follows:
#/bin/ksh
bunch of initialization stuff
integer saverc
(date
...
child_script.sh
saverc=$?
echo "saverc is $saverc" #produces saverc is 3
if [ $saverc -ne 0 ]...
1) I used to be able to use Esc-K (Escape and k key) to retrieve the last command from .sh_history (it would take you to the command in vi mode so you could use vi commands to edit it also). Does anyone remember how to do this?
2) How do you change the prompt before the $ to JUST the...
I used to know this, is is something like
stty or something... Can someone help me? I'm on a Sun box, and I'd like the backspace key to work like it is supposed to (not a ^H).
thanks!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.