From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10316 invoked from network); 30 Mar 2000 20:56:48 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Mar 2000 20:56:48 -0000 Received: (qmail 11378 invoked by alias); 30 Mar 2000 20:56:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10340 Received: (qmail 11366 invoked from network); 30 Mar 2000 20:56:37 -0000 Message-ID: <000501bf9a8a$6cd33a90$3e525f83@otr.usm.edu> From: "Allen Belk" To: Subject: returning a pathname from a function Date: Thu, 30 Mar 2000 14:56:31 -0600 Organization: University of Southern Mississippi MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Zsh hackers, I am attempting to return a path name from the following function. prep_directories() { output_directory="/var/adm/backup/${1}_${2}" backup_log="${output_directory}/backup.log" backup_lis="${output_directory}/backup.lis" return $backup_log,$backup_lis } prep_directories 20000330 WEEKLY Executing this script results in the following error. prep_directories: bad math expression: unbalanced stack [75] I assume it has something to do with the slashes (/) found in the string that it is attempting to return. Any and all suggestions will be greatly appreciated. Thanks, Allen Belk | Allen Belk, Systems Manager | Office of Technology Resources | University of Southern Mississippi | allen.belk@usm.edu 601.266.6013