> Il giorno 17 nov 2016, alle ore 16:25, Nahum Shalman <[email protected]> ha > scritto: > > In each of those three environments you should run "alias ll" and you will > probably see that those are different in each environment. > On the SmartOS GZ, that alias "is coming from root's ".bashrc" file > In the other two environments it is coming from something in those. > It could be reasonable to request that the SmartOS GZ alias be made to match > one of those other two (or both if they are the same). > > On my SmartOS box I see: > # grep alias /root/.bashrc > alias ll='ls -lF' > alias ls='ls --color=auto’
Ah! That’s funny. I was ignoring `ll` because this reported behavior came from someone who’s using readlink, which returns the same thing on both platform. Time to dig further. Thanks a lot, Nahum. > > -Nahum > > On Thu, Nov 17, 2016 at 10:18 AM, Giorgio Valoti <[email protected]> wrote: > Hi all, > I’ve noticed this anomalous behavior with the ln command on LX zones. I don’t > know which of the two behavior is compliant. > > > From a test GZ: > > > ssh coal > > Warning: Permanently added '10.99.99.7' (ECDSA) to the list of known hosts. > > - SmartOS (build: 20161113T161122Z) > > [root@headnode (dev) ~]# cd /tmp > > [root@headnode (dev) /tmp]# mkdir test && ln -s test dest > > [root@headnode (dev) /tmp]# ll > > total 16 > > lrwxrwxrwx 1 root root 4 nov 17 13:29 dest -> test/ > > -rw-r--r-- 1 root root 0 nov 17 07:17 iconf_entries.2811 > > drwxr-xr-x 2 root root 117 nov 17 13:29 test/ > > > Via zlogin (same with, say, docker exec): > > [root@headnode (dev) /tmp]# zlogin c6a989d2-717d-43d6-bf66-ac8a9b8bb7b6 > > [Connected to zone 'c6a989d2-717d-43d6-bf66-ac8a9b8bb7b6' pts/4] > > Last login: Wed Nov 16 11:14:21 UTC 2016 from localhost on pts/5 > > root@c6a989d2717d:~# cd /tmp > > root@c6a989d2717d:/tmp# mkdir test && ln -s test dest > > root@c6a989d2717d:/tmp# ll > > total 43991 > > drwxrwxrwt 8 root root 28 Nov 17 13:30 ./ > > drwxr-xr-x 26 root uucp 30 Nov 16 15:17 ../ > > lrwxrwxrwx 1 root root 4 Nov 17 13:30 dest -> test/ > > drwxr-xr-x 2 root root 2 Nov 17 13:30 test/ > > > > > > Here’s the same version of Ubuntu (running on VirtualBox) > > root@dev/tmp > mkdir test && ln -s test dest > > root@dev/tmp > ll > > total 52K > > drwxr-xr-x 25 root root 4.0K Nov 16 11:02 .. > > drwxr-xr-x 2 root root 4.0K Nov 17 14:38 test > > lrwxrwxrwx 1 root root 4 Nov 17 14:38 dest -> test > > drwxrwxrwt 8 root root 12K Nov 17 14:38 . > > > -- > Giorgio Valoti > > smartos-discuss | Archives | Modify Your Subscription ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
