Skip to content

Instantly share code, notes, and snippets.

@subnetmarco
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save subnetmarco/43296cb8bf74497c9d69 to your computer and use it in GitHub Desktop.

Select an option

Save subnetmarco/43296cb8bf74497c9d69 to your computer and use it in GitHub Desktop.
# perl v5.18.2 on MacOSX v10.10.2
echo "hello" > /tmp/file
alias realpath="perl -MCwd -e 'print Cwd::realpath ($ARGV[0]), qq<\n>'"
cd /tmp && realpath file
# Outputs: /private/tmp/ARRAY(0x7fb6518042e8)
@olibre
Copy link

olibre commented Feb 23, 2015

Really weird!!!
Thanks for reporting the issue.
But I do not have any MacOSX around me...
And the issue is not reproducible on openSUSE using perl 5.20.
Hope you can play with the Perl command line and find/understand the fix...
Cheers ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment