Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: "Jason A. Donenfeld" Newsgroups: gnu.bash.bug Subject: Re: process substitution fd lifetime race condition Date: Mon, 20 Apr 2020 15:49:50 -0600 Lines: 12 Approved: bug-bash@gnu.org Message-ID: References: <20200420051508.GA2359844@zx2c4.com> <7496b183-2db3-6c03-6074-928adcd08f45@case.edu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1587419407 18052 209.51.188.17 (20 Apr 2020 21:50:07 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: Chester Ramey Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=UENbpuj/K66610hPo6+I/Qg0IRo=; b=L+YvYk 4Q7Ak6BWuqNedQD5hofelWhXtPXSFfTz84MKV6LFLRPCTh2WubyE+XMpnofQbk+b QAQVc7StT2xfN+R9t9isUfhFWfNI/UxW8C0NA9IbnuoGRHZy2HeqPHlTDfBx1Qhy uQfJ+++BNqX01NcK6aTdJnWj0VFYR2plUQvUFCBrogc8lsx1KVRuUnj87tJZGocF 7kuokQyVuceBK8R5GaAzDbESN1DS4104T1dFLryPoPHvyozUqcclR23LWgyAPFQY gUMfOlcwdbCVGof3GPGW1M1NtR02QVm9BQUUgJWObGwIVE8j8RJsdifcFXObmNdh 6yTkY98zqivId3ng== X-Gm-Message-State: AGi0PuYhr72IiCZqLVDkP08ezjK/rKRWTB5iYdjaMcJDllFHjRa0Jspc G9dJxxEEbuJtYWBmFhWWbWWTOJ/O72N3tdlPO48= X-Google-Smtp-Source: APiQypIkgMdw+P7TfHwLvQS9922rZJ8+f2ek2EoweEeiKvtVG8zJcpi/Fe+VVUH2R9fPEnAKAzzlmENew93gB640KDI= X-Received: by 2002:a02:7f12:: with SMTP id r18mr6231886jac.75.1587419401630; Mon, 20 Apr 2020 14:50:01 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: Received-SPF: pass client-ip=192.95.5.64; envelope-from=Jason@zx2c4.com; helo=mail.zx2c4.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/20 17:01:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Received-From: 192.95.5.64 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <20200420051508.GA2359844@zx2c4.com> <7496b183-2db3-6c03-6074-928adcd08f45@case.edu> Xref: csiph.com gnu.bash.bug:16205 This one will reproduce immediately: #!/bin/bash set -e a="my name is a" b="my name is b" sleep() { read -t "$1" -N 1 || true; } doit() { sleep 0.1; "$@"; } while true; do doit cat <(echo "$a") <(echo "$b") done