zopencommunity / bashport

The Bourne Again shell
Apache License 2.0
8 stars 3 forks source link

Workaround for external link #53

Closed IgorTodorovskiIBM closed 1 year ago

IgorTodorovskiIBM commented 1 year ago

External links currently cannot be executed.

Leverages the 93586002 errno2 code that states that the file is an external link and uses lstat to get the properties.

One example is ping:

[ITODORO@ZOSCAN2B ~/projects/bashport_new/bash-5.2]$ ping
bash: ping: command not found

With the change:

[ITODORO@ZOSCAN2B ~/projects/bashport_new/bash-5.2]$ ping google.com
CS V2R4: Pinging host google.com (142.251.163.113)
Ping #1 response took 0.013 seconds.