Megatest

Artifact [e57669bf74]
Login

Artifact e57669bf74a7a1e54df1a627cf486a38944fc23e:

Ticket change [e57669bf74] - New ticket [dd54f4b87b] new command [cat <path> {alternate}], conditional cat if file exists. by mmgraham on 2024-03-25 11:23:22.
D 2024-03-25T17:23:22.878
J comment Applies\sto:\smegatest\sconfig,\srunconfig,\stestconfig\r\n\r\n\r\n\r\nDescription:\r\n\r\n\r\n\r\nChecks\sfor\sexistence\sof\sfile.\r\n\r\n\r\n\r\nIf\sfile\sexists,\scat\sit.\r\n\r\n\r\n\r\nIf\sfile\sdoes\snot\sexist,\sand\soptional\stext\sdefined\sdisplay\soptional\stext\r\n\r\n\r\n\r\nIf\sfile\sdoes\snot\sexist,\sand\soptional\stext\snot\sspecified,\sprint\san\serror\sthat\sthe\sfile\sdoes\snot\sexist.\r\n\r\n\r\n\r\nSyntax:\r\n\r\n\r\n\r\n[cat\s<path>]\r\n\r\n[cat\s<path>\s"text\sif\sfile\sdoes\snot\sexist"]\r\n\r\n\r\n\r\nExample:\r\n\r\n\r\n\r\n[items]\r\n\r\nVAR1\s[cat\s/path/to/somefile]\r\n\r\nVAR2\s[cat\s/path/to/someother\s""]
J foundin 1.80/29
J login mmgraham
J private_contact 97a985880d55d4326aae6748098171ce1de44344
J severity Important
J status Open
J title \snew\scommand\s[cat\s<path>\s{alternate}],\sconditional\scat\sif\sfile\sexists
J type Feature_Request
K dd54f4b87b4f717a0c60ab807f3f0ff167c89510
U mmgraham
Z 090b180a1343046f28dafb28e6900f3a