[comp.sys.amiga.tech] Finding current Directory

R38@PSUVM.BITNET (Marc Rifkin) (02/12/89)

Ok, I heard of this before, but can't remember:
I know that to refer to a file in the current VOLUME regardless of
what subdirectory you are in, you (in AmigaDOS) use ':fname',
but what would be the character(s) to refer  to the CURRENT directory,
such as in an ASSIGN command, that I wanted to assign the current
dir as a certain name.
Anyone?
-------
Marc Rifkin / R38@PSUVM     ///////////////////////////////////////
101 Beaver Hall             / "Bueler, Bueler, Bueler..."         /
University Park, Pa. 16802  /    (FBDO)                           /
814-862-6848                ///////////////////////////////////////

joe@cbmvax.UUCP (Joe O'Hara) (02/14/89)

In article <71214R38@PSUVM> R38@PSUVM.BITNET (Marc Rifkin) writes:
>Ok, I heard of this before, but can't remember:
>I know that to refer to a file in the current VOLUME regardless of
>what subdirectory you are in, you (in AmigaDOS) use ':fname',
>but what would be the character(s) to refer  to the CURRENT directory,
>such as in an ASSIGN command, that I wanted to assign the current
>dir as a certain name.

The character pair is ""

-- 
========================================================================
  Joe O'Hara                ||  Comments represent my own opinions,
  Commodore Electronics Ltd ||  not my employers. Any similarity to
  Software QA               ||  to any other opinions, living or dead,
                            ||  is purely coincidental.
========================================================================

alj@bilver.UUCP (arthur johnson) (02/15/89)

 For ASSIGN, use 'ASSIGN ???: ""' <- two double quotes to ASSIGN something
to the current directory.  I think you can use the "" on some other AmigaDOS
commands, but am not sure if you can use it in ALL reasonable situations.

-- 
Arthur Johnson Jr. -=> {uiucuxc, hoptoad, petsd}!peora!rtmvax!bilver!alj
-=-=-=-=-=-=-=-=-  -=> alj@bilver.UUCP
		   -=> PLink: DUNG
		   -=> GEnie: A.JOHNSONJR

nsw@cord.UUCP (Neil Weinstock) (02/17/89)

In article <406@bilver.UUCP> alj@bilver.UUCP (arthur johnson) writes:
> For ASSIGN, use 'ASSIGN ???: ""' <- two double quotes to ASSIGN something
>to the current directory.  I think you can use the "" on some other AmigaDOS
>commands, but am not sure if you can use it in ALL reasonable situations.

Well, one reasonable situation where I can't use it is from Matt's shell
v2.11.  The double quote is ignored.  Is there any way to do it?  I just
checked the docs and didn't find anything.

 /.- -- .. --. .- .-. ..- .-.. . ... .- -- .. --. .- .-. ..- .-.. . ...\
/ Neil Weinstock | att!cord!nsw     | "One man's garbage is another     \
\ AT&T Bell Labs | nsw@cord.att.com | man's prune danish." - Harv Laser /
 \.- -- .. --. .- .-. ..- .-.. . ... .- -- .. --. .- .-. ..- .-.. . .../

dillon@POSTGRES.BERKELEY.EDU (Matt Dillon) (02/18/89)

:In article <406@bilver.UUCP> alj@bilver.UUCP (arthur johnson) writes:
:> For ASSIGN, use 'ASSIGN ???: ""' <- two double quotes to ASSIGN something
:>to the current directory.  I think you can use the "" on some other AmigaDOS
:>commands, but am not sure if you can use it in ALL reasonable situations.
:
Neil Weinstock | att!cord!nsw  Writes:
:Well, one reasonable situation where I can't use it is from Matt's shell
:v2.11.  The double quote is ignored.  Is there any way to do it?  I just
:checked the docs and didn't find anything.

	Yes you can.. use the \ overider.

	assign this: \"\"

				-Matt