• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mvdan / sh / 673
78%

Build:
DEFAULT BRANCH: master
Ran 14 May 2017 04:56PM UTC
Jobs 2
Files 15
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
673

push

travis-ci

mvdan
syntax: error on unescaped $ literal

The only context in which it could make sense is a double-quoted string
that needs to use expansions too. For example:

	sed "s/$foo bar$/with/"

In that case, the second '$' is a literal and not a parameter expansion,
as it is not followed by a literal nor a character that makes its token
longer like '{' or '('.

The program should instead be written as:

	sed "s/$foo bar\$/with/"

In all other cases where expansions are not necessary, string literals
should be used instead, i.e. single quotes.

This gets rid of split literals without extra complexity and forces
programs to be saner and easier to read for both the human eye and the
parser. It also means that some possible bugs may be caught, like the
use of $[foo] in POSIX mode that will now error.

4597 of 4757 relevant lines covered (96.64%)

1505.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 673.1 14 May 2017 04:56PM UTC 0
96.64
Travis Job 673.1
2 673.2 14 May 2017 04:56PM UTC 0
96.64
Travis Job 673.2
Source Files on build 673
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #673
  • aff61d46 on github
  • Prev Build on master (#672)
  • Next Build on master (#674)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc