1d3a2defa2
Merge 7.0 commit 'ca9c95' into PSI-7.0
2023-12-01 14:21:07 +01:00
Michael Davidsaver
7830345e59
move IocshRegister() to iocshInit()
...
No need for both global ctor and lazy init
2023-08-28 14:17:00 +02:00
AlexWells
6de82bb0fd
Additional help messages for iocsh
...
Henrique Silva <henrique.silva@ess.eu >
2023-08-28 13:24:16 +02:00
0f086126b7
fix escaped quotes in quoted strings
Check EditorConfig / editorconfig (push) Failing after 1s
Base / Cross linux-aarch64 (push) Failing after 2s
Base / Cross linux-arm gnueabi (push) Failing after 1s
Base / Cross linux-arm gnueabihf (push) Failing after 2s
Base / Fedora-33 (push) Failing after 2s
Base / CentOS-7 (push) Failing after 5s
Base / Fedora-latest (push) Failing after 1s
Base / Win2019 mingw (push) Has been cancelled
Base / Ub-20 clang-10 C++11 (push) Has been cancelled
Base / MacOS clang-12 (push) Has been cancelled
Base / Ub-20 clang-10 (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-5.1 beatnik (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-4.10 (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-4.9 (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-5.1 pc686 (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-5.1 xilinx_zynq_a9_qemu (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-5.1 uC5282 (push) Has been cancelled
Base / Ub-20 gcc-9 + MinGW (push) Has been cancelled
Base / Ub-20 gcc-9 unsigned char (push) Has been cancelled
Base / Ub-20 gcc-9 C++11, static (push) Has been cancelled
Base / Ub-20 gcc-9 + MinGW, static (push) Has been cancelled
Base / Win2019 MSC-19 (push) Has been cancelled
Base / Win2019 MSC-19, debug (push) Has been cancelled
Base / Win2019 MSC-19, static (push) Has been cancelled
2023-06-22 16:37:29 +02:00
Michael Davidsaver
0c13e6ba6c
iocsh: tab completion handle iocshArgArgv
2023-05-01 10:31:01 -07:00
3dbc9ea264
iocsh: fix argument splitting
...
Since commit 60128ee9 "Com: separate iocsh argument splitting",
iocsh is broken on VxWorks (tested with version 6.9.4.12)
Any command prints the error "Unbalanced quote."
> iocsh
epics> echo
Unbalanced quote.
epics> "echo"
Unbalanced quote.
epics> "echo
Unbalanced quote.
epics> echo bla
Unbalanced quote.
epics> echo 1 2 3
Unbalanced quote.
epics> exit
Unbalanced quote.
2023-02-01 09:25:10 -08:00
Michael Davidsaver
b38ff09f6e
Com: iocsh: Tab completion of variable names for "var"
2022-12-20 20:12:04 -08:00
Michael Davidsaver
d9ca8a70f0
Com: iocsh: Tab completion
...
Add tab completion for "help ...", record names, and "pdbbase"
2022-12-20 20:12:04 -08:00
Michael Davidsaver
60128ee924
Com: separate iocsh argument splitting
2022-12-20 20:12:04 -08:00
Michael Davidsaver
b189991f9d
Com: iocsh: add tab completion for command names
2022-12-20 20:12:04 -08:00
Michael Davidsaver
94b0e2621f
iocsh: more helpful help
...
For plain "help", move the hint text to the end.
For "help ..." make the command names bold.
2022-05-12 09:01:36 -07:00
555e671246
allow glob pattern in var command
2021-05-19 10:54:49 -07:00
Ziga Oven
746d21c71d
Add usage messages
2021-03-18 14:06:45 -07:00
Michael Davidsaver
9e3d5d52ab
iocshRegisterVariable() avoid spurious redefinition warning
...
Compare the contents, not the container.
2020-08-22 07:50:40 -07:00
Andrew Johnson
3c99391d93
Added SPDX License ID to all EPICS-original source files
...
In some cases the license-identification header was missing,
so I added that as well. Replaced the remaining headers that
specifically identified "Versions 3.13.7 and higher".
Makefiles and the build system were deliberately excluded.
2020-08-03 11:53:01 -05:00
36a8b51d8e
CleanupWhitespace
...
removed spaces at end of line
replaced tabs with spaces
2020-05-20 14:48:09 -07:00
Michael Davidsaver
799e72b1e3
libCom: actually use libComAPI.h in libCom
2020-05-20 14:47:51 -07:00
Michael Davidsaver
ce4fb6085f
iocsh: add usage messages
2020-04-24 20:28:00 -07:00
Aaron
6e0706a312
Set argBuff->sval to NULL if arg is NULL
2020-02-13 13:22:26 +00:00
Aaron
45bbe274e9
Error case for NULL arg causing segfault in iocshPersistentString
2020-02-13 13:22:19 +00:00
Michael Davidsaver
90ef40e62b
iocshFindVariable() safety
2019-11-24 19:39:44 -08:00
Michael Davidsaver
2557d14785
iocshCmd() imply "on error break"
2019-08-25 20:10:27 -07:00
Michael Davidsaver
58473e825c
iocsh more error handling
...
sooo many ways to fail...
2019-08-25 16:29:55 -07:00
Michael Davidsaver
a625acbb18
iocsh handle redirect and similar early errors
2019-08-24 20:30:47 -07:00
Michael Davidsaver
a81e261e23
iocsh trap arg. parsing errors
2019-06-23 19:43:34 -07:00
Michael Davidsaver
52b9c8b947
iocsh further on error
...
Split Scope into iocshContext and iocshScope
to separate per-thread and per-call state.
Error handling is per-call.
2019-05-27 21:24:58 -07:00
Bruce Hill
76506991da
Fixed logic errors and added some prompts.
2019-05-27 20:12:48 -07:00
Michael Davidsaver
eba8a13a2c
iocsh allow setting of error code
2019-05-02 20:38:45 -07:00
Michael Davidsaver
89c269e2d5
iocsh control error behavior
2019-05-02 20:38:45 -07:00
Michael Davidsaver
2e80a97da9
iocsh catch exceptions
2019-05-02 20:29:13 -07:00
Andrew Johnson
6d5f57daf1
Merge 3.16 branch into 7.0
2018-12-12 15:17:02 -06:00
Michael Davidsaver
ebe7cf046e
libCom: iocshRegisterVariable() only warn on actual redefinition
...
Avoid noise if simply called twice.
2018-11-04 19:32:48 -08:00
Ralph Lange
833648c977
Move all under modules/libcom
2018-06-19 11:25:46 +02:00