Hey Roger
I don't know which system the FTP "standards" come from. In any case, "pwd" and its cousin "lpwd" are display-only, "cd" and "lcd" will change something - and display what you changed it to.
The 7.4 documentation does not say what happens if you use only "cd" - I recommend using "pwd" to see where you are, not "cd", I don't like using things that actually take an action when all I want is to look.
Cheers
Vern
On Fri, 2 Jun, 2023 at 4:49 PM, Roger Harman <roger.harman@xxxxxxxxxxx> wrote:
To: midrange systems technical discussion
"cd" harkens back to MS-DOS.
"pwd" harkens from *NIX.
Despite many years on UNIX & AIX, I still used the "cd" versions on IBM.
Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>> On Behalf Of Vern Hamberg via MIDRANGE-L
Sent: Friday, June 2, 2023 5:36 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx<mailto:vhamberg@xxxxxxxxxxxxxxx>>
Subject: Re: FTP question
I have never used lcd without a parameter, either - it means "local
change directory", so it is changing directory on the client. If I want
to know what directory I am in locally, I use lpwd - local present
working directory.
To do the same on the server, just use the same functions without the
leading "l" - cd and pwd.
Cheers
Vern
On 6/2/2023 3:09 AM, Patrik Schindler wrote:
Hello Thomas,
Am 02.06.2023<http://02.06.2023> um 02:24 schrieb Thomas Burrows <thomas.burrows.1957@xxxxxxxxx<mailto:thomas.burrows.1957@xxxxxxxxx>>:
ftp> lcd
*Local directory now C:\Users\Thomas Burrows\Desktop\Subfile_Code.*
Not sure what lcd without any parameter is supposed to do. I think, it's merely printing your current working directory so you know "where you are". Thus, probably not needed.
-snip-
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.