Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Newbie: "export: not found" in function that executes a "." ksh script

21 views
Skip to first unread message

Jose Luis

unread,
Sep 19, 2012, 10:39:06 AM9/19/12
to
Hi,


Given the code below:

<<snip>>
[jlfdiaz@helas]/u1/home/jlfdiaz>cat $FPATH/f1
#!/usr/bin/ksh

. /tmp/kk.sh

[jlfdiaz@helas]/u1/home/jlfdiaz>cat /tmp/kk.sh
#!/usr/bin/ksh

export VAR1=ONE
[jlfdiaz@helas]/u1/home/jlfdiaz>f1
ksh[3]: export: not found
[jlfdiaz@helas]/u1/home/jlfdiaz>echo $VAR1
ONE
[jlfdiaz@helas]/u1/home/jlfdiaz>Version M-11/16/88i
<<snip>>


why the error "ksh[3]: export: not found"?


Thanks in advance,
Jose Luis
0 new messages