go-internal icon indicating copy to clipboard operation
go-internal copied to clipboard

Port 'cmd/go: add mv and support "! cmp" in script tests'

Open myitcv opened this issue 3 years ago • 1 comments

From https://go-review.googlesource.com/c/go/+/380916

myitcv avatar Jan 27 '22 08:01 myitcv

I'll take a stab at this as I want ! cmp for https://github.com/burrowers/garble.

mvdan avatar Mar 12 '22 18:03 mvdan

Just one comment, and I realise this applies to upstream too: it's a little confusing that you can't mv files into a directory the same way you can with cp:

mkdir new

# works
cp a.txt b.txt new

# doesn't work
mv a.txt b.txt new

-- a.txt --
-- b.txt -- 

bitfield avatar Aug 13 '22 11:08 bitfield

Hmm I'd say that probably warrants a new issue to capture that. Feels like an oversight in the upstream implementation?

myitcv avatar Aug 13 '22 20:08 myitcv