In the rules file a script is executed by passing the arguments "LABEL" and "DEVNAME" for mounting
ACTION=="add", RUN+="/appmount/scripts/usb_mount.sh %E{ID_FS_LABEL} %E{DEVNAME}"
In the usb_mount.sh file printing the arguments value as
echo "LABEL: $1 DEVNAME: $2" # this does not work reliably
Some of the devices have empty LABEL field and hence the DEVNAME is printed as the label. In the bash script we can pass the args in double quotes and it will work even if the args are null.
What is the equivalent of the same for passing args to udev rules?
The workaround to this problem might be to switch the order of the arguments. Is there any reliable way?