undefined variable

From: Ian Pease (I.Pease@esteem.co.uk)
Date: Fri Jan 16 2004 - 06:02:14 EST


Hi Gurus can anybody answer the following question please

Can someone tell me what I have got wrong in the example please

User csit006's .profile:

#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.profile 1.10 01/06/23 SMI"
stty istrip
stty erase ^H
PATH=/usr/bin:/usr/ucb:/etc:.
export PATH
KKK=kris;export KKK

Then, as root, execute:

su - csit006 -c "echo $KKK"

results in:

KKK: Undefined variable

But:

su - csit006 -c "set | grep KKK"

Thanks

Ian
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:50 EDT