Bug in shell/cli/console

A forum for general AmigaOS 4.x support questions that are not platform-specific
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1608
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Bug in shell/cli/console

Post by nbache »

xenic wrote: Sun May 09, 2021 2:25 pmExample command:
more SYS:Documentation/C/Assign.doc
Sligtly OT, I know, but why don't you just do "help assign"?

Best regards,

Niels
xenic
Posts: 1183
Joined: Sun Jun 19, 2011 12:06 am

Re: Bug in shell/cli/console

Post by xenic »

nbache wrote: Sun May 09, 2021 5:27 pm Sligtly OT, I know, but why don't you just do "help assign"?
Because I was testing if the more command produced the same error reported in this topic for lha in a shell. I normally don't use more for anything. Besides, the help files haven't been kept up to date with all the commands in the OS4.1FE C: directory. There are at least 40 commands in C: that do not have help files.

P.S. I keep 3rd party commands in an assign-added directory to the C: directory so the 40+ files I mentioned above do not include 3rd party commands.
AmigaOne X1000 with 2GB memory - OS4.1 FE
User avatar
Raziel
Posts: 1058
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: Bug in shell/cli/console

Post by Raziel »

@xenic

It's a regression.

CLI 52.4 does not show this behaviour, while
CLI 53.15 does
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1608
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Bug in shell/cli/console

Post by nbache »

xenic wrote: Mon May 10, 2021 3:43 pmBesides, the help files haven't been kept up to date with all the commands in the OS4.1FE C: directory. There are at least 40 commands in C: that do not have help files.
Ouch ... noted.

Though (before having checked) there may well be commands in C: for which it wasn't intended to make their docs available for "help". But there may also be some that were simply not copied (in cleaned versions) to the Help dir. And possibly some where the docs were changed without being copied.

I'll investigate.

Best regards,

Niels
xenic
Posts: 1183
Joined: Sun Jun 19, 2011 12:06 am

Re: Bug in shell/cli/console

Post by xenic »

nbache wrote: Mon May 10, 2021 11:21 pm Ouch ... noted.
For your convenience here is a short AmigaDOS script that will list (to a file in ram:) the C: files that have no English help files:

Code: Select all

;Script docomp

FOREACH NAME file IN `list SORT N C: LFORMAT "C:%N"`
 IF NOT EXISTS SYS:Locale/Help/english/Shell/${file}.help
   ECHO >>ram:nohelp.txt $file
 ENDIF
END
AmigaOne X1000 with 2GB memory - OS4.1 FE
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1608
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Bug in shell/cli/console

Post by nbache »

Thanks!

Best regards,

Niels
kolla
Posts: 26
Joined: Wed Oct 24, 2018 10:38 am

Re: Bug in shell/cli/console

Post by kolla »

Really, this is a oneliner that can be done without any fancy foreach and bakcticking...

Code: Select all

List C: FILES LFORMAT "If NOT EXISTS *"HELP:english/%n.help*"\*n*tEcho *"%p%n*" >> ram:nohelp.txt*nEndIf" | Execute
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1608
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Bug in shell/cli/console

Post by nbache »

Yes, sure.

It's of little more than academic interest anyway, because that search is only a small first step in the task I have to do (when I get "a round tuit").

It will also be relevant to check the docs in Documentation/C against the ones in HELP:english/, both for existance and for equality.

And then someone in more charge than me will have to decide which discrepancies should actually be fixed, and which are intentional or irrelevant.

I do have a few other more pressing things to look at first, though, but I'll get there eventually.

Best regards,

Niels
Post Reply