Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

schedule drops quotes in commands #4

Open
TimDaub opened this issue Jun 18, 2020 · 1 comment
Open

schedule drops quotes in commands #4

TimDaub opened this issue Jun 18, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@TimDaub
Copy link
Owner

TimDaub commented Jun 18, 2020

> const { schedule } = require("at-bindings");
undefined
> schedule(`"bla"`, "now + 5 minutes")
{
  id: 265,
  date: { plain: 'Thu Jun 18 14:05:00 2020', obj: 2020-06-18T12:05:00.000Z }
}
>
$ at -c 265
bla

(quotes are gone)

@TimDaub TimDaub added the bug Something isn't working label Jun 18, 2020
@TimDaub
Copy link
Owner Author

TimDaub commented Mar 29, 2021

There's ways of addressing this problem by using special syntax as shown here: https://stackoverflow.com/a/16605140/1263876

However, this wouldn't address the problem for e.g. single quotes:

echo $''bla''
bla
echo $'"bla"'
"bla"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant