[opensuse] BASH - I give up : (
- From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 14 Nov 2008 22:54:16 -0600
Listmates,
Stuck on a stupid bash problem again. Why can't I set a variable within a set
of parenthesis?
#!/bin/bash
# This works
[[ $1 == "--verbose" || $1 == "-v" ]] && verbose='y'
[[ $1 == "--verbose" || $1 == "-v" ]] && ( echo "this"; echo "that" )
# This _doesn't_ work
[[ $1 == "--verbose" || $1 == "-v" ]] && ( verbose='y'; echo "that" )
No matter what I do, if I try to set a variable inside the ( ) expression, it
never gets set -- Why?
--
David C. Rankin, J.D.,P.E. |
Rankin Law Firm, PLLC | Countdown for openSuSE 11.1
510 Ochiltree Street | http://counter.opensuse.org/11.1/small
Nacogdoches, Texas 75961 |
Telephone: (936) 715-9333 | openSoftware und SystemEntwicklung
Facsimile: (936) 715-9339 | http://www.opensuse.org/
www.rankinlawfirm.com |
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- Re: [opensuse] BASH - I give up : (
- From: John Lange
- Re: [opensuse] BASH - I give up : (
- From: Brian K. White
- Re: [opensuse] BASH - I give up : (
- From: Randall R Schulz
- Re: [opensuse] BASH - I give up : (
- From: Jim Cunning
- Re: [opensuse] BASH - I give up : (
- Prev by Date: Re: [opensuse] Recent subversion via YaST ?
- Next by Date: Re: [opensuse] BASH - I give up : (
- Previous by thread: [opensuse] RouterBOARD 44G driver for opensuse11
- Next by thread: Re: [opensuse] BASH - I give up : (
- Index(es):
Relevant Pages
|