Redirection and shell commands

From the zsh command line, the following works:

> sed 's/BEGIN.*END,//' file.csv > file.csv

from the Julia shell environment, it doesn’t:

;sed 's/BEGIN.*END,//' file.csv > file.csv
sed: >: No such file or directory

The manual indicates that, at least when executing shell commands programmatically, the ‘>’ character needs to be escaped. But this seems to make no difference:

;sed 's/BEGIN.*END,//' file.csv \> file.csv
sed: >: No such file or directory

and running it programmatically results in the same behavior:

julia> mycmd = `sed 's/BEGIN.*END,//' file.csv \> file.csv`
julia> run(mycmd)
sed: >: No such file or directory

Clearly I don’t understand something.