Skip to content

Releases: dongyx/shsub

v2.2.0

01 Jul 16:47

Choose a tag to compare

Add -e flag to set sequence for escaping single quotes

Rationale: Some shells, like rc, don't support using backslash escapes
outside of a quoted string. In order for shsub to support such shells
without caveats, it is useful to specify an alternative escape sequence for
single quotes.

Ref:
https://doc.cat-v.org/plan_9/4th_edition/papers/rc
https://github.com/rakitzis/rc

@quexxon

v2.1.2

17 Oct 14:06

Choose a tag to compare

  • Better error reporting

v2.1.1

15 Oct 20:33

Choose a tag to compare

  • Minor improvement
  • Documentation updating

v2.1.0

14 Oct 21:39

Choose a tag to compare

  • Support template comments (<%!)
  • Eliminate all dynamic allocation

v2.0.1

03 Aug 07:01

Choose a tag to compare

Fix known issues.
Thank Chris Wellons's review.

v2.0.0

29 Jul 10:36

Choose a tag to compare

This is a breaking upgrade and is incompatible with 1.x.

  • Rewrite with plain C
  • Build to a standalone executable instead of multiple ones
  • Faster template compiling
  • Support including other templates by <%+, %>
  • The special treatment for shebang comments is deprecated; If an executable is required, compile the template to a shell script using the -c option
  • Expressions are no longer automatically quoted and escaped
  • The progname environment variable is no longer set; If the template needs to use $0, compile it to a shell script using the -c option

v1.4.2

05 Jun 11:18

Choose a tag to compare

fix bugs:

  • if the template contains the shebang comment line, the line number reported by shsub is 1-shifted

v1.4.1

29 May 21:03

Choose a tag to compare

update documentation

v1.4.0

29 May 12:35

Choose a tag to compare

add:

  • read from stdin if the file name is -

fix:

  • minor bugs

v1.3.0

27 May 17:16

Choose a tag to compare

added features:

  • set the progname variable if the template is a named file

fixed:

  • minor bugs