Version 5.2.15

see example script below, the unassigned $nope is reported to be in line 4 which is obviously wrong. Removing the parentheses around the echo fixes the problem.

#!/bin/bash
set -u
( echo x ) | while read f ; do
    echo Test $f
    echo Test $f
    echo Test $f
    echo Test $f
    echo Test $f
done
echo $nope

--
-- mit freundlichen Grüßen
--
-- Matthias Urlichs

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

  • Wrong line... Matthias Urlichs via Bug reports for the GNU Bourne Again SHell
    • Re: W... Chet Ramey
      • R... Matthias Urlichs via Bug reports for the GNU Bourne Again SHell
        • ... Chet Ramey

Reply via email to