From owner-freebsd-questions@FreeBSD.ORG Sun Jan 22 11:51:56 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E9BD16A41F for ; Sun, 22 Jan 2006 11:51:56 +0000 (GMT) (envelope-from alexander.pohoyda@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 2B57443D46 for ; Sun, 22 Jan 2006 11:51:54 +0000 (GMT) (envelope-from alexander.pohoyda@gmx.net) Received: (qmail invoked by alias); 22 Jan 2006 11:51:53 -0000 Received: from p54AD8AD9.dip0.t-ipconnect.de (EHLO www2.gmx.net) [84.173.138.217] by mail.gmx.net (mp006) with SMTP; 22 Jan 2006 12:51:53 +0100 X-Authenticated: #14602519 Received: from oak.pohoyda.family (localhost [127.0.0.1]) by www2.gmx.net (8.12.10/8.12.10) with ESMTP id k0MBppsA000369 for ; Sun, 22 Jan 2006 12:51:51 +0100 (CET) (envelope-from apog@oak.pohoyda.family) Received: (from apog@localhost) by oak.pohoyda.family (8.12.10/8.12.10/Submit) id k0MBpjiv000366; Sun, 22 Jan 2006 12:51:45 +0100 (CET) (envelope-from apog) Date: Sun, 22 Jan 2006 12:51:45 +0100 (CET) Message-Id: <200601221151.k0MBpjiv000366@oak.pohoyda.family> From: Alexander Pohoyda To: freebsd-questions@freebsd.org X-Y-GMX-Trusted: 0 Subject: RE: String variable expansion routine wanted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2006 11:51:56 -0000 > Well If I understood well you need printf() No, I am looking for the function which will parse the input string, find variables and invoke my callback function with the name of the variable to get it's value. This functionality is used in all shells and make utilities, so I'm wondering why there is no common implementation for it. -- Alexander Pohoyda PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44