Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Global macros

    I was looking at some guide and saw them using the commands cd, global datadir, global dirresults. I understand that cd defines the working directory (place where we want the results/output to be stored upon execution of commands) and global datadir is just a global macro that we can use to store a file path. However, I still cannot differentiate difference between cd and global dirresults. Can anyone explain? Thanks!

  • #2
    The commands
    Code:
    global datadir
    global dirresults
    delete any prior definitions of the global macros datadir and dirresults.
    Code:
    . global datadir whatever
    
    . display "$datadir"
    whatever
    
    . global datadir
    
    . display "$datadir"
    
    
    .
    In particular, cd and global dirresults seem unlikely to have anything to do with each other, unless the guide you saw included some sort of command that created the global macro dirresults.

    Comment

    Working...
    X