From owner-freebsd-questions@freebsd.org Sat Jan 20 16:33:35 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB8E9EB7D45 for ; Sat, 20 Jan 2018 16:33:35 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (mail.dpedia.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7A01280D1F for ; Sat, 20 Jan 2018 16:33:34 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [93.104.137.253] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1ecw2o-0005d6-OC for freebsd-questions@freebsd.org; Sat, 20 Jan 2018 17:31:02 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id w0KGXOWb005340 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 20 Jan 2018 17:33:24 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id w0KGXNM8005339 for freebsd-questions@freebsd.org; Sat, 20 Jan 2018 17:33:23 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 20 Jan 2018 17:33:23 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: fetch is waiting on input on stdin Message-ID: <20180120163323.GA5223@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org References: <20180112084556.GA13812@c720-r314251> <20180112120937.GA14731@c720-r314251> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: <20180112120937.GA14731@c720-r314251> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.137.253 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 16:33:35 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm still trying to get around or understand this and maybe it's time to file a bug PR.... The man page of fetch(3), i.e. the used library for this, explains the usage of some env vars: FTP_LOGIN=3Danonymous export FTP_LOGIN FTP_PASSWORD=3Dguru@sisis.de export FTP_PASSWORD and if you set this and run: $ fetch ftp://ftp.muc.de you will see, that the values of the env vars are used, but only *after* reading and getting EOF on stdin, i.e. if you run: $ fetch ftp://ftp.muc.de < /dev/null it works right away. How this is supposed to work in automated scripts, like 'make install'? matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ =F0=9F=93=B1 +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAlpjb1AACgkQR8z35Hb+ nRFBCA/+L0BNFVJEL+gagMBLFtOXdqPemKvJed/QTrdhJaXrOznH3uV6ZA1T0VbU imKHmBSDAvFgvq94z55/2ijzw0RzVXDbA2bYptCqhRCfUAEE8FsGIq4bdqvboK/o zON+HffEiIV09wEByHG3c5RYZO5S4vbtfDrVlTza+Fg/+1y2AjOhg/GoOBGhEjma rcmwmccqy6Bbs0eEt+tjw/UJbzrmjKaCDq57LuMfdAO/YJmfipcDrE3BxQxY8L+l Do1xTzBxsN99vIcTS0eReM5C5UDoNauRH/cDXS9aIh3Z7e1yXJoNyZF52j2RfEe+ 2Y8cBrZOV1n/JubDIyQebmH1TsuIZRcDQQ2WtFrDu6E5FUZywqvzNn8nftmC/g8n 2kMly3ceiEyJqWTVDKeMHyb/ZLys/NDmsYWK+tm4uKYUYpBIdMbtowGlE3gOl5LJ waarb2Lm9TUHjD2oZpaB5PqC4oONP8R9e0Y3dKk1iV4wRPGeP4rzKTYQF81dqJBT d7HjnvzNvg80VxDBzw2vFgcq4Z6YfxoV6kr+RxRoeYvAOWEKRlJ32aXxTscTZsPu /2LHttciTWpN0Mztpfddtb6YZaqJttp+WiBMYD0FX9BF7j329A/d39OSwf65gHoL bznEkkNWbYAGTdtRngcGYPP8tx0EgLEudg7TiH94RpDa2lhtLzI= =2W5O -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--