TabFS icon indicating copy to clipboard operation
TabFS copied to clipboard

touch evals/script.js to evaluate it again

Open iwconfig opened this issue 4 years ago • 0 comments

I would like to be able to run a script multiple times without having to replace the file with the same code or adding something to it every time. Using touch to instead update the filestamp would be very convenient. However, doesn't work:

$ echo 'console.log(`\u2665 hello ${document.querySelector(".author").textContent.trim()} \u2665`)' > tabs/last-focused/evals/test.js
$ touch tabs/last-focused/evals/test.js
touch: setting times of 'tabs/last-focused/evals/test.js': Function not implemented
$ stat tabs/by-id/1788/evals/test.js
  File: tabs/by-id/1788/evals/test.js
  Size: 93        	Blocks: 0          IO Block: 4096   regular file
Device: 51h/81d	Inode: 9905        Links: 1
Access: (0666/-rw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 1970-01-01 01:00:00.000000000 +0100
Modify: 1970-01-01 01:00:00.000000000 +0100
Change: 1970-01-01 01:00:00.000000000 +0100
 Birth: -

iwconfig avatar Dec 02 '21 01:12 iwconfig