programme arguments in bench

15 views
Skip to first unread message

jacques silberstein

unread,
Oct 1, 2025, 5:51:48 AM (6 days ago) Oct 1
to Eiffel Users


The written 2 arguments:

-i '([A-Z]:\\)+[A-Z]+'  path_test.txt

In debugging mode:

in class ARGUMENT_32 the second item in argument_array content : ([A-Z]:\)+[A-Z]+

So I should replace the second argument by : '([A-Z]:\\\)+[A-Z]+'

With 3 \

If I start from the terminal, that mistake does happen.



-- 

Cordialement

Jacques Silberstein

Ulrich Windl

unread,
Oct 3, 2025, 3:46:15 AM (4 days ago) Oct 3
to eiffel...@googlegroups.com
Hi!

A normal UNIX shell will pass the backslashes literally. If one of them gets lost inside the program, it's a problem of the program. Trying to fix the issue from the command line is wrong.

Regards,
Ulrich

Karsten Heusser

unread,
Oct 5, 2025, 7:56:22 AM (2 days ago) Oct 5
to Eiffel Users
Dear Jacques:
In Eiffel, backslashes are special characters, just like new line characters, for example.
Best regards,
Karsten
Reply all
Reply to author
Forward
0 new messages