We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe329da commit b1372bdCopy full SHA for b1372bd
bashquote
@@ -25,7 +25,10 @@ abstract class Quotes {
25
* Opens the quote cache.
26
*/
27
function __construct() {
28
- $this->quotefile = getenv('HOME')."/.bashqdb";
+ if (file_exists(getenv('HOME')."/.bashqdb")) // Clean up old style cache
29
+ unlink(getenv('HOME')."/.bashqdb");
30
+
31
+ $this->quotefile = sys_get_temp_dir() . PATH_SEPARATOR . "bashquote_cache";
32
$this->quotefp = fopen($this->quotefile,"c+");
33
// Only one instance accessing the cache at a time
34
if (!flock($this->quotefp, LOCK_EX))
0 commit comments