Bug fixing: shared is only considered when user sets the flag in the com...

...mand line