From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 21 Apr 2023 15:36:22 +0300 From: Vladislav Zavjalov To: ALT Linux Team development discussions Message-ID: <20230421123622.GA28392@imap.altlinux.org> References: <20230420141519.4560389b@sem-nb2> <20230421113851.24ecadd9@sem-nb2> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [devel] UID_MIN/GID_MIN 500 -> 1000 X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2023 12:36:22 -0000 Archived-At: List-Archive: List-Post: On Fri, Apr 21, 2023 at 02:09:03PM +0200, Alexey Gladkov wrote: > Это делается, потому что на самом деле это не так просто как кажется. > > Numbers (both regular and long) may be either decimal values, octal values > (precede the value with 0) or hexadecimal values (precede the value with > 0x). The maximum value of the regular and long numeric parameters is > machine-dependent. > > Очевидно grep не достаточно. > > Как правильно в скриптах получать эти значения ? $ printf "%d\n" 010 8 $ printf "%d\n" 0x10 16 $ printf "%d\n" 10 10