From owner-freebsd-small Sun Mar 19 12:59:53 2000 Delivered-To: freebsd-small@freebsd.org Received: from mimer.webgiro.com (mimer.webgiro.com [212.209.29.5]) by hub.freebsd.org (Postfix) with ESMTP id 4140C37B6C8 for ; Sun, 19 Mar 2000 12:59:49 -0800 (PST) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 66) id 55C7B2DC07; Sun, 19 Mar 2000 22:04:00 +0100 (CET) Received: by mx.webgiro.com (Postfix, from userid 1001) id 460DA7811; Sun, 19 Mar 2000 21:55:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mx.webgiro.com (Postfix) with ESMTP id 43D8710E17; Sun, 19 Mar 2000 21:55:37 +0100 (CET) Date: Sun, 19 Mar 2000 21:55:37 +0100 (CET) From: Andrzej Bialecki To: "Patrick S. Gardella" Cc: Doug White , freebsd-small@freebsd.org Subject: Re: crunchgen and ln In-Reply-To: <20000316173048.A15699@green.wl.vg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 16 Mar 2000, Patrick S. Gardella wrote: > On Thu, Mar 16, 2000 at 03:56:09PM -0800, Doug White wrote: > > On Thu, 16 Mar 2000, Patrick Gardella wrote: > > > > > For all you crunchgen experts out there: > > > > > > Is there any way to use the "ln" feature of crunchgen to do aliases? > > > For instance: > > > ln la ls -Al > > > So that when the crunched binary saw "la" in argv[0] would run "ls -Al"? > > > > How about a shell script or a shell dotfile the defines the alias? This > > implies you're dropping to a shell so you have all the normal facilities. > > No, what I'm trying to do is figure out how to get sash to replace > all the normal commands in PicoBSD. sash -cp = cp sash -mv = mv > > It'll take less room that way. I thought the builtins are used also when sash can't find external programs with that name, so if there is no /bin/cp on the floppy, it will use internal cp. The - form was only for cases when you really want to invoke the builtin, though the external program by that name exists in your PATH. Andrzej Bialecki // WebGiro AB, Sweden (http://www.webgiro.com) // ------------------------------------------------------------------- // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message