Provide a syntax to call native binaries when its name is aliased
See original GitHub issueLike, if I have both gsn
(as an alias) and gsn
(as a script on Linux with Shebang), the latter one is unaccessable (unless you provide its full path).
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:12 (2 by maintainers)
Top Results From Across the Web
How do I permanently remove a default Powershell alias?
remove-item alias:curl. Save, close notepad and reload the profile with the command below or close and open Powershell to apply the profile:
Read more >Create a command for a Linux executable file
When it is a single command, I typically symlink the binary to location already in my PATH. ln -s /path/to/node-webkit /usr/local/bin.
Read more >Using namespaces: Aliasing/Importing - Manual
PHP can alias(/import) constants, functions, classes, interfaces, traits, enums and namespaces. Aliasing is accomplished with the use operator. Here is an ...
Read more >Aliasing (computing)
In computing, aliasing describes a situation in which a data location in memory can be accessed through different symbolic names in the program....
Read more >Java Native Interface (JNI) - Java Programming Tutorial
You can run the Java JNI program HelloJNI . However, you need to provide the library path to the " hello.dll ". This...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Bash workarounds:
The ability to use “:gsn” was intentional. Per POSIX, any valid file name character can be used in a command name (where the legal filename characters varying between file systems). With respect to
@gsn
, you can always use quoting to disambiguate e,g,Get-ChildItem "@gsn"
.We do have an existing notation --% which tells parser to stop quote and expansion processing - we might be able to tweak that though it would be technically breaking but probably wouldn’t really break anything, One other possibility is to simply keep using the .exe suffix syntax and give it the semantic that it looks for a native command without the suffix on *NIX systems e.g. ‘gsn.exe’ is mapped to “gsn”