Jq: @base64d fails

Created on 10 May 2017  路  4Comments  路  Source: stedolan/jq

When running the following:

echo '"blah"' | jq '@base64' | jq '@base64d'

I get:

jq: error (at <stdin>:1): base64d is not a valid format

This should always work right? Am I missing something?

jq --version is jq-1.5-1-a5b5cbe

OS:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

All 4 comments

@base64d was only added recently (post 1.5). Until we release a new version, you'll have to build master to get @base64d

Is 1.6 going to be released soon?

Still not on recent distribution

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:   bionic

jq version

$ jq --version
jq-1.5-1-a5b5cbe
$ echo '"blah"' | jq '@base64' | jq '@base64d'
jq: error (at <stdin>:1): base64d is not a valid format

It would be nice to tag the documentation that it starts at some version:

https://stedolan.github.io/jq/manual/#Formatstringsandescaping

It would be nice to tag the documentation that it starts at some version:

Sure, but in the meantime, please note that at the top of the page you reference, it does say "jq Manual (development version)", and also gives pointers to the various different releases.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  69Comments

ilkka picture ilkka  路  26Comments

jonmathews-zz picture jonmathews-zz  路  29Comments

vito-c picture vito-c  路  43Comments

ilyash picture ilyash  路  22Comments