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.

Provide a syntax to call native binaries when its name is aliased

See original GitHub issue

Like, 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
iSazonovcommented, Oct 7, 2017

Bash workarounds:

\ls
"ls"
'ls'
/usr/bin/ls
command ls
unalias ls; ls
2reactions
BrucePaycommented, Sep 13, 2016

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”

Read more comments on GitHub >

github_iconTop 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 >

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