2018-09-21 07:35:08 |
Roel Van de Paar |
bug |
|
|
added bug |
2018-09-21 07:35:36 |
Roel Van de Paar |
description |
cd /tmp
rm -Rf tst err
echo 'if [ "$1" == "" ]; then echo "empty"; else cat $1; fi' > tst
chmod +x tst
echo "a" > err
ls err | xargs ./tst # ./tst: 1: [: err: unexpected operator
./tst err # works fine, outputs 'a'
On Ubuntu the error will be shown, on Centos it won't. The error looks to be incorrect.
$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
$ xargs --version
xargs (GNU findutils) 4.7.0-git
Copyright (C) 2017 Free Software Foundation, Inc. |
<duplicated by 1793668> please close |
|
2018-09-21 07:37:01 |
Roel Van de Paar |
description |
<duplicated by 1793668> please close |
cd /tmp
rm -Rf tst err
echo 'if [ "$1" == "" ]; then echo "empty"; else cat $1; fi' > tst
chmod +x tst
echo "a" > err
ls err | xargs ./tst # ./tst: 1: [: err: unexpected operator
./tst err # works fine, outputs 'a'
On Ubuntu the error will be shown, on Centos it won't. The error looks to be incorrect.
$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
$ xargs --version
xargs (GNU findutils) 4.7.0-git
Copyright (C) 2017 Free Software Foundation, Inc. |
|
2018-09-21 12:22:14 |
Ubuntu Foundations Team Bug Bot |
tags |
|
bot-comment |
|
2018-09-21 13:04:58 |
Brian Murray |
affects |
ubuntu |
findutils (Ubuntu) |
|
2018-09-21 21:20:49 |
Roel Van de Paar |
findutils (Ubuntu): status |
New |
Confirmed |
|
2018-10-21 07:11:31 |
Andreas Metzler |
findutils (Ubuntu): status |
Confirmed |
Invalid |
|