Yes, maybe you're right. I've tried sneaking past

    if read line  (a backslash newline would make it take more lines)

and

    set -- $line  (tried semiclons, redirections and backticks)

and

     if match=`grep "^$1$" $HOSTS` ; then
                      ssh $match

    ( ......... would match a "buildhost" )

and

    echo "Unknown command or host: $line."   ( tried \characters )

But didn't manage to break it :-) Yet!!

Regards
Alex
  

2005/7/27, chaton <[EMAIL PROTECTED]>:
> On Wed, 27 Jul 2005 15:46:00 +0200
> Alexander Farber <[EMAIL PROTECTED]> wrote:
> 
> > Or if a user presses ctrl-C before the trap command is executed?
> >
> > 2005/7/27, Alexander Farber <[EMAIL PROTECTED]>:
> > > :-) What about ctrl-Z, does that "secure gateway menu" script ignore that 
> > > too?
> > >
> > > 2005/7/27, Abel Talaversn Estevez <[EMAIL PROTECTED]>:
> > > > http://mongers.org/gw_menu
> >
> 
> Mmh ...
> Instead of being a smartmouth, you should think a little about what would
> really happen and not make assumptions based on nothing.
> 
> let's make the assumption that trap was not even called. If a user presses
> ctrl-c the script will exit, closing the user's session. What did you
> expect it to do ? Spawn a shell from nothing ?
> 
> -- chaton@

Reply via email to