From: | "Amadeusz Żołnowski" <aidecoe@g.o> | ||
---|---|---|---|
To: | "Göktürk Yüksek" <gokturk@g.o> | ||
Cc: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place | ||
Date: | Wed, 18 May 2016 22:54:07 | ||
Message-Id: | 87d1ojx9j2.fsf@freja.aidecoe.name | ||
In Reply to: | Re: [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place by "Göktürk Yüksek" |
1 | Göktürk Yüksek <gokturk@g.o> writes: |
2 | >> + cat "${f}" >"${tmpf}" || return 1 |
3 | > Why shell redirection with cat instead of cp? both are in coreutils. |
4 | |
5 | I thought cp could overwrite file mode of already existing tmp file, but |
6 | actually it doesn't, so cp can be here as well. Is there actual benefit |
7 | of using cp here? |
8 | |
9 | > Also, wouldn't the absence of 'die' cause silent breakages? |
10 | |
11 | I want to caller decide whether die or not and what error messge to |
12 | give. |
13 | |
14 | Cheers, |
15 | |
16 | -- |
17 | Amadeusz Żołnowski |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place | "Göktürk Yüksek" <gokturk@g.o> |
Re: [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place | Ulrich Mueller <ulm@g.o> |