Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: umask for process substitution
- X-seq: zsh-users 5933
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: umask for process substitution
- Date: Sat, 22 Feb 2003 23:36:37 +0000
- In-reply-to: <15957.22919.742981.955897@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <15957.22919.742981.955897@xxxxxxxxxxxxxxxxxxxx>
On Feb 20, 2:41pm, Paul Lew wrote:
}
} Is there a way to set umask for temporary file created with =(cmd)?
No, there isn't.
However, because of the order in which zsh creates/removes those temp
files, you can do something like this:
{ f==(cmd); chmod a+r $f; suidprog $f }
That is, the file will persist until the end of the braces (and maybe
longer, depending on the structure of the command).
If your operating system supports /dev/fd/, you might be able to do this:
suidprog =(chmod a+r /dev/fd/1; cmd)
It depends on the implementation of /dev/fd ... it works on Linux, but I
doubt it works on Solaris.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author