Skip to main content
10 events
when toggle format what by license comment
Nov 4, 2018 at 11:15 history edited ikegami CC BY-SA 4.0
added 7 characters in body
Nov 4, 2018 at 11:14 comment added ikegami Oops, I misread -r's documentation. I thought I did the opposite of what it does. Readded.
Nov 4, 2018 at 11:07 comment added Stéphane Chazelas (:A was added in 4.3.10 (2009), GNU readlink -z in 2012, I'm not aware of any other readlink implementation that supports -z). Note that with GNU xargs, you generally want the -r option unless you can guarantee the input won't be empty. Here, it's no big deal (unless the perl code contains a BEGIN/END statement), you'd just get a -i used with no filenames on the command line, reading from STDIN. warning if that happens.
Nov 4, 2018 at 10:50 comment added Stéphane Chazelas you need zsh 5.3 (2016) or above for $var:P. With older versions, you can always use $var:A instead. See the manual for the differences and zsh.org/mla/users/2016/msg00593.html for rationale for introducing :P (the real realpath() interface).
Nov 4, 2018 at 10:04 history edited ikegami CC BY-SA 4.0
deleted 576 characters in body
Nov 4, 2018 at 9:59 comment added ikegami @Stéphane Chazelas, $var:P doesn't work for me. (X='tmp' zsh -c 'perl -E"say for @ARGV" $X:P' outputs tmp:P)
Nov 4, 2018 at 9:24 history edited Stéphane Chazelas CC BY-SA 4.0
added 16 characters in body
Nov 4, 2018 at 9:19 history edited Stéphane Chazelas CC BY-SA 4.0
added 1131 characters in body
Nov 4, 2018 at 8:25 review First posts
Nov 4, 2018 at 9:30
Nov 4, 2018 at 8:24 history answered ikegami CC BY-SA 4.0