> Does ksh93 have a function to handle variables like files? I'd like to > output sub process data to a variable which should be updated for each > further write from the child. foo=$(ls -l) sends all output after the > child terminates but I'd like to run the child in the background and > $foo always reflects the whole output up to the moment. > > Josh
No, but you can come somewhat close to what I think you are asking for using discipline functions. For example, function foo.set { eval "@" |& } function foo.get { .sh.value=$foo while read -t.01 -r -p do .sh.value+=$REPLY$'\n' done } foo='ls -l' print foo=$foo print foo=$foo David Korn dgk at research.att.com