bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printf cannot write more than one line to /proc/pid/uid_map


From: Chet Ramey
Subject: Re: printf cannot write more than one line to /proc/pid/uid_map
Date: Tue, 25 Mar 2014 16:15:32 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/25/14 4:11 PM, Chris Down wrote:
> Pádraig Brady writes:
>> If you want to use the external printf to achieve more
>> standard buffering modes, you can use `env` like:
>>
>>   env printf '%s' '0 0 1\n1 1 1' > /proc/31861/uid_map
> 
> While this will probably work, the more typical way to do this is with
> command(1P).

`command' is a shell builtin that will run shell builtins.  It only skips
shell functions.

- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlMx4+QACgkQu1hp8GTqdKt+uACdGGXBCsybrU6qmOXf8g/ibVpX
biMAnRAcmljPxqSkHUAAEzuOoIS1mSih
=RADZ
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]