Package: mr
Version: 1.12
Severity: minor
The man page says
[src/linux-2.6]
checkout = git clone
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git &&
cd linux-2.6 &&
git checkout -b mybranch origin/master
The .mrconfig file uses a variant of the INI file format. Lines
starting with "#" are comments. Values can be continued to the
following line by indenting the line with whitespace.
But this apparently only works if the shell also accepts line
continuations at the respective place. This, for example, won't work:
[src/linux-2.6]
checkout = git clone
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
&& cd linux-2.6
&& git checkout -b mybranch origin/master
$ mr up
mr checkout: /home/peter/tmp/src/linux-2.6
sh: 48: Syntax error: "&&" unexpected
mr checkout: command failed
Putting backslashes at the end of the lines, as in the shell, does
work.
Either the documentation should be clarified about this, or perhaps
the actual implementation should be tweaked to support the advertised
behavior.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]