Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not a known internal: cp

Schweber opened this issue · comments

The dystroy website lists :cp {newpath} as an internal. However, if i add { invocation: "backup", shortcut: "tb", execution: ":cp {file}~", leave_broot: false } to verbs.hjson and launch br, it says Bad configuration: not a known internal: cp.

Is the documentation outdated or am i doing something wrong? I am using broot 1.30.2

The documentation is wrong, and I have no idea how I ended up pasting this line about cp in it. Thanks for noticing. I guess I have to check the whole table now.

You probably know it already, but for your backup verb, the correct execution, given that cp isn't an internal, would be execution: "cp {file} {file}~".

This internal table is full of errors... I have to regenerate it from the code

The documentation is wrong, and I have no idea how I ended up pasting this line about cp in it. Thanks for noticing. I guess I have to check the whole table now.

You probably know it already, but for your backup verb, the correct execution, given that cp isn't an internal, would be execution: "cp {file} {file}~".

I didn't know that (it makes sense if i think about it though :-), thank you for pointing it out!

I fixed the table of internals. There really was a lot of errors...

Thanks!