Package: curl
Version: 8.23.0~rc2-1
Severity: normal

This bug appeared after an upgrade from veersion 8.22.0-1.

#!/bin/bash
set -e
curl -s "http://tinyurl.com/api-create.php?url=$1";
echo ""

I have the above shell script to get a tinyurl which has been working for many
years.

URL2=$(tinyurl $1)
read PRIM

The above shell script fails with the following error on the latest version:

script-name: line 26: read: 0: read error: Resource temporarily unavailable

When I changed the tinyurl script to the following (redirectint input from
/dev/null) it started working again.  It seems that curl messes with the
terminal settings and makes the bash script fail.

#!/bin/bash
set -e
curl -s "http://tinyurl.com/api-create.php?url=$1"; < /dev/null
echo ""

The expected behaviour is that it will either not change the settings or it
will change them back after doing whatever it wants to do.

-- System Information:
Debian Release: forky/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.2.8+deb14-amd64 (SMP w/22 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages curl depends on:
ii  libc6        2.43-6
ii  libcurl4t64  8.23.0~rc2-1
ii  zlib1g       1:1.3.dfsg+really1.3.2-3

Versions of packages curl recommends:
ii  bash-completion  1:2.16.0-8

curl suggests no packages.

-- debconf-show failed

Reply via email to