[Simh] Feature request

Timothe Litt litt at ieee.org
Sun Dec 7 07:24:56 EST 2014


On 07-Dec-14 01:18, Johnny Billquist wrote:
> On 2014-12-07 07:07, Peter Svensson wrote:
>>
>> On 2014-12-07 02:03, Timothe Litt wrote:
>>> On 06-Dec-14 19:16, Mark Pizzolato - Info Comm wrote:
>>>>
>>>> After a little more thought, I realize that although this (using
>>>> '#!/usr/bin/vax' )
>>>> will work for basic legacy simh scripts, several of the new simh
>>>> command features
>>>> won't work (i.e. GOTO, Conditional trapping via ON, SHIFT, etc.).
>>>> The issue here
>>>> is that when a simulator is invoked this way, commands are coming
>>>> from stdin
>>>> and not a simh command file which does support these other commands.
>> Hi,
>>
>> I am not sure I understand the issue here. The shebang ("#!") makes the
>> shell execute the remainder of that line and pass the path to the script
>> as the final argument. At least that is true on any system I have worked
>> on. Where does the stdin come into the picture?
>>
>> I feel I am missing something here.
>
> Indeed. I think Mark missed how it works.
>
> Psilocybe:bqt/newbridge# ./t.sh kaka
> foo bar ./t.sh kaka
> Psilocybe:bqt/newbridge# cat t.sh
> #!/bin/echo foo bar
> kex
> Psilocybe:bqt/newbridge#
>
>     Johnny
>
Yes.  The general issue is that the commands Mark mentioned require
stdin to be seekable, which it isn't in any case where stdin is a pipe,
socket, etc.  simh doesn't handle that.

Sorry to have merged the two.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4942 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20141207/57f2dc5c/attachment-0001.bin>


More information about the Simh mailing list