From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,98bd1e1a8a952094 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-08-21 02:25:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!vrn.edu.au!news.swin.edu.au!not-for-mail From: TimC Newsgroups: comp.unix.tru64 Subject: Re: Problem with su Date: 21 Aug 2002 09:22:03 GMT Organization: some weird and wacky place in the superconfusing place, Swinny. Message-ID: References: <3D632963.F56388F7@peoplepc.com> Reply-To: tconnors@no.astro.spam.swin.accepted.edu.here.au NNTP-Posting-Host: hexane.ssi.swin.edu.au X-Trace: c3p0.cc.swin.edu.au 1029921723 22930 136.186.12.14 (21 Aug 2002 09:22:03 GMT) X-Complaints-To: abuse@swin.edu.au NNTP-Posting-Date: 21 Aug 2002 09:22:03 GMT X-face: <]xw0=J?XnVX]$`xvrezF_m-Yr-]Y7_W"*[|T@YI?!rd9v|`hogiks[a}7VCCfTFB13)cCW,FOyeVam4wI1g{g+K*pm'T>G65psszn1s!_rByvdo^is!&(3 User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.unix.tru64:8464 Jack Patteeuw (aka Bruce) was almost, but not quite, entirely unlike tea: > Tru64 V4.0F > > anyone seen this problem ? > > [root]/> su username -c "ls -al" > -al: bad option(s) > > anything after the first word in the "command string" is ignored or causes an > error You've probably set up an alias in your .cshrc or .bashrc files. One alias I came across for su was something like alias su=/sbin/su $* instaed of alias su=/sbin/su "$@" Where the latter ensures that anything in quotes remains as one argument, and the former breaks all quoted objects up into their bits separated by spaces. -- TimC -- http://astronomy.swin.edu.au/staff/tconnors/ Conclusion to my thesis -- "It is trivial to show that it is clearly obvious that this is not woofly"