[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: quanta [POSSIBLY UNSAFE]
From: Oswald Buddenhagen <ossi () kde ! org>
Date: 2002-12-08 18:02:45
[Download RAW message or body]
On Sun, Dec 08, 2002 at 07:40:01PM +0200, Andras Mantia wrote:
> On 2002. December 08., Sunday 19:01, Oswald Buddenhagen wrote:
> > > As shell script should be able to be accepted as Quanta plugins, yes I
> > > think I need the shell...
> >
> > no. set the executable bit on the script and it is treatet as any other
> > program. you need a shell only if you need to expand shell metacharacter
> > (variables, pipes/redirections) _at the command line_.
>
> I made a simple shell script:
> #!/bin/sh
> ls -l $1
>
> Saved in a file, and set it to executable. Now, if I run without shell, it
> does not run, but running inside a shell runs well. Of course, this has $1
> inside, but we need such things.
>
this must have another reason. the sript is executed by the shell in
either case (how else?).
btw, for the record: the script should read 'ls -l "$1"' - otherwise you
have a quoting problem in the script (although no security hole with most
shells).
greetings
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic