Re: [Freedos-devel] Question about edlin

2024-01-22 Thread Gregory Pietsch via Freedos-devel
Of course, quotes can be escaped. -- Gregory > On 01/22/2024 5:18 PM EST Bret Johnson via Freedos-devel > wrote: > > > That solves the problem with commas, but it looks like you may still have > issues if there are quotes in the file. > > I know one thing I've done in the past with some of

Re: [Freedos-devel] Question about edlin

2024-01-22 Thread Bret Johnson via Freedos-devel
That solves the problem with commas, but it looks like you may still have issues if there are quotes in the file. I know one thing I've done in the past with some of my programs is allow the use of either a double-quote ("), single-quote ('), or grave-quote (`) as string demarkers, which allows

Re: [Freedos-devel] Question about edlin

2024-01-22 Thread Jim Hall via Freedos-devel
On Mon, Jan 22, 2024 at 11:24 AM Gregory Pietsch via Freedos-devel wrote: > > FD edlin ignores a leading space. If you want the leading space to be > searched for, put the string in quotes; e.g. > > 1r"written"," written" > > The reason why I didn't stick a ^Z there is because I wanted to get > aw

Re: [Freedos-devel] Question about edlin

2024-01-22 Thread Gregory Pietsch via Freedos-devel
nical discussion and questions for FreeDOS developers." > > Cc: "Gregory Pietsch" > Subject: Re: [Freedos-devel] Question about edlin > > FD edlin ignores a leading space. If you want the leading space to be > searched for, put the string in quotes; e.g. >

Re: [Freedos-devel] Question about edlin

2024-01-22 Thread Wilhelm Spiegl via Freedos-devel
" To: "Technical discussion and questions for FreeDOS developers." Cc: "Gregory Pietsch" Subject: Re: [Freedos-devel] Question about edlin FD edlin ignores a leading space. If you want the leading space to be searched for, put the string in quotes; e.g. 1r"written&q

Re: [Freedos-devel] Question about edlin

2024-01-22 Thread Gregory Pietsch via Freedos-devel
FD edlin ignores a leading space. If you want the leading space to be searched for, put the string in quotes; e.g. 1r"written"," written" The reason why I didn't stick a ^Z there is because I wanted to get away from control characters in the commands, and a comma just looks better, IMHO. Grego

Re: [Freedos-devel] Question about edlin

2024-01-22 Thread Bret Johnson via Freedos-devel
> I'm using the "r" (replace) instruction correctly: 1rfrom,to will > start at line 1 and replace "from" with "to". > > But it looks like a leading space is ignored, so edlin treats my > "1rwritten, written" as just "1rwritten,written" and seems to ignore > it because the "from" and "to" strings ar

[Freedos-devel] Question about edlin

2024-01-21 Thread Jim Hall via Freedos-devel
I actually do use edlin sometimes. But I have a question that might actually be a bug report: When I try to search and replace text, and I want to add a space in front of my replaced text, I can't get it to work. Am I doing this wrong? Here's an example: In this 1-line file, I want to edit the li