# test\(nonce\): drop the sh \-n check that can never fail · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/59d1cc59d6c8e7a05d5918db744219f2427b767c)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 59d1cc59d6c8e7a05d5918db744219f2427b767c

Requested commit: 59d1cc59d6c8e7a05d5918db744219f2427b767c

Commit: 59d1cc59d6c8e7a05d5918db744219f2427b767c

Tree: d6cba1e71e56ab5d6dde7b8609db409240ba6210

Author: Simone

Committer: Simone

## Message

```
test(nonce): drop the sh -n check that can never fail

The heredoc parsed a hardcoded sample command that reads no repository
state and drifted from the real wrapper long ago (the generated command
uses --app-name=CodexBar --icon=view-statistics; the sample did not). It
always exited 0, so it guarded nothing while implying coverage.

The actual /bin/sh-validity guard is the require_in_surface pin on the
":; " prefix of connectNotificationCommand(commandWithRunNonce(...)):
a shell assignment cannot prefix the reserved word "if", so any edit
that breaks the wrapper fails that assertion. Document that role in a
comment so a vacuous syntax check does not grow back.

```

## Parents

- [70a595bce6df847e86603ea11cd37536c0257c4f](https://git.cafe/lucenx/codexbar-plasma/commit/70a595bce6df847e86603ea11cd37536c0257c4f?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/59d1cc59d6c8e7a05d5918db744219f2427b767c?format=markdown)
