Best way to change directories within a script..

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

Best way to change directories within a script..

Rick Flower-2
 

So, my scripting is getting there -- slowly but surely.. Now as
part of my script I'm looping through a series of directories to do
various things and need to 'cd' into and out of each directory..

Is
the best way to 'cd' into a directory just using the pipe streams to go
in and then another pipe to 'cd ..' back out again? I've done it this
way in the past but figured I'd ask if there was a more efficient
way,etc.. I did look into the Directory.st and FilePath.st but didn't
see anything obvious..

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

Re: Best way to change directories within a script..

Paolo Bonzini-2
Il 27/10/2012 02:48, Rick Flower ha scritto:

>  
>
> So, my scripting is getting there -- slowly but surely.. Now as
> part of my script I'm looping through a series of directories to do
> various things and need to 'cd' into and out of each directory..
>
> Is
> the best way to 'cd' into a directory just using the pipe streams to go
> in and then another pipe to 'cd ..' back out again? I've done it this
> way in the past but figured I'd ask if there was a more efficient
> way,etc.. I did look into the Directory.st and FilePath.st but didn't
> see anything obvious..

Directory working

and

Directory working: 'foo'

does it.

Paolo


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

Re: Best way to change directories within a script..

Rick Flower-2
 

Thanks Paolo!!
_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk