delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/12/29/16:48:34

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD299384240B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1609278468;
bh=EtrNE9XRUo7uffbjQyMdwOqvBXYmrB2bwkZA1A80ou8=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=X+KRXMEggTqBEBdEDuQG14yE9xW5xhE80vHYJILkoBD9eedcLkCR/G0TeEks2LGxW
VlCq2SnGkBbjH174R4eH66vp8j7icadqiKrtWuuM+u2n5H1G8JwgaD2srGhfC9j7k1
gSx+TV6QWzK3BaN9LXTGnoBF1M6+m26tn/UHTTBA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EC21F385040C
Date: Wed, 30 Dec 2020 00:50:56 +0300
Message-ID: <1626660026.20201230005056@inbox.ru>
To: cygwin AT cygwin DOT com
Subject: tee: 'standard output': Permission denied
In-Reply-To: <1939012153.20201227050421@inbox.ru>
References: <1939012153 DOT 20201227050421 AT inbox DOT ru>
MIME-Version: 1.0
X-7564579A: 646B95376F6C166E
X-77F55803: 4F1203BC0FB41BD9D0E79FBC973162CD9807AE62CAC2B33C765C844EAC374FFF00894C459B0CD1B9DA5103405511EF0F715E72842B70EFD1B9ED43A8CBA071A19B63AE8E64546DAE
X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE75DF2B1F23425CAE5EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637188F5654332B449D8638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FC9CB73ADFB307825B966F2BAAE86C83C885D8857220F3AED7389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0215861E36FCFD02D8941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B68424CA1AAF98A6958941B15DA834481F9449624AB7ADAF37BA3038C0950A5D3613377AFFFEAFD2690E30A4C9C8E338DADEAE4BB767A572CB7B076A6E789B0E97A8DF7F3B2552694A1E7802607F20496D49FD398EE364050FD58E677C372A3F478F49F126DDB898E8B3661434B16C20AC78D18283394535A975ECD9A6C639B01BC09775C1D3CA48CFF65C0D82C631A427089D37D7C0E48F6CCF19DD082D7633A0E7DDDDC251EA7DABAAAE862A0553A39223F8577A6DFFEA7C8581A69F53823F8D43847C11F186F3C5E7DDDDC251EA7DABCC89B49CDF41148F53FDB0A1CE3EC88B3B503F486389A921A5CC5B56E945C8DA
X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CC2FE7E344A2E3931C1F5BBB410DD15E666C3C7E0D32E827F9C2B6934AE262D3EE7EAB7254005DCEDCF20510D834BC2AB1E0A4E2319210D9B64D260DF9561598F01A9E91200F654B038889A5EF59567618E8E86DC7131B365E7726E8460B7C23C
X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34A5BF8FA0BD61F994C4C819BFD9C21CF4C9F43009D09975A3264CCCB284DB85489418E1410CFFD9FD1D7E09C32AA3244C5D76B3E6BED32390366F52D7767E3EDCF94338140B71B8EE3EB3F6AD6EA9203E
X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojNll+cLb63cgvXtbrHdsIWA==
X-Mailru-Sender: DC3EB4EBD01594E4FB81CD6A8E458E7D52B300CE05D4CB9F39A53C059B9F5C93223BD40879DE626A58EE59803C9A990DFB559BB5D741EB96FE679880309AA8C3B93E98C39DA16A030DA7A0AF5A3A8387
X-Mras: Ok
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP,
WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Andry via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Andry <andry AT inbox DOT ru>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Hello Cygwin,

  >I am trying to change directory before run a bash shell with login:

  I've minimized to a minimal example to repro the issue:

  *run_cygwin_bash.bat*:

  ```
  @echo off

  set CYGWIN_ROOT=...
  set PWD=...
  set PROJECT_LOG_FILE=...

  chcp.com 65001 >nul


  "%CYGWIN_ROOT%\bin\bash.exe" -c "{ cd ""%PWD:\=/%""; CHERE_INVOKING=. ""%CYGWIN_ROOT:\=/%/bin/bash.exe"" -l -i; } 2>&1 | ""%CYGWIN_ROOT:\=/%/bin/tee.exe"" -a ""%PROJECT_LOG_FILE:\=/%"""
  ```

  To execute:

  ```
  c:\> start "" cmd.exe /C run_cygwin_bash.bat

  ```

  To stall:

  ```
  $ 123
  c:/cygwin/bin/tee: 'standard output': Permission denied
  ```

  It repro only if:

  `chcp.com 65001` used together with `start "" cmd.exe ...`

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019