TIP: Click on subject to list as thread! ANSI
echo: tuxpower
to: Deon George
from: Alan Ianson
date: 2019-08-04 08:09:50
subject: My bash script

>Yeah, the reason it would fail, is the shell will expand it. IE: If you have 2
> TIC's "a.tic", "b.tic", the command expands to:

> : if [ -f fido/inbound/a.tic fido/inbound/b.tic ]; then

> Which is a syntax error. There are probably many ways to do this, the way I
> would do it is:

OK, I'll need to change that.

> In my above example, you could have

> for i in fido/inbound/*.tic fido/inbound/*.TIC; do

> And then have another test for the uppercase *.TIC, that "continues".

Thanks for the suggestions, I'll give that a try.. :)

--- BBBS/Li6 v4.10 Toy-4
* Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
SEEN-BY: 57/0 153/250 154/10 203/0 220/70 221/0 1 6 360 229/426 240/5832 250/3
SEEN-BY: 267/800 280/464 5003 310/31 320/219 396/45 633/0 267 280 410 412 509
SEEN-BY: 640/1321 1384 712/848 770/0 1 100 340 772/0 1 500 2452/250
@PATH: 153/757 250 770/1 280/464 221/1 640/1384 633/280 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.