zsh-workers
 help / color / mirror / code / Atom feed
From: "Allen Belk" <allen.belk@usm.edu>
To: <zsh-workers@sunsite.auc.dk>
Subject: returning a pathname from a function
Date: Thu, 30 Mar 2000 14:56:31 -0600	[thread overview]
Message-ID: <000501bf9a8a$6cd33a90$3e525f83@otr.usm.edu> (raw)

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




             reply	other threads:[~2000-03-30 20:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-30 20:56 Allen Belk [this message]
2000-03-31  5:47 ` Andrej Borsenkow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000501bf9a8a$6cd33a90$3e525f83@otr.usm.edu' \
    --to=allen.belk@usm.edu \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).