also sprach martin f krafft <madd...@madduck.net> [2014-09-26 13:00 +0200]:
>   myls() {
>     local usecolor; usecolor=never
>     [ -t 1 ] && usecolor=always
>     ls --color=$usecolor "$@" |
>       while read line; do
>         case "$line" in
>           (*-\> *.git/annex/objects/*)
>             echo "@${${line#l}% ->*}";;
>           (*)
>             echo "$line";;
>         esac
>       done
>   }

After some experimentation, I have to confess that this won't work.
The above is fine, but you get the mode and filesize of the link,
not the reference. Trying to dereference in the loop works, but
messes up the output as /bin/ls aligns columns…

Does anyone have any experience with LD_PRELOAD? Theoretically one
should be able to inject a readdir() that dereferences git-annex
links, right?

-- 
@martinkrafft | http://madduck.net/ | http://two.sentenc.es/
 
"marriage is the only adventure open to the cowardly."
                                                           -- voltaire
 
spamtraps: madduck.bo...@madduck.net

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

_______________________________________________
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home

Reply via email to