rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Alan Watson <alan@oldp.astro.wisc.edu>
To: rc@hawkwind.utcs.toronto.edu
Subject: umask
Date: Thu, 27 May 1993 01:31:30 -0400	[thread overview]
Message-ID: <9305270531.AA19953@oldp.astro.wisc.edu> (raw)

What a day.  Is there a reason why rc barfs on a umask greater than
0777?  I have just modifed one of my scripts to protect a temporary
file by doing:

	umask = `{ umask }
	umask 077
	...
	umask $umask

and it now doesn't work properly if I use an escape from vi inside MH,
as MH sets umask to 7177 (quite why I don't know).

sh and sh5 seem to perform a umask (value & 0777), csh and bash give an
error message if the value is > 0777, but ksh goes ahead and does it.


             reply	other threads:[~1993-05-27  5:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-27  5:31 Alan Watson [this message]
1993-05-27  6:47 umask Paul Haahr

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=9305270531.AA19953@oldp.astro.wisc.edu \
    --to=alan@oldp.astro.wisc.edu \
    --cc=rc@hawkwind.utcs.toronto.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).