CompuServe Thread

#Line Parse With "*"

5 messages in this thread
#114888From: Lou BertatoJul 29, 1990 12:32 PM
I noticed something in the line parsing from the CLI. If I have a file called df0:file1, and I wanted to rename it "df0:12*34", rename df0:file1 as "df0:12*34" The line parsing would take out the asterisk in between the quotes. In other words, it will rename the file df0:1234. All commands that line parse with the asterisk in between the quotes will have this problem. This happens with normal AmigaDOS and ARP. I am currently programming a utility that needs to keep the asterisk in the argument. Is there any simple fix for this?? Luciano….73246,1744
#114901From: Steve AhlstromJul 29, 1990 1:44 PM
Luciano, Without ARP, I have no such problems … 2> dir file1 2> rename file1 12*34 2> dir 12*34 2> -sja
#114926From: Lou BertatoJul 29, 1990 7:54 PM
Steve, you forgot to put the asterisk in between quotes like, rename file1 as "12*34" Instead of renaming file1 as 12*34, it renames it 1234, but if it is not in quotes, it's OK. This happens with both Rename commands of ARP and standard AmigaDOS. I solved this problem this afternoon when using GADS(). Before I called GADS(), I changed every occurance of * in the command line to $01. Then after GADS() did its job, I changed $01 back to *. It's a little dirty, but it does the job. Luciano…..(via your program View!)
#114935From: Steve AhlstromJul 29, 1990 8:58 PM
Luciano, AH, ok — I missed that the problem was in using the quotes.
#115248From: David M. DowdleAug 1, 1990 12:44 AM
Use a double asterisk, "12**34", Ados considers the 1st * a wild-card, but the second as a charictor David D.