Hi,

We are facing issue when using sort, could you please help us to understand 
why? Thanks a lot.

We run below command on two servers, but got different outputs. I attached 
source file (property_contexts) and two outputs 
files(sort_property_context_local.txt & sort_property_context_slave.txt).
$sort -u property_contexts -o sort_property_context.txt

As checked, we use same version of sort on that two servers:
local:~ $sort --version
sort (GNU coreutils) 8.21
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and Paul Eggert.
--------------------------------------------------------
slave:~ $sort --version
sort (GNU coreutils) 8.21
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and Paul Eggert.


Best Regards
#
# ASAN install trigger
# Boolean property set by system server upon boot indicating
# NFC properties
# Shared between system server and wificond
# These properties are not normally set by processes other than init.
# They are only distinguished here for setting by qemu-props on the
# ctl properties
# data partition encryption properties
# default property context
# emulator/goldfish.
# hwservicemanager properties
# if device owner is provisioned.
# property service keys
# ro.build.fingerprint is either set in /system/build.prop, or is
# selinux non-persistent properties
# set at runtime by system_server.
##########################
*                       u:object_r:default_prop:s0
asan.restore_reboot  u:object_r:asan_reboot_prop:s0
bluetooth.              u:object_r:bluetooth_prop:s0
config.                 u:object_r:config_prop:s0
ctl.                    u:object_r:ctl_default_prop:s0
ctl.bootanim            u:object_r:ctl_bootanim_prop:s0
ctl.bugreport           u:object_r:ctl_bugreport_prop:s0
ctl.console             u:object_r:ctl_console_prop:s0
ctl.dumpstate           u:object_r:ctl_dumpstate_prop:s0
ctl.fuse_               u:object_r:ctl_fuse_prop:s0
ctl.mdnsd               u:object_r:ctl_mdnsd_prop:s0
ctl.ril-daemon          u:object_r:ctl_rildaemon_prop:s0
dalvik.                 u:object_r:dalvik_prop:s0
debug.                  u:object_r:debug_prop:s0
debug.db.               u:object_r:debuggerd_prop:s0
dev.                    u:object_r:system_prop:s0
dhcp.                   u:object_r:dhcp_prop:s0
dhcp.bt-pan.result      u:object_r:pan_result_prop:s0
dumpstate.              u:object_r:dumpstate_prop:s0
dumpstate.options       u:object_r:dumpstate_options_prop:s0
gsm.                    u:object_r:radio_prop:s0
hw.                     u:object_r:system_prop:s0
hwservicemanager.       u:object_r:hwservicemanager_prop:s0
log.                    u:object_r:log_prop:s0
log.tag                 u:object_r:log_tag_prop:s0
log.tag.WifiHAL         u:object_r:wifi_log_prop:s0
logd.logpersistd        u:object_r:logpersistd_logging_prop:s0
net.                    u:object_r:system_prop:s0
net.cdma                u:object_r:net_radio_prop:s0
net.dns                 u:object_r:net_dns_prop:s0
net.gprs                u:object_r:net_radio_prop:s0
net.lte                 u:object_r:net_radio_prop:s0
net.ppp                 u:object_r:net_radio_prop:s0
net.qmi                 u:object_r:net_radio_prop:s0
net.rmnet               u:object_r:net_radio_prop:s0
nfc.                    u:object_r:nfc_prop:s0
persist.audio.          u:object_r:audio_prop:s0
persist.bluetooth.      u:object_r:bluetooth_prop:s0
persist.debug.          u:object_r:persist_debug_prop:s0
persist.log.tag         u:object_r:log_tag_prop:s0
persist.logd.           u:object_r:logd_prop:s0
persist.logd.logpersistd        u:object_r:logpersistd_logging_prop:s0
persist.logd.security   u:object_r:device_logging_prop:s0
persist.mmc.            u:object_r:mmc_prop:s0
persist.radio           u:object_r:radio_prop:s0
persist.security.       u:object_r:system_prop:s0
persist.service.        u:object_r:system_prop:s0
persist.service.bdroid. u:object_r:bluetooth_prop:s0
persist.sys.            u:object_r:system_prop:s0
persist.sys.audit_safemode      u:object_r:safemode_prop:s0
persist.sys.safemode    u:object_r:safemode_prop:s0
persist.vendor.overlay.  u:object_r:overlay_prop:s0
ril.                    u:object_r:radio_prop:s0
ro.boot.btmacaddr       u:object_r:bluetooth_prop:s0
ro.boot.serialno        u:object_r:serialno_prop:s0
ro.boot.vendor.overlay.  u:object_r:overlay_prop:s0
ro.boottime.             u:object_r:boottime_prop:s0
ro.bt.                  u:object_r:bluetooth_prop:s0
ro.build.fingerprint    u:object_r:fingerprint_prop:s0
ro.config.              u:object_r:config_prop:s0
ro.crypto.              u:object_r:vold_prop:s0
ro.dalvik.              u:object_r:dalvik_prop:s0
ro.device_owner         u:object_r:device_logging_prop:s0
ro.hw.                  u:object_r:system_prop:s0
ro.persistent_properties.ready  u:object_r:persistent_properties_ready_prop:s0
ro.ril.                 u:object_r:radio_prop:s0
ro.runtime.             u:object_r:system_prop:s0
ro.runtime.firstboot    u:object_r:firstboot_prop:s0
ro.serialno             u:object_r:serialno_prop:s0
ro.sys.safemode         u:object_r:safemode_prop:s0
security.perf_harden    u:object_r:shell_prop:s0
selinux.restorecon_recursive   u:object_r:restorecon_prop:s0
service.                u:object_r:system_prop:s0
service.adb.root        u:object_r:shell_prop:s0
service.adb.tcp.port    u:object_r:shell_prop:s0
sys.                    u:object_r:system_prop:s0
sys.cppreopt            u:object_r:cppreopt_prop:s0
sys.powerctl            u:object_r:powerctl_prop:s0
sys.usb.config          u:object_r:system_radio_prop:s0
sys.usb.ffs.            u:object_r:ffs_prop:s0
vold.                   u:object_r:vold_prop:s0
wlan.                   u:object_r:wifi_prop:s0
#
##########################
# ASAN install trigger
asan.restore_reboot  u:object_r:asan_reboot_prop:s0
bluetooth.              u:object_r:bluetooth_prop:s0
# Boolean property set by system server upon boot indicating
config.                 u:object_r:config_prop:s0
ctl.bootanim            u:object_r:ctl_bootanim_prop:s0
ctl.bugreport           u:object_r:ctl_bugreport_prop:s0
ctl.console             u:object_r:ctl_console_prop:s0
ctl.dumpstate           u:object_r:ctl_dumpstate_prop:s0
ctl.fuse_               u:object_r:ctl_fuse_prop:s0
ctl.mdnsd               u:object_r:ctl_mdnsd_prop:s0
# ctl properties
ctl.ril-daemon          u:object_r:ctl_rildaemon_prop:s0
ctl.                    u:object_r:ctl_default_prop:s0
dalvik.                 u:object_r:dalvik_prop:s0
# data partition encryption properties
debug.db.               u:object_r:debuggerd_prop:s0
debug.                  u:object_r:debug_prop:s0
# default property context
dev.                    u:object_r:system_prop:s0
dhcp.bt-pan.result      u:object_r:pan_result_prop:s0
dhcp.                   u:object_r:dhcp_prop:s0
dumpstate.options       u:object_r:dumpstate_options_prop:s0
dumpstate.              u:object_r:dumpstate_prop:s0
# emulator/goldfish.
gsm.                    u:object_r:radio_prop:s0
# hwservicemanager properties
hwservicemanager.       u:object_r:hwservicemanager_prop:s0
hw.                     u:object_r:system_prop:s0
# if device owner is provisioned.
logd.logpersistd        u:object_r:logpersistd_logging_prop:s0
log.tag                 u:object_r:log_tag_prop:s0
log.tag.WifiHAL         u:object_r:wifi_log_prop:s0
log.                    u:object_r:log_prop:s0
net.cdma                u:object_r:net_radio_prop:s0
net.dns                 u:object_r:net_dns_prop:s0
net.gprs                u:object_r:net_radio_prop:s0
net.lte                 u:object_r:net_radio_prop:s0
net.ppp                 u:object_r:net_radio_prop:s0
net.qmi                 u:object_r:net_radio_prop:s0
net.rmnet               u:object_r:net_radio_prop:s0
net.                    u:object_r:system_prop:s0
# NFC properties
nfc.                    u:object_r:nfc_prop:s0
persist.audio.          u:object_r:audio_prop:s0
persist.bluetooth.      u:object_r:bluetooth_prop:s0
persist.debug.          u:object_r:persist_debug_prop:s0
persist.logd.logpersistd        u:object_r:logpersistd_logging_prop:s0
persist.logd.security   u:object_r:device_logging_prop:s0
persist.logd.           u:object_r:logd_prop:s0
persist.log.tag         u:object_r:log_tag_prop:s0
persist.mmc.            u:object_r:mmc_prop:s0
persist.radio           u:object_r:radio_prop:s0
persist.security.       u:object_r:system_prop:s0
persist.service.bdroid. u:object_r:bluetooth_prop:s0
persist.service.        u:object_r:system_prop:s0
persist.sys.audit_safemode      u:object_r:safemode_prop:s0
persist.sys.safemode    u:object_r:safemode_prop:s0
persist.sys.            u:object_r:system_prop:s0
persist.vendor.overlay.  u:object_r:overlay_prop:s0
# property service keys
ril.                    u:object_r:radio_prop:s0
ro.boot.btmacaddr       u:object_r:bluetooth_prop:s0
ro.boot.serialno        u:object_r:serialno_prop:s0
ro.boottime.             u:object_r:boottime_prop:s0
ro.boot.vendor.overlay.  u:object_r:overlay_prop:s0
ro.bt.                  u:object_r:bluetooth_prop:s0
# ro.build.fingerprint is either set in /system/build.prop, or is
ro.build.fingerprint    u:object_r:fingerprint_prop:s0
ro.config.              u:object_r:config_prop:s0
ro.crypto.              u:object_r:vold_prop:s0
ro.dalvik.              u:object_r:dalvik_prop:s0
ro.device_owner         u:object_r:device_logging_prop:s0
ro.hw.                  u:object_r:system_prop:s0
ro.persistent_properties.ready  u:object_r:persistent_properties_ready_prop:s0
ro.ril.                 u:object_r:radio_prop:s0
ro.runtime.firstboot    u:object_r:firstboot_prop:s0
ro.runtime.             u:object_r:system_prop:s0
ro.serialno             u:object_r:serialno_prop:s0
ro.sys.safemode         u:object_r:safemode_prop:s0
security.perf_harden    u:object_r:shell_prop:s0
# selinux non-persistent properties
selinux.restorecon_recursive   u:object_r:restorecon_prop:s0
service.adb.root        u:object_r:shell_prop:s0
service.adb.tcp.port    u:object_r:shell_prop:s0
service.                u:object_r:system_prop:s0
# set at runtime by system_server.
# Shared between system server and wificond
sys.cppreopt            u:object_r:cppreopt_prop:s0
sys.powerctl            u:object_r:powerctl_prop:s0
sys.                    u:object_r:system_prop:s0
sys.usb.config          u:object_r:system_radio_prop:s0
sys.usb.ffs.            u:object_r:ffs_prop:s0
# These properties are not normally set by processes other than init.
# They are only distinguished here for setting by qemu-props on the
*                       u:object_r:default_prop:s0
vold.                   u:object_r:vold_prop:s0
wlan.                   u:object_r:wifi_prop:s0

Attachment: property_contexts
Description: property_contexts

Reply via email to