On Mon, Feb 09, 2004 at 10:35:17AM -0800, joe wrote:Forgive me, but apart from the spurious spelling mistakes how does
You didn't miss anything that I said but what I did not say. TheSo, you didn't like our answers? what did we miss?This indeed was a stupid question and I apologize. The answer isThis is driving me crazy. How does one capture the string output of a function in a bash shell script like:
p=getpass($1)
should do into the variable p?
probably use Perl.
Joe
getpass I was talking about in this case was a C program. C main
programs do not return string values which I was trying to do here.
If getpass was a bash function your answers would be appropriate. But for a C program it just won't work.
p=$(date +%x)
differ from
p=$(getpass $1)
Unless by "C program" you don't mean a C program, you mean a C subroutine that you want to call from a C program, or indeed from Perl.
jch
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list