Project

General

Profile

Actions

Bug #2761

closed

/unload and file system

Added by O uims over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
06/18/2016
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

/unload has nothing to do with the file system, adiirc is reporting that the file does not exist on the file system (which is true) when I'm asking to unload, /unload should unload the script if it's loaded.

//Write test sometest | load -rs test | remove test | unload -rs test

should work

Actions #1

Updated by O uims over 8 years ago

Upon further investigation, this is related to /reload, the sample of code is this:

test

alias somealias {
if (condition) {
!.remove $qt($script)
var %u 1
}
.reload -rs $qt($script(pacman.mrc))
pacman
if (%u) .unload -rs $qt($script)
}

The value of $script points to Path/to/installer.mrc while $script(pacman.mrc) well, points to the pacman.mrc file
The /reload is causing adiirc to think the $script is no longer loaded ($script($script) is $null right after it, while it's non-$null before).

Actions #2

Updated by Per Amundsen over 8 years ago

  • Category set to Scripting
  • Status changed from New to Resolved
  • Assignee set to Per Amundsen
  • Target version set to 2.4
Actions #3

Updated by Per Amundsen over 8 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF