Comments (4)
So, if the state of $PPID contains an s
, the script is being run directly.
If the state of $PPID doesn't contain an s
, the script is being run by another script.
from nodebuilder.
Not sure if it's value-added for nodebuilder
to identitfy when the script is run asynchronously (with the &
at the end). But if it were, checking the state of $$ for a +
would work.
Probably just looking for the s
in $PPID to determine if the script was run from another script (whether synchronously or asynchronously) is sufficient.
from nodebuilder.
Not convinced that this is worth implementing. What UX would it improve?
from nodebuilder.
Closing until I have a concrete use case.
from nodebuilder.
Related Issues (20)
- [BUG] - Missing zeromq-devel fedora dependency
- [BUG] - Remove cache-path from CI for Ubuntu 24
- [FEAT] - separate the ID and ID_LIKE variables for linux distros
- [FEAT] - Pull the headers sync percent from logs
- [FEAT] - add “download only” option
- [BUG] - gio error on Ubuntu Server 24
- [FEAT] - Add docs for manual Tor config
- [FEAT] - Bump Bitcoin Core to v27.1
- [BUG] - Bad UI on Ubuntu when installing compile dependencies
- [BUG] - Bad UI on Ubuntu when torsocks is installed
- [DOCS] Add doc for running Core Lightning
- [FEAT] - Ignore spelling in code and code blocks
- [BUG] - CI is failing on macOS 13 compile job on `brew install`
- [FEAT] - Make the low-memory adjustments less agressive
- [FEAT] - reduce repeated code in test_bitcoin
- [BUG] - NEW_RELEASE_VERSION: unbound variable in process_release_tag
- [FEAT] - make process_release_tags script executable
- [FEAT] - parameter not set error when catching unhandled errors
- [FEAT] - add license badge
- Add mention of Intel RST in Lightning doc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodebuilder.