112 reputation
8
bio website
location
age
visits member for 2 years
seen 2 days ago

I am here to learn and learn until I become fit enough to teach.


Jul
2
awarded  Curious
Feb
28
accepted Get the last executed command line in ksh
Feb
28
comment Get the last executed command line in ksh
Fantastic, Stackexchange's Unix site was missing you for so long. Thank you for coming in to get us better.
Feb
28
comment Get the last executed command line in ksh
the statement within the function would know that the last statement was the function call itself. I am curious to know whether this understanding it right.
Feb
28
comment Get the last executed command line in ksh
"Generally speaking, in a script, you can always know the last line, anyway ;)" - I dont understand how can we know the last line, am I missing something big and fundamental here?
Feb
28
accepted Variable name completion in ksh
Nov
11
comment What is the “initialization time” in the find command?
@slm Apologies for not mentioning that it is AIX 6.1.
Nov
11
accepted What is the “initialization time” in the find command?
Nov
8
asked What is the “initialization time” in the find command?
Nov
1
comment What does readonly mean or do?
run it and see it.it will help you for sure in the long way.
Oct
31
asked File change notification in AIX
Oct
4
revised Get the last executed command line in ksh
added 138 characters in body
Oct
4
comment Get the last executed command line in ksh
"As pointed to by Lee in unix.stackexchange.com/a/27513/20291 , hist might be useful , but is available only with ksh93 , which I may not allowed to use." just to point this statement that was part of my original question.
Oct
4
comment Get the last executed command line in ksh
@glennjackman thankyou. fc is an alias for hist only in ksh93, we use a version older than that.
Oct
4
asked Get the last executed command line in ksh
Oct
4
comment Getting the complete command line that caused an ERR , while trap
I am sorry that I should have mentioned the shell as ksh.$BASH_COMMAND works well for bash.
Oct
4
accepted Getting the complete command line that caused an ERR , while trap
Oct
4
comment Getting the complete command line that caused an ERR , while trap
This works perfectly for bash, but I am using ksh. I tried the above idea with ksh , replacing history 1 with fc -nl -1 inside my ksh script, but it said "fc: history functions not available" , which I ll post as a separate questions.But, this answer is right.
Oct
4
revised Getting the complete command line that caused an ERR , while trap
Information about the shell that I am using
Oct
3
asked Getting the complete command line that caused an ERR , while trap