Source: spring
Version: 105.0.1+dfsg-2
Severity: important

In spring.6.txt there are snippets like the following:

    {sys: echo -e "{USER_WRITEDIRS}"}

However, this is not portable across shells, as echo -e is a bash
extension, causing this to print a literal -e when /bin/sh is dash.
This is important, since that is the default for Debian systems,
including on all buildds.

Interestingly, the escape sequences still give the right value for
dash, the only difference is whether -e is printed too, so I suspect
the -e is entirely superfluous and asciidoc(?) has already done the
expansion (and potentially risks double-expanding on bash, so \\n might
print as a newline rather than a literal \n), but that is just
speculation. Regardless, this should be fixed one way or another, as
the packages currently in the archive have stray -e's in the manpage:

       
+---------+-------------------+--------------------------------------+--------------------------------------+--------------------------------------+
       |priority |      section      |                normal                |   
            portable               |              isolation               |
       
+---------+-------------------+--------------------------------------+--------------------------------------+--------------------------------------+
       |         |                   |                                      |   
                                   |                                      |
       |    high | custom user write | -e directory defined via --write-dir | 
-e directory defined via --write-dir | -e directory defined via --write-dir |
       |         |                   |                                      |   
                                   |                                      |
       |         |                   | SPRING_WRITEDIR envvar               | 
SPRING_WRITEDIR envvar               | SPRING_WRITEDIR envvar               |
       
+---------+-------------------+--------------------------------------+--------------------------------------+--------------------------------------+
       |         |                   |                                      |   
                                   |                                      |
       |         | automatic scanned | -e CONFIG_HOME                       | 
-e INSTALL_DIR                       | ISOLATION_DIR                        |
       |         |                   |                                      |   
                                   |                                      |
       |         |                   | ETC_DIRS                             | 
CONFIG_HOME                          |                                      |
       |         |                   |                                      |   
                                   |                                      |
       |         |                   | USR_SHARE                            | 
ETC_DIRS                             |                                      |
       |         |                   |                                      |   
                                   |                                      |
       |         |                   |                                      | 
USR_SHARE                            |                                      |
       
+---------+-------------------+--------------------------------------+--------------------------------------+--------------------------------------+
       |         |                   |                                      |   
                                   |                                      |
       |     low | custom user read  | -e SPRING_DATADIR envvar             | 
-e SPRING_DATADIR envvar             | -e SPRING_DATADIR envvar             |
       |         |                   |                                      |   
                                   |                                      |
       |         |                   | SpringData configtag                 | 
SpringData configtag                 | SpringData configtag                 |
       
+---------+-------------------+--------------------------------------+--------------------------------------+--------------------------------------+

(spring(6) in the latest amd64 unstable package)

In case you're interested, this was discovered by the automated builds
done as part of reproducible-builds.org.

Jess

Reply via email to