From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1531 Path: news.gmane.org!not-for-mail From: =?ISO-8859-2?Q?Daniel_Cegie=B3ka?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: Priorities for next release? Date: Sat, 11 Aug 2012 21:05:41 +0200 Message-ID: References: <50258541.6000805@gentoo.org> <20120811000553.GD27715@brightrain.aerifal.cx> <5025AD41.3060009@gentoo.org> <22761.132.241.65.128.1344651681.squirrel@lavabit.com> <20120811023602.GF27715@brightrain.aerifal.cx> <20120811122712.GG27715@brightrain.aerifal.cx> <20120811160950.GH27715@brightrain.aerifal.cx> <20120811165049.GI27715@brightrain.aerifal.cx> <20120812015536.3caa3999@sibserver.ru> <20120812024716.47125694@sibserver.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1344711974 12764 80.91.229.3 (11 Aug 2012 19:06:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2012 19:06:14 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1532-gllmg-musl=m.gmane.org@lists.openwall.com Sat Aug 11 21:06:15 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1T0H0p-0004mP-4L for gllmg-musl@plane.gmane.org; Sat, 11 Aug 2012 21:06:15 +0200 Original-Received: (qmail 26427 invoked by uid 550); 11 Aug 2012 19:06:13 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 26416 invoked from network); 11 Aug 2012 19:06:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=toQ7u3XgbeCtOOngJUyBbnT0lztpr50aH2jU7IoQRqg=; b=FmFzDjSbjDocVpxOuVodsMgpXZsJC7/0N8ocOnfF2WzzujuPcnaZ3+AfVm1O8APAuA EdEbw5zVb/DjHwDW8XwabRLvhCK7Y8ni1w7m9aZEwI7DEGJAijMmuMA2+YI4VLTveS4S bJTTPrFLsqXeuxvH/XoRLYe4jKa2YIiy70WkggETaAWV1mf7L/l407rbkINKIN3G4ikn R8n06CfO9xCgkKdZCCcRObJu262mHcBZeDgMu4q1H7ZlZFXqJ+VpUVeASt5xjzBbfpgw BcYbbzKciQCEyrBGqy7CH8f7tNCyDB8L4KDscK/8Ys/GecxFtEEs5mGwM5YyJa0qeP8F mEkQ== In-Reply-To: <20120812024716.47125694@sibserver.ru> Xref: news.gmane.org gmane.linux.lib.musl.general:1531 Archived-At: >> what you think? It works for me... so why basename(argv[0])? >> >> Daniel > > basename() is for stripping path objects, for example, when you run > prog via full path, /bin/true, basename("/bin/true") = "true" > > See man 3 basename Indeed, it is better. However, if you run from $PATH, it works ok without basename(). Thanks for suggestion :) Daniel