question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In a maidfile, it would be nice to have some variables set so that they can be referenced in the other scripts. Therefore, if the following was at the top:

## global

```bash
destdir='~/.dest'
```

```js
 var destdir='~/.dest'
```

Then the variable $destdir can be used in all the other bash scripts. Have the same thing for js scripts also.

The four spaces won. Using 4 tick didn’t help.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
egoistcommented, Jun 1, 2018

or use 4 backticks for the markdown block if you want syntax highlighting:

carbon 45

1reaction
millettecommented, Sep 15, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Python - Global Variables - W3Schools
Variables that are created outside of a function (as in all of the examples above) are known as global variables. Global variables can...
Read more >
Global variable - Wikipedia
In computer programming, a global variable is a variable with global scope, meaning that it is visible (hence accessible) throughout the program, ...
Read more >
What is a Global Variable? - Definition from Techopedia
Global variables, as the name implies, are variables that are accessible globally, or everywhere throughout the program. Once declared, they remain in memory ......
Read more >
Difference between Local and Global Variable - Guru99
A Global Variable in the program is a variable defined outside the subroutine or function. It has a global scope means it holds...
Read more >
Global Variables in C - GeeksforGeeks
The global variables get defined outside any function- usually at the very beginning/top of a program. After this, the variables hold their ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found