rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Mark-Jason Dominus <mjd@saul.cis.upenn.edu>
To: Byron Rakitzis <byron@archone.tamu.edu>
Cc: mjd@saul.cis.upenn.edu, rc@archone.tamu.edu
Subject: Re: biff?
Date: Fri, 28 Jun 1991 15:30:20 -0500	[thread overview]
Message-ID: <9106282030.AA16256@saul.cis.upenn.edu> (raw)
In-Reply-To: Your message of "Fri, 28 Jun 91 15:19:15 CDT." <91Jun28.151927cdt.22542@archone.tamu.edu>


> fn getsize {			# Get the size of $mail in bytes
> 	size = `{ls -l $mail}
> 	size = $size(4)
> 	if (~ $#size 0)		# No output from ls?
> 		size = 0
> 	$1 = $size
> }

Does this work at all?  On my machine $size(4) is `mjd', because there's
a double space between the permissions and the link count except when
the number of links exceeds 9.

-rw-------  1 mjd             0 Jun 28 16:24 /var/spool/mail/mjd

In fact, it's very difficult to get the size, because it's $size(17),
unless the size exceeds 9 bytes, in which case it's $size(16),  unless
the size exceeds 99 bytes, inwhich case it's $size(15)...

Who was it who said that the $ifs behavior was doing the right thing?


      reply	other threads:[~1991-06-28 20:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-06-28 20:19 biff? Byron Rakitzis
1991-06-28 20:30 ` Mark-Jason Dominus [this message]

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=9106282030.AA16256@saul.cis.upenn.edu \
    --to=mjd@saul.cis.upenn.edu \
    --cc=byron@archone.tamu.edu \
    --cc=rc@archone.tamu.edu \
    /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.
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).