On AIX (but this happens on HP-UX as well), I have GNU ls in my path
and it is also aliased as
But when i use xargs, it uses the standard Unix ls instead of the alias.
For example (
flocate is a function which finds the exact path of
the search subject):
flocate mirrorvg | xargs ls -lh ls: illegal option -- h usage: ls [-1ACFHLNRSabcdefgiklmnopqrstuxEUX] [File...] ls -lh /usr/sbin/mirrorvg -r-xr-x--- 1 root system 37K apr 3 2014 /usr/sbin/mirrorvg*
Why doesn't xargs use the