You are not logged in.

#1 2005-04-28 18:38:00

fdrebin
Member
Registered: 2005-04-25
Posts: 152

what's trap

when trying to install ut i get

Uncompressing Unreal Tournament version 436 Linux installtrap: usage: trap [-lp] [arg signal_spec ...]

and the installation exits - what this trap here?

Offline

#2 2005-04-28 18:45:24

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: what's trap

it's a bash builtin:

  trap [-lp] [arg] [sigspec ...]
    The command arg is to be read and executed when the shell receives signal(s) sigspec . If arg is absent or - , all specified signals are reset to their original values (the values they had upon entrance to the shell). If arg is the null string the signal specified by each sigspec is ignored by the shell and by the commands it invokes. If arg is not present and -p has been supplied, then the trap commands associated with each sigspec are displayed. If no arguments are supplied or if only -p is given, trap prints the list of commands associated with each signal number. Each sigspec is either a signal name defined in <signal.h>, or a signal number. If a sigspec is EXIT (0) the command arg is executed on exit from the shell. If a sigspec is DEBUG , the command arg is executed after every simple command (see SHELL GRAMMAR above). If a sigspec is ERR , the command arg is executed whenever a simple command has a non-zero exit status. The ERR trap is not executed if the failed command is part of an until or while loop, part of an if statement, part of a && or || list, or if the command's return value is being inverted via ! . The -l option causes the shell to print a list of signal names and their corresponding numbers. Signals ignored upon entry to the shell cannot be trapped or reset. Trapped signals are reset to their original values in a child process when it is created. The return status is false if any sigspec is invalid; otherwise trap returns true.

it's used to execute certain functions when signals are received from the OS...

it appears the installer has a bug in it... are you using bash?

Offline

#3 2005-04-28 18:48:18

fdrebin
Member
Registered: 2005-04-25
Posts: 152

Re: what's trap

sorry but what is "bash"?
the installer-requirements says xfree86 is required and i got xorg. could this be a problem?

Offline

#4 2005-04-28 18:50:39

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: what's trap

bash is your shell - it's the default... and if you don't know what it is, I'm assuming you didn't switch it out for zsh/csh/ksh or something else.

and xfree86 and xorg are compatible... maybe try checking for a new installer, or checking the UT forums?

Offline

#5 2005-12-23 00:01:29

enderst
Member
Registered: 2004-06-28
Posts: 69

Re: what's trap

i know this is old old old but i just had this same problem. use:

bash ut-install-436.run

works like a charm  wink

Offline

Board footer

Powered by FluxBB