Getting current working directory (ala 'pwd')

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting current working directory (ala 'pwd')

Rick Flower
Ok.. In poking around I thought I could get the current
working directory by issuing something like the following:

Transcript show: (Directory working path); cr.

However, it displays the parent of the pwd.. Any ideas
on how to effectively get the return value of 'pwd'?

Thx!



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Getting current working directory (ala 'pwd')

Paolo Bonzini-2
On 02/25/2010 08:25 PM, Rick Flower wrote:
> Ok.. In poking around I thought I could get the current
> working directory by issuing something like the following:
>
> Transcript show: (Directory working path); cr.
>
> However, it displays the parent of the pwd.. Any ideas
> on how to effectively get the return value of 'pwd'?

Just "Directory working", or possibly "Directory working asString".

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Getting current working directory (ala 'pwd')

Rick Flower
On Thu, 25 Feb 2010 20:57:27 +0100, Paolo Bonzini <[hidden email]> wrote:

> On 02/25/2010 08:25 PM, Rick Flower wrote:
>> Ok.. In poking around I thought I could get the current
>> working directory by issuing something like the following:
>>
>> Transcript show: (Directory working path); cr.
>>
>> However, it displays the parent of the pwd.. Any ideas
>> on how to effectively get the return value of 'pwd'?
>
> Just "Directory working", or possibly "Directory working asString".


Thanks Paolo.. The 2nd version worked (with the "asString").. I've not
used ST in >6-8 months and am a bit rusty..



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Getting current working directory (ala 'pwd')

Paolo Bonzini-2
On 02/25/2010 10:22 PM, Rick Flower wrote:
>> >  Just "Directory working", or possibly "Directory working asString".
>
> Thanks Paolo.. The 2nd version worked (with the "asString").

Yeah, it depends on what you actually wanted.

> I've not used ST in>6-8 months and am a bit rusty..

np, file/directory handling is possibly the least standardized part of
the whole language.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Getting current working directory (ala 'pwd')

Rick Flower
The thing I had forgotten was to try using the convert method  
"asString"..  I know
a lot of things will have those as helpers -- but obviously not  
everything.. :)

Thanks!

On Feb 26, 2010, at 2:45 AM, Paolo Bonzini wrote:

> On 02/25/2010 10:22 PM, Rick Flower wrote:
>>> >  Just "Directory working", or possibly "Directory working  
>>> asString".
>>
>> Thanks Paolo.. The 2nd version worked (with the "asString").
>
> Yeah, it depends on what you actually wanted.
>
>> I've not used ST in>6-8 months and am a bit rusty..
>
> np, file/directory handling is possibly the least standardized part  
> of the whole language.
>
> Paolo



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk