Re: Frotz (Z Machine emulator)
Pascal Bourguignon <[email protected]> Sat, 25 Mar 2017 23:53:50 +0100
| Newsgroups | gmane.comp.lib.gnustep.applications |
|---|---|
| Message-ID | <[email protected]> |
--===============2726197769632447049== Content-Type: multipart/alternative; boundary="Apple-Mail=_23D98835-EAA1-4D8F-BC73-A295ACDF2FD2" --Apple-Mail=_23D98835-EAA1-4D8F-BC73-A295ACDF2FD2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 25 Mar 2017, at 20:19, HappyMacXL <[email protected]> wrote: >=20 >=20 > I installed GNUstep on top of Raspbian Lite (CLI), I then installed = Frotz > which is the emulator for Infocoms Z Machine. Within the GUI itself = if you > open a terminal and type 'frotz zork.z3' then it simply returns = "command > cannot be found". >=20 > Oddly if I just install Raspbian Lite on its own and then Frotz it = will > work, but install GNUstep on top and then run the same command from = terminal > again (within the GUI) and again you get the "command cannot be = found". >=20 > Can anyone offer pointers on where i'm going wrong please? I am = slowly > looking to build a 'retro' emulator system within GNUstep. The difference is probably in the environment. Assuming you=E2=80=99re using bash; bash distinguishes interactive/non-interactive and login/non-login = shells. (and dynamically, starting or exiting). WHEN starting AND ( interactive AND login ) OR ( non-interactive AND --login ) ) DO /etc/profile THEN ~/.bash_profile OR ELSE ~/.bash_login OR ELSE ~/.profile WHEN starting AND interactive AND NOT login DO ~/.bashrc WHEN starting AND NOT interactive DO $BASH_ENV WHEN exiting AND login DO ~/.bash_logout Terminal emulators will often start the shell in non-login mode (ie. the = second case above). Therefore they won=E2=80=99t load '.bash_profile' or '.profile', but = '.bashrc'. You will have to move setting of the PATH from .bash_profile (or = .profile), to .bashrc Some terminal emulators give you the option of starting the shell in = login mode (--login or letting you give the command with any option you = want). But in general, it=E2=80=99s better to leave those shells as = non-login shells, to avoid confusion and being noted as multiply = logged-in the system (cf. who -l). --=20 __Pascal J. Bourguignon__ --Apple-Mail=_23D98835-EAA1-4D8F-BC73-A295ACDF2FD2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div = class=3D"">On 25 Mar 2017, at 20:19, HappyMacXL <<a = href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div class=3D""><br = class=3D"">I installed GNUstep on top of Raspbian Lite (CLI), I then = installed Frotz<br class=3D"">which is the emulator for Infocoms Z = Machine. Within the GUI itself if you<br class=3D"">open a = terminal and type 'frotz zork.z3' then it simply returns "command<br = class=3D"">cannot be found".<br class=3D""><br class=3D"">Oddly if I = just install Raspbian Lite on its own and then Frotz it will<br = class=3D"">work, but install GNUstep on top and then run the same = command from terminal<br class=3D"">again (within the GUI) and again you = get the "command cannot be found".<br class=3D""><br class=3D"">Can = anyone offer pointers on where i'm going wrong please? I am = slowly<br class=3D"">looking to build a 'retro' emulator system within = GNUstep.<br class=3D""></div></div></blockquote><br = class=3D""></div><div><br class=3D""></div><div>The difference is = probably in the environment.</div><div><br class=3D""></div><div>Assuming = you=E2=80=99re using bash;</div><div><br class=3D""></div><div>bash = distinguishes interactive/non-interactive and login/non-login = shells.</div><div>(and dynamically, starting or exiting).</div><div><br = class=3D""></div><div><div> WHEN starting</div><div> = AND ( interactive AND login ) OR ( non-interactive AND = --login ) )</div><div> DO = /etc/profile</div><div> THEN = ~/.bash_profile</div><div> OR = ELSE ~/.bash_login</div><div> OR ELSE = ~/.profile</div><div><br class=3D""></div><div> WHEN = starting</div><div> AND interactive AND NOT = login</div><div> DO ~/.bashrc</div><div><br = class=3D""></div><div> WHEN starting</div><div> = AND NOT interactive</div><div> DO = $BASH_ENV</div><div><br class=3D""></div><div> WHEN = exiting</div><div> AND login</div><div> = DO ~/.bash_logout</div><div class=3D""><br class=3D""></div><div = class=3D"">Terminal emulators will often start the shell in non-login = mode (ie. the second case above).</div><div class=3D"">Therefore they = won=E2=80=99t load '.bash_profile' or '.profile', but = '.bashrc'.</div></div><div class=3D""><br class=3D""></div>You will have = to move setting of the PATH from .bash_profile (or .profile), to = .bashrc<div class=3D""><br class=3D""></div><div class=3D"">Some = terminal emulators give you the option of starting the shell in login = mode (--login or letting you give the command with any option you want). = But in general, it=E2=80=99s better to leave those shells as = non-login shells, to avoid confusion and being noted as multiply = logged-in the system (cf. who -l).</div><div class=3D""><br = class=3D""><div class=3D""> <div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; orphans: = auto; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px; word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px; word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D"">-- <br class=3D"">__Pascal J. Bourguignon__<br = class=3D""><br class=3D""><br class=3D""></div></div> </div> <br class=3D""></div></body></html>= --Apple-Mail=_23D98835-EAA1-4D8F-BC73-A295ACDF2FD2-- --===============2726197769632447049== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ apps-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/apps-gnustep --===============2726197769632447049==--