| PLEX86 | ||
|
Can $1 be set in a scriptOn Thu, 30 Mar 2006 19:12:54 GMT, larryalk staggered into the Black Sun and said: This question has absolutely nothing to do with X. Followup set to col.misc. ATI 3d graphics 743 REPORT FROM "glxinfo". The Mesa webpage says to check this name of display: :0.0 display: :0 screen: 0 direct rendering: No server glx vendor string: SGI server glx version string: 1.2 server... That's not how buttignment works in bash in the general case. If you try "$FOO='bar' ", you get an error. Are you using a different shell? In bash, you need to do "FOO='bar' " to buttign the value 'bar' to variable FOO. And positional parameters are different; you have to use something like the following: #!-bin-bash echo "pos params=$1 $2" set 'crud' 'barf' echo "after set, pos params=$1 $2" # end positional.sh clairissa:~-bin$ .-positional.sh stuff junk pos params=stuff junk after set, pos params=crud barf ...just calling "1='crud' " won't work because variables have to start with a letter. grep for 'shell builtin commands' in the bash man page for directions on what else set can do. Huh? Putting a set command in a script changes that script. If you have something critical in a script, before you change it, make a backup, then understand whatever it is that script does before changing it. And don't be surprised when your first attempt at doing something new does something totally stupid. HTH, ATI 3d graphics 742 Sorry, but I can't help with YaST, "bash make.sh", or "makeinstall.sh". The instructions from your distribution and the instructions that came... -- Matt GThere is no Darkness in Eternity-But only Light too dim for us to see Brainbench MVP for Linux Admin mail: TRAP + SPAN don't belong ----------------------------- penguins, is Tux." --MegaHAL
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||