From: Zefram <zefram@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu
Subject: -L option for umask
Date: Sat, 22 Mar 1997 16:37:09 GMT [thread overview]
Message-ID: <13377.199703221637@stone.dcs.warwick.ac.uk> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
This is an updated form of patch 721, which didn't get into the baseline
at that time.
-zefram
*** Doc/Zsh/builtins.yo 1997/03/22 14:18:58 1.11
--- Doc/Zsh/builtins.yo 1997/03/22 14:24:37
***************
*** 1107,1120 ****
)
findex(umask)
cindex(umask)
! item(tt(umask) [ tt(-S) ] [ var(mask) ])(
The umask is set to var(mask). var(mask) can be either
an octal number or a symbolic value as described in manref(chmod)(1).
! If var(mask) is omitted, the current value is printed. The tt(-S)
! option causes the mask to be printed as a symbolic value. Otherwise,
! the mask is printed as an octal number. Note that in
the symbolic form the permissions you specify are those which are to be
allowed (not denied) to the users specified.
)
cindex(aliases, removing)
alias(unalias)(unhash -a)
--- 1107,1123 ----
)
findex(umask)
cindex(umask)
! item(tt(umask) [ tt(-SL) ] [ var(mask) ])(
The umask is set to var(mask). var(mask) can be either
an octal number or a symbolic value as described in manref(chmod)(1).
! Note that in
the symbolic form the permissions you specify are those which are to be
allowed (not denied) to the users specified.
+
+ If var(mask) is omitted, the current value is printed. The tt(-S)
+ option causes the mask to be printed as a symbolic value. Otherwise,
+ the mask is printed as an octal number. The tt(-L) option causes the
+ report to be in the form of a tt(umask) command.
)
cindex(aliases, removing)
alias(unalias)(unhash -a)
*** Src/builtin.c 1997/03/22 14:19:08 1.65
--- Src/builtin.c 1997/03/22 14:22:45
***************
*** 3436,3441 ****
--- 3436,3443 ----
umask(um);
/* No arguments means to display the current setting. */
if (!s) {
+ if(ops['L'])
+ fputs("umask ", stdout);
if (ops['S']) {
char *who = "ugo";
*** Src/hashtable.h 1997/03/22 14:19:11 1.29
--- Src/hashtable.h 1997/03/22 14:23:28
***************
*** 337,343 ****
{NULL, "type", 0, bin_whence, 0, -1, 0, "ampf", "v"},
{NULL, "typeset", BINF_TYPEOPTS | BINF_MAGICEQUALS | BINF_PSPECIAL, bin_typeset, 0, -1, 0, "LRUZfilrtuxm", NULL},
{NULL, "ulimit", 0, bin_ulimit, 0, -1, 0, NULL, NULL},
! {NULL, "umask", 0, bin_umask, 0, 1, 0, "S", NULL},
{NULL, "unalias", 0, bin_unhash, 1, -1, 0, "m", "a"},
{NULL, "unfunction", 0, bin_unhash, 1, -1, 0, "m", "f"},
{NULL, "unhash", 0, bin_unhash, 1, -1, 0, "adfm", NULL},
--- 337,343 ----
{NULL, "type", 0, bin_whence, 0, -1, 0, "ampf", "v"},
{NULL, "typeset", BINF_TYPEOPTS | BINF_MAGICEQUALS | BINF_PSPECIAL, bin_typeset, 0, -1, 0, "LRUZfilrtuxm", NULL},
{NULL, "ulimit", 0, bin_ulimit, 0, -1, 0, NULL, NULL},
! {NULL, "umask", 0, bin_umask, 0, 1, 0, "SL", NULL},
{NULL, "unalias", 0, bin_unhash, 1, -1, 0, "m", "a"},
{NULL, "unfunction", 0, bin_unhash, 1, -1, 0, "m", "f"},
{NULL, "unhash", 0, bin_unhash, 1, -1, 0, "adfm", NULL},
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: ascii
iQCVAwUBMzPtOHD/+HJTpU/hAQGymQP/WQFXo5LqGS4V0mTHUB602QrLOTRc34yI
sNjIrz6yKbNSUSkIGicImNErCOTE2koliwD3q0Q/mS+sOEjQkaqeSD2VYGh+XLMr
n9lI93Fo+otA2BBO6PMScg/W+6Mxs4gcEctZ8hSVuFcIgDjbza6s7gQGoMZSzSDc
bgSEhIp0a4A=
=oEFW
-----END PGP SIGNATURE-----
reply other threads:[~1997-03-22 16:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=13377.199703221637@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=zsh-workers@math.gatech.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.
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).