From owner-freebsd-questions@FreeBSD.ORG Mon Jun 25 22:39:07 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 411D11065673 for ; Mon, 25 Jun 2012 22:39:07 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 24DC78FC12 for ; Mon, 25 Jun 2012 22:39:07 +0000 (UTC) Received: from [10.0.10.3] ([173.88.199.104]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 25 Jun 2012 15:39:06 -0700 Message-ID: <4FE8E887.80605@a1poweruser.com> Date: Mon, 25 Jun 2012 18:39:03 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Polytropon References: <4FE8C72F.4040908@a1poweruser.com> <20120625225226.7a5c88db.freebsd@edvax.de> In-Reply-To: <20120625225226.7a5c88db.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jun 2012 22:39:06.0666 (UTC) FILETIME=[544940A0:01CD5323] X-Sender: fbsd8@a1poweruser.com X-Authenticated-Sender: fbsd8@a1poweruser.com X-EchoSenderHash: [fbsd8]-[a1poweruser*com] Cc: FreeBSD Questions Subject: Re: fetch error 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: Mon, 25 Jun 2012 22:39:07 -0000 Polytropon wrote: > On Mon, 25 Jun 2012 16:16:47 -0400, Fbsd8 wrote: >> I think I messed up the fetch setting in the envelope. >> >> Running 9.0 and get this console msg. >> >> env: usr/bin/fetch: No such file or directory >> >> When I enter env command to show all values I see nothing about fetch. > > The "env" command is often used as a "bridge" to explicitely > call commands where the actual location is not known or cannot > be predicted, e. g. > > #!/usr/bin/env bash > > at the start of a bash script instead of > > #!/bin/bash > > Linuxism or when statically linked, as opposed to > > #!/usr/local/bin/bash > > default location on FreeBSD. > > > > In what operation do you receive the message? Maybe some typo > in a shell script or Makefile? > > Examine closely: > > env: usr/bin/fetch: No such file or directory > ^ > > The leading / is missing, because "usr/bin/fetch" would only > exist when $CWD is /, otherwise not; "/usr/bin/fetch" should > be correct. > > % which fetch > /usr/bin/fetch > ^ > > Here the correct path is provided. Maybe you ran into some script > that calls fetch the "bridge" way improperly? > > Test: > > % env usr/bin/fetch > env: usr/bin/fetch: No such file or directory > > And now properly: > > % env /usr/bin/fetch > usage: fetch [-146AadFlMmnPpqRrsUv] ............ > > It seems that env is used here to "set environment and execute > command"; see "man env" for details. > > > I get that env error when running the new csup. A few months back I was fooling around with pf firewall and was testing different env settings to test passive mode with pf. I think i changed this environment value and made a typo leaving off the leading /. I no longer remember the environment name I used when I did the typo. Can you help me with what the name is to use?