mrkrinkle has asked for the wisdom of the Perl Monks concerning the following question:
Ok so- I have a .pl file that prints to cli:
print "wpeofkwpoef";If I run the .pl directly, it prints just fine. ./damnit.pl
I have an ln -s link to it in /usr/local/bin/damn.
If I run it from cli there /usr/local/bin/damn, it runs (the code later on even changes files; it works), but it never prints.
This same code usta work in perl like 15 years ago lol.
important to note to test, I made .sh script that just does:
#!/bin/bash
echo 'wefwe';
And then did an ln -s to it and it prints the wefew. So .sh can do that from the link but perl demands it be done from the actual file not the link.
Ubuntu 18.04 $ perl -v This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 67 registered patches, see perl -V for more detail)
Thanks monks, sorry for the lack of < code> tags but the code is so minimal. m
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: printing to stdout from a soft ln -s doesn't show up
by Fletch (Bishop) on Sep 16, 2020 at 19:15 UTC | |
|
Re: printing to stdout from a soft ln -s doesn't show up
by haukex (Archbishop) on Sep 16, 2020 at 18:23 UTC | |
|
Re: printing to stdout from a soft ln -s doesn't show up
by marto (Cardinal) on Sep 16, 2020 at 18:32 UTC | |
|
Re: printing to stdout from a soft ln -s doesn't show up
by mrkrinkle (Novice) on Sep 16, 2020 at 19:31 UTC | |
|
Re: printing to stdout from a soft ln -s doesn't show up
by perlfan (Parson) on Sep 17, 2020 at 00:28 UTC | |
by afoken (Chancellor) on Sep 17, 2020 at 06:54 UTC | |
by perlfan (Parson) on Sep 18, 2020 at 14:16 UTC |