Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-21 Thread Seymour J Metz
4:53 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Strange results for the PS1 prompt with z/OS Unix Ah ok, I misunderstood then. When you said it'll spare you the effort of continuous maintenance, I thought you meant further work/whatever will be based off of zopen stuff. Of course, RS can't

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-21 Thread kekronbekron
Ah ok, I misunderstood then. When you said it'll spare you the effort of continuous maintenance, I thought you meant further work/whatever will be based off of zopen stuff. Of course, RS can't offer support for zopen content directly. Well... giving back as in more than star-ing a repo. Keeping

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-21 Thread David Crayford
> On 21 Aug 2023, at 1:35 pm, kekronbekron > <02dee3fcae33-dmarc-requ...@listserv.ua.edu> wrote: > >> I intend to leverage the z/OS Open Tools ports as they spare me the effort >> of continuous maintenance. > > That sounds like it's going to lead to RS offering supported option of stuff,

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-20 Thread kekronbekron
> I intend to leverage the z/OS Open Tools ports as they spare me the effort of > continuous maintenance. That sounds like it's going to lead to RS offering supported option of stuff, relying on other people's open sourced work... with what amount of giving back involved? In other words,

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-20 Thread David Crayford
On 19/8/2023 6:18 pm, Sebastian Welton wrote: On Fri, 18 Aug 2023 19:33:03 +0800, David Crayford wrote: I'm feeling a bit puzzled here! Bash doesn't come pre-installed with z/OS; rather, it's a tool ported by Rocket, so there shouldn't be any compatibility problems, right? If IBM decides to

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-20 Thread Matt Hogstrom
Gratz. We’ve all been there Matt Hogstrom +1 (919) 656-0564 > On Aug 20, 2023, at 12:35, Tom Longfellow > <03e29b607131-dmarc-requ...@listserv.ua.edu> wrote: > > changing the \\ to \ in only one system is unacceptable to me. Even if it > works, I would not use it. > I am expecting

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-20 Thread Tom Longfellow
changing the \\ to \ in only one system is unacceptable to me. Even if it works, I would not use it. I am expecting that identical software bases should produce identical results. What the means is I am looking for what is different. What has happened on System 1 that was not correctly

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-20 Thread Tom Longfellow
Let me know when the slaying starts :) The 'trival' matter was introduced by a slightly sloppy set of Copy-Paste combos (user error) and , OF COURSE -- a leading blank in a unix config or command is Never of consequence --

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-19 Thread Sebastian Welton
On Fri, 18 Aug 2023 19:33:03 +0800, David Crayford wrote: >I'm feeling a bit puzzled here! Bash doesn't come pre-installed with >z/OS; rather, it's a tool ported by Rocket, so there shouldn't be any >compatibility problems, right? If IBM decides to include zsh, which is >considered superior to

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread Grant Taylor
On 8/18/23 11:57 AM, Rick Troth wrote: EXPECT IT, where "expect" means "to require" not "to presume upon". Hold their feet to the fire when the break shit. ACK It's not difficult, but it does count for "eternal vigilance". Yep, making sure that someone / something constantly does things

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread Rick Troth
> I want to agree, but I can't. >  I've seen too many differences across too many platforms and too many Unix (like) OSs. >  Getting consistent behavior can become very tricky and you quickly end up away from the purity that -- I think -- that you are talking about. You understand what I am

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread Matt Hogstrom
Tom, I was dropping my son off at ECU yesterday to start his college journey and couldn’t offer a more articulate answer on your question. I am including a link to a good article on Medium.Com that talks about prompt setup for Bash. This is where my TERMINFO comment came

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread Seymour J Metz
@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Friday, August 18, 2023 8:49 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Strange results for the PS1 prompt with z/OS Unix While maintaining respect, it can be quite exasperating within a technical forum to come across

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread Grant Taylor
On 8/18/23 8:33 AM, Rick Troth wrote: About profiling, I regularly setPS1='\$ ' which for BASH renders a prompt as "$" for normal users but as "#" for superuser. It's convenient. ZSH shows that as "\$" and does not change it when I change UID. Zsh has similar behavior. Zsh uses different

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread Rick Troth
ZSH is a powerful shell and serves as an example of the need for clean and generic profiling. I don't use ZSH heavily, but I maintain it in the Chicory collection. (see below) About profiling, I regularly setPS1='\$ ' which for BASH renders a prompt as "$" for normal users but as "#" for

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread David Crayford
RV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Friday, August 18, 2023 7:33 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Strange results for the PS1 prompt with z/OS Unix On 18/8/2023 7:07 pm, Seymour J Metz wrote: While, IMHO, zsh should have been included in MVS/ESA SP V4.3 O

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread David Crayford
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Friday, August 18, 2023 5:38 AM To:IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Strange results for the PS1 prompt with z/OS Unix What version of bash are you using? Rocket

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread Seymour J Metz
18, 2023 7:33 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Strange results for the PS1 prompt with z/OS Unix On 18/8/2023 7:07 pm, Seymour J Metz wrote: > While, IMHO, zsh should have been included in MVS/ESA SP V4.3 OpenEdition, I > don't see it killing bash, due to compatibility. I'm fe

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread kekronbekron
om: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of > > David Crayford [dcrayf...@gmail.com] > > Sent: Friday, August 18, 2023 5:38 AM > > To:IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: Strange results for the PS1 prompt with z/OS Unix > > > >

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread David Crayford
...@gmail.com] Sent: Friday, August 18, 2023 5:38 AM To:IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Strange results for the PS1 prompt with z/OS Unix What version of bash are you using? Rocket software's port or IBM z/OS Open Tools? Irrespective, bash is an enhanced ASCII application so make sure you have

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread Seymour J Metz
] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Friday, August 18, 2023 5:38 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Strange results for the PS1 prompt with z/OS Unix What version of bash are you using? Rocket software's port or IBM z/OS Open Tools? Irrespective, bash is an enhanced ASCII

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-18 Thread David Crayford
What version of bash are you using? Rocket software's port or IBM z/OS Open Tools? Irrespective, bash is an enhanced ASCII application so make sure you have the following environment variables set in your profile login scripts by entering "env | sort" from the shell command line.

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Jon Perryman
For system 2, try changing \\ to \. My guess is that on system 2, it's being used as an escape character. On Thursday, August 17, 2023 at 08:31:43 AM PDT, Tom Longfellow <03e29b607131-dmarc-requ...@listserv.ua.edu> wrote: I am confused and am throwing out a Hail Mary for help. 

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Paul Gilmartin
On Thu, 17 Aug 2023 16:16:46 -0400, Bob Bridges wrote: >Not QUITE the same. Your first example starts in position 4; the second in >position 3. > >(Heh, heh, I just slay myself.) > That's not frivolous. It's valuable to verify similarity of profiles by such as on system2: ssh -f system1

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Bob Bridges
Not QUITE the same. Your first example starts in position 4; the second in position 3. (Heh, heh, I just slay myself.) --- Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313 /* Anyone can do any amount of work, provided it isn't the work he is supposed be doing at that moment. -Robert

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Paul Gilmartin
On Thu, 17 Aug 2023 13:39:54 -0500, Tom Longfellow wrote: >I have not done any play with TERMINFO > >Don't know how. > >Don't even know where it is stored. >

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Pew, Curtis G
I think I had a problem like this once, but I don’t remember how I fixed it. However, this StackOverflow question might give you some things to try: https://stackoverflow.com/questions/8261602/how-can-i-debug-the-bash-prompt On Aug 17, 2023, at 1:39 PM, Tom Longfellow

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Tom Longfellow
I have not done any play with TERMINFO Don't know how. Don't even know where it is stored. I think I 'might' have had to do some kind of TERMINFO thing in the ancient past before z/OS standardized them and made it no longer necessary to create /tty directories and the like.

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Matt Hogstrom
Did you modify the TERMINFO ?I ended up creating one with xterm which is not standard Matt Hogstrom +1 (919) 656-0564 > On Aug 17, 2023, at 13:40, Paul Gilmartin > <042bfe9c879d-dmarc-requ...@listserv.ua.edu> wrote: > > On Thu, 17 Aug 2023 11:42:28 -0500, Tom Longfellow wrote: >>

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Paul Gilmartin
On Thu, 17 Aug 2023 11:42:28 -0500, Tom Longfellow wrote: >... >The PS1 setting string is being Cut from Session 1 and then Pasted to Session >2 (under the same emulator and session switcher (netmaster) session. > I'd distrust screen copy/paste for anything with metacharacters. Especially

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Rick Troth
On 8/17/23 12:42, Tom Longfellow wrote: The value of TERM is xterm.(I have no idea why) "xterm" has become generic for ANSI X3.64 capable terminals and terminal emulators. Once upon a time "vt100" filled that role, but "xterm" implies more capability.

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Tom Longfellow
Thanks for all the ideas so far.Here are some answers to the posed questions. The same emulator is used for both systems. That emulator is connected to a session switcher on system 2. System 1 is accessed via standard APPN/SNA/VTAM routing. (only one emulator is involved.) The

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Rick Troth
On 8/17/23 11:31, Tom Longfellow wrote: I am confused and am throwing out a Hail Mary for help. Here is the situation. Two cloned LPARs. (same sysres and unix root file systems) On system 1 - the /etc/profile has a PS1 of export PS1="[\\u@\\H \\W \\@]\\$ " On system 2 - the

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Seymour J Metz
Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Mark Zelden [m...@mzelden.com] Sent: Thursday, August 17, 2023 12:11 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Strange results for the PS1 prompt with z/OS Unix Agree with Shmuel. I assume the same emulator profile is used for both

Re: [EXTERNAL] Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Pommier, Rex
The initial email said bash -Original Message- From: IBM Mainframe Discussion List On Behalf Of Matt Hogstrom Sent: Thursday, August 17, 2023 11:13 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: Strange results for the PS1 prompt with z/OS Unix Is this sh, bash

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Matt Hogstrom
Is this sh, bash, … ? Is the TERM environment variable the same on both systems ? Matt Hogstrom PGP key 0F143BC1 > On Aug 17, 2023, at 11:31, Tom Longfellow > <03e29b607131-dmarc-requ...@listserv.ua.edu> wrote: > > I am confused and am throwing out a Hail Mary for help. Here is the >

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Mark Zelden
...@listserv.ua.edu] >Sent: Thursday, August 17, 2023 11:31 AM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Strange results for the PS1 prompt with z/OS Unix > >I am confused and am throwing out a Hail Mary for help. Here is the >situation. >Two cloned LPARs. (same sysres

Re: [EXTERNAL] Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Pommier, Rex
: [EXTERNAL] Strange results for the PS1 prompt with z/OS Unix I am confused and am throwing out a Hail Mary for help. Here is the situation. Two cloned LPARs. (same sysres and unix root file systems) On system 1 - the /etc/profile has a PS1 of export PS1="[\\u@\\

Re: Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Seymour J Metz
[03e29b607131-dmarc-requ...@listserv.ua.edu] Sent: Thursday, August 17, 2023 11:31 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Strange results for the PS1 prompt with z/OS Unix I am confused and am throwing out a Hail Mary for help. Here is the situation. Two cloned LPARs. (same sysres and unix root

Strange results for the PS1 prompt with z/OS Unix

2023-08-17 Thread Tom Longfellow
I am confused and am throwing out a Hail Mary for help. Here is the situation. Two cloned LPARs. (same sysres and unix root file systems) On system 1 - the /etc/profile has a PS1 of export PS1="[\\u@\\H \\W \\@]\\$ " On system 2 - the /etc/profile has a PS1 of export