On Fri, Apr 18, 2014 at 12:17:06AM +0200, Bernhard Voelker wrote: > On 04/17/2014 10:34 AM, Nicolas wrote: > > Hi, > > I'm struggling with nsenter to call commands with options because they > > are caught by nsenter and complain this is an invalid option. > > > > How can I pass any arbitrary argument ? > > > > Thanks for reading, > > Nicolas > > > > ``` > > $ nsenter --target $PID --mount --uts --ipc --net --pid ls -a > > nsenter: invalid option -- 'a' > > Use '--' to tell nsenter to stop option parsing: > $ nsenter --target $PID --mount --uts --ipc --net --pid -- ls -a > > Although I think this can be considered a bug; nsenter should > do this automatically when seeing the first non-option. Yep, fixed (also in unshare). Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html