#!/usr/bin/env bash # Bug is that file cache highlight isn't updated when when # it is already cached so it continues to refer to a line in the source'd file # rather than file it was source'd from (here it is this file). global dirname := $(BASH_SOURCE%/*) # equivalent to dirname($0) source $(dirname)/library.sh echo 'script line 7' library-function # Should show the line below in highlight mode and not a from # library-function echo 'script line 11' # (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:dirname) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(Lit_Slash /) ("*")}) spids: [13 18] ) } spids: [12] ) ] spids: [12] ) (C {(source)} {(${ VSub_Name dirname) (/library.sh)}) (C {(echo)} {(SQ <"script line 7">)}) (C {(library-function)}) (C {(echo)} {(SQ <"script line 11">)}) ] )