date override

When the aix date function is called by a routine, is the date function 'aware' of the name of the routine that is calling it, such that if we had the source code of the date function, we could modify it so that it provides a date to the caller depending upon the identity of the calling routine. This would enhance our ability to test particular functions without disrupting the rest of a test system with a system wide dummy date.

write the date script in such a way that depending on some parameter passed along with it, it will show the output.....

example: in the script you can execute as:

date `$0`

this will pass the script name to the date function caz $0 will give the script name. here, date should be your own function, wherein it calls the AIX date function....