Re: [Freedos-user] Set Command

2006-11-28 Thread Arkady V.Belousov
Hi!

28-Ноя-2006 08:59 [EMAIL PROTECTED] (Roberto Mariottini)
wrote to freedos-user@lists.sourceforge.net:

RM> IIRC when command.com parses the command line the first non-filename
RM> character is used to separate the command name from the command line
RM> (the space character is one of them),

 Unfortunately, this is not complete true. For example, compare "echo.",
"echo.exe" and "mycmd.exe" commands.

RM> so the character = after PATH will
RM> break the command from the command line and will be put on the command
RM> line. The PATH command ignores an = at the start of the path list so you
RM> get the "PATH=something" syntax working. Other characters get the same
RM> result (for example "PATH,something") and other are put in front of the
RM> path list (like "PATH;something").

 On the other side, I know programs, which use "=" as valid character in
its command line. So, if add support for "var=val", then this breaks
programs, which expect "=" as first character in command line. Really first
character - if you add space before "=" ("prog =..."), then this adds space
also into command line (in PSP).

RM> Supporting the generic VAR=VALUE assignment (meaning SET VAR=VALUE)
RM> could break old programs that use the = character for special meaning on
RM> the command line (such as old linkers and librarian utilities).

 Yes.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Roberto Mariottini
Hi,

Blair Campbell wrote:
> both are not correct, as the second one would need to be prefixed with SET to 
> work correctly.

The source of the confusion is that PATH is both a command and an 
environment variable. The PATH command sets the PATH environment 
variable, but nothing prevents you from setting the variable with the 
SET command (apart from the different command line length limit).

IIRC when command.com parses the command line the first non-filename 
character is used to separate the command name from the command line 
(the space character is one of them), so the character = after PATH will 
break the command from the command line and will be put on the command 
line. The PATH command ignores an = at the start of the path list so you 
get the "PATH=something" syntax working. Other characters get the same 
result (for example "PATH,something") and other are put in front of the 
path list (like "PATH;something").

Supporting the generic VAR=VALUE assignment (meaning SET VAR=VALUE) 
could break old programs that use the = character for special meaning on 
the command line (such as old linkers and librarian utilities).

Ciao
---
http://www.mariottini.net/roberto/
SuperbCalc: http://www.mariottini.net/roberto/superbcalc/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Arkady V.Belousov
Hi!

27-Ноя-2006 14:26 [EMAIL PROTECTED] (Blair Campbell) wrote to
freedos-user@lists.sourceforge.net:

>> >> BC> So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?
>>  I see no reasons for this (this not adds required/used functionality),
>> especially this will eat extra memory for additional parsing code and may
BC> 3 extra lines in the source code.  Hardly eating extra memory.

 Ok, but I anyway see no reasons.

>> PS: Blair, when you answer about using string instructions in callint()?
BC> It's fine the way it is.

 Ie., you think, readability for callint() is more important than size
and I shouldn't worry?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Blair Campbell
On 11/27/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote:
> Hi!
>
> 27-Ноя-2006 13:14 [EMAIL PROTECTED] (Blair Campbell) wrote to
> freedos-user@lists.sourceforge.net:
>
> >> BC> So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?
> >>  Where you see this? Lester was just ask if this possible or not. No
> one
> >> was discuss adding support for this (except that Eric suggest, that this
> >> feature doesn't supported by current shells).
> BC> I'm asking now.  I never said that anyone else suggested it.
>
>  I see no reasons for this (this not adds required/used functionality),
> especially this will eat extra memory for additional parsing code and may

3 extra lines in the source code.  Hardly eating extra memory.

> introduce incompatibilities into existing parser (which anyway is too
> complex).
>
> >> BC> And according to POSIX, %PWD% is supposed to be set to the current
> >>  If this will be internal function/variable, which will not eat space
> in
> >> environment - why not?
> BC> POSIX says that it should be an environment variable accessable to all
> BC> programs.
>
>  After all, DOS isn't POSIX system and DOS programs don't use/need extra
> garbage in environment. This may be useful _only_ to ease porting sources of
> unix programs to DOS, but there exist more elegant solutions (ie., for these
> programs should be used library/startup, which will modify environment
> statically or on the fly as need - similarly, as many compilers include
> wildargs.obj, which emulate wild characters expansion by shell).
>
> BC> But AFAIK, things like CDPATH are allowed to be internal
> BC> variables.
>
>  Of course.
>
> PS: Blair, when you answer about using string instructions in callint()?

It's fine the way it is.
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Arkady V.Belousov
Hi!

27-Ноя-2006 13:14 [EMAIL PROTECTED] (Blair Campbell) wrote to
freedos-user@lists.sourceforge.net:

>> BC> So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?
>>  Where you see this? Lester was just ask if this possible or not. No one
>> was discuss adding support for this (except that Eric suggest, that this
>> feature doesn't supported by current shells).
BC> I'm asking now.  I never said that anyone else suggested it.

 I see no reasons for this (this not adds required/used functionality),
especially this will eat extra memory for additional parsing code and may
introduce incompatibilities into existing parser (which anyway is too complex).

>> BC> And according to POSIX, %PWD% is supposed to be set to the current
>>  If this will be internal function/variable, which will not eat space in
>> environment - why not?
BC> POSIX says that it should be an environment variable accessable to all
BC> programs.

 After all, DOS isn't POSIX system and DOS programs don't use/need extra
garbage in environment. This may be useful _only_ to ease porting sources of
unix programs to DOS, but there exist more elegant solutions (ie., for these
programs should be used library/startup, which will modify environment
statically or on the fly as need - similarly, as many compilers include
wildargs.obj, which emulate wild characters expansion by shell).

BC> But AFAIK, things like CDPATH are allowed to be internal
BC> variables.

 Of course.

PS: Blair, when you answer about using string instructions in callint()?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Blair Campbell
Well, the source code's already been written, but I'd like a few more
people's OK :-).

On 11/27/06, Florian Xaver <[EMAIL PROTECTED]> wrote:
> I like the idea. Sounds very practical.
>
> Bye
>   Flo
>
>
> On Mon, 27 Nov 2006 22:33:10 +0100, Blair Campbell <[EMAIL PROTECTED]>
> wrote:
>
> > Any particular reason?
> >
> > On 11/27/06, Florian Xaver <[EMAIL PROTECTED]> wrote:
> >> No.
> >>
> >> Bye Flo
> >>
> >>
> >> On Mon, 27 Nov 2006 21:57:21 +0100, Blair Campbell <[EMAIL PROTECTED]>
> >> wrote:
> >>
> >> > So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?
> >> > And according to POSIX, %PWD% is supposed to be set to the current
> >> > directory by CD.  Is anyone against adding these features?
> >> >
> >> > On 11/27/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote:
> >> >> Hi!
> >> >>
> >> >> 27-Ноя-2006 11:38 [EMAIL PROTECTED] (Blair Campbell) wrote to
> >> >> freedos-user@lists.sourceforge.net:
> >> >>
> >> >> BC> Well I don't understand why PATH=blah blah would be accepted but
> >> >> BC> HELLO=blah blah wouldn't work.
> >> >> >> >> L> PATH %DOSDIR%\BIN
> >> >> >> >> L> PATH=%DOSDIR%\BIN
> >> >> >>  Both are accepted by MS-command.com and FreeCom. Which other
> >> >> criteria
> >> >> >> for "correct" here you offer?
> >> >>
> >> >>  Who says about "HELLO="? We discuss "PATH " and "PATH=".
> >> >>
> >> >> PS: As I understand, this is another bug/feature, like "cd.." and
> >> >> "echo.".
> >> >>
> >> >>
> >> -
> >> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> >> Join SourceForge.net's Techsay panel and you'll get the chance to
> >> share
> >> >> your
> >> >> opinions on IT & business topics through brief surveys - and earn
> >> cash
> >> >>
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> >> ___
> >> >> Freedos-user mailing list
> >> >> Freedos-user@lists.sourceforge.net
> >> >> https://lists.sourceforge.net/lists/listinfo/freedos-user
> >> >>
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Florian Xaver
> >>
> >> Webdesign, Sword (DOS GUI), personal site: 
> >> oZone - desktop enviroment  f. DOS, Win, Linux: 
> >> Blutrausch - Wiki zum Kultfilm: 
> >> Dr-DOS  Wiki: 
> >>
> >> -
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> your
> >> opinions on IT & business topics through brief surveys - and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> ___
> >> Freedos-user mailing list
> >> Freedos-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/freedos-user
> >>
> >
> >
>
>
>
> --
> Florian Xaver
>
> Webdesign, Sword (DOS GUI), personal site: 
> oZone - desktop enviroment  f. DOS, Win, Linux: 
> Blutrausch - Wiki zum Kultfilm: 
> Dr-DOS  Wiki: 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Florian Xaver
I like the idea. Sounds very practical.

Bye
  Flo


On Mon, 27 Nov 2006 22:33:10 +0100, Blair Campbell <[EMAIL PROTECTED]>  
wrote:

> Any particular reason?
>
> On 11/27/06, Florian Xaver <[EMAIL PROTECTED]> wrote:
>> No.
>>
>> Bye Flo
>>
>>
>> On Mon, 27 Nov 2006 21:57:21 +0100, Blair Campbell <[EMAIL PROTECTED]>
>> wrote:
>>
>> > So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?
>> > And according to POSIX, %PWD% is supposed to be set to the current
>> > directory by CD.  Is anyone against adding these features?
>> >
>> > On 11/27/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote:
>> >> Hi!
>> >>
>> >> 27-Ноя-2006 11:38 [EMAIL PROTECTED] (Blair Campbell) wrote to
>> >> freedos-user@lists.sourceforge.net:
>> >>
>> >> BC> Well I don't understand why PATH=blah blah would be accepted but
>> >> BC> HELLO=blah blah wouldn't work.
>> >> >> >> L> PATH %DOSDIR%\BIN
>> >> >> >> L> PATH=%DOSDIR%\BIN
>> >> >>  Both are accepted by MS-command.com and FreeCom. Which other
>> >> criteria
>> >> >> for "correct" here you offer?
>> >>
>> >>  Who says about "HELLO="? We discuss "PATH " and "PATH=".
>> >>
>> >> PS: As I understand, this is another bug/feature, like "cd.." and
>> >> "echo.".
>> >>
>> >>  
>> -
>> >> Take Surveys. Earn Cash. Influence the Future of IT
>> >> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share
>> >> your
>> >> opinions on IT & business topics through brief surveys - and earn  
>> cash
>> >>  
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> >> ___
>> >> Freedos-user mailing list
>> >> Freedos-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/freedos-user
>> >>
>> >
>> >
>>
>>
>>
>> --
>> Florian Xaver
>>
>> Webdesign, Sword (DOS GUI), personal site: 
>> oZone - desktop enviroment  f. DOS, Win, Linux: 
>> Blutrausch - Wiki zum Kultfilm: 
>> Dr-DOS  Wiki: 
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share  
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Freedos-user mailing list
>> Freedos-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freedos-user
>>
>
>



-- 
Florian Xaver

Webdesign, Sword (DOS GUI), personal site: 
oZone - desktop enviroment  f. DOS, Win, Linux: 
Blutrausch - Wiki zum Kultfilm: 
Dr-DOS  Wiki: 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Blair Campbell
Any particular reason?

On 11/27/06, Florian Xaver <[EMAIL PROTECTED]> wrote:
> No.
>
> Bye Flo
>
>
> On Mon, 27 Nov 2006 21:57:21 +0100, Blair Campbell <[EMAIL PROTECTED]>
> wrote:
>
> > So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?
> > And according to POSIX, %PWD% is supposed to be set to the current
> > directory by CD.  Is anyone against adding these features?
> >
> > On 11/27/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote:
> >> Hi!
> >>
> >> 27-Ноя-2006 11:38 [EMAIL PROTECTED] (Blair Campbell) wrote to
> >> freedos-user@lists.sourceforge.net:
> >>
> >> BC> Well I don't understand why PATH=blah blah would be accepted but
> >> BC> HELLO=blah blah wouldn't work.
> >> >> >> L> PATH %DOSDIR%\BIN
> >> >> >> L> PATH=%DOSDIR%\BIN
> >> >>  Both are accepted by MS-command.com and FreeCom. Which other
> >> criteria
> >> >> for "correct" here you offer?
> >>
> >>  Who says about "HELLO="? We discuss "PATH " and "PATH=".
> >>
> >> PS: As I understand, this is another bug/feature, like "cd.." and
> >> "echo.".
> >>
> >> -
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >> your
> >> opinions on IT & business topics through brief surveys - and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> ___
> >> Freedos-user mailing list
> >> Freedos-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/freedos-user
> >>
> >
> >
>
>
>
> --
> Florian Xaver
>
> Webdesign, Sword (DOS GUI), personal site: 
> oZone - desktop enviroment  f. DOS, Win, Linux: 
> Blutrausch - Wiki zum Kultfilm: 
> Dr-DOS  Wiki: 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Florian Xaver
No.

Bye Flo


On Mon, 27 Nov 2006 21:57:21 +0100, Blair Campbell <[EMAIL PROTECTED]>  
wrote:

> So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?
> And according to POSIX, %PWD% is supposed to be set to the current
> directory by CD.  Is anyone against adding these features?
>
> On 11/27/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote:
>> Hi!
>>
>> 27-Ноя-2006 11:38 [EMAIL PROTECTED] (Blair Campbell) wrote to
>> freedos-user@lists.sourceforge.net:
>>
>> BC> Well I don't understand why PATH=blah blah would be accepted but
>> BC> HELLO=blah blah wouldn't work.
>> >> >> L> PATH %DOSDIR%\BIN
>> >> >> L> PATH=%DOSDIR%\BIN
>> >>  Both are accepted by MS-command.com and FreeCom. Which other
>> criteria
>> >> for "correct" here you offer?
>>
>>  Who says about "HELLO="? We discuss "PATH " and "PATH=".
>>
>> PS: As I understand, this is another bug/feature, like "cd.." and  
>> "echo.".
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share  
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Freedos-user mailing list
>> Freedos-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freedos-user
>>
>
>



-- 
Florian Xaver

Webdesign, Sword (DOS GUI), personal site: 
oZone - desktop enviroment  f. DOS, Win, Linux: 
Blutrausch - Wiki zum Kultfilm: 
Dr-DOS  Wiki: 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Blair Campbell
On 11/27/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote:
> Hi!
>
> 27-Ноя-2006 12:57 [EMAIL PROTECTED] (Blair Campbell) wrote to
> freedos-user@lists.sourceforge.net:
>
> >>  Who says about "HELLO="? We discuss "PATH " and "PATH=".
> >> PS: As I understand, this is another bug/feature, like "cd.." and
> "echo.".
> BC> So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?
>
>  Where you see this? Lester was just ask if this possible or not. No one
> was discuss adding support for this (except that Eric suggest, that this
> feature doesn't supported by current shells).

I'm asking now.  I never said that anyone else suggested it.
>
> BC> And according to POSIX, %PWD% is supposed to be set to the current
> BC> directory by CD.  Is anyone against adding these features?
>
>  If this will be internal function/variable, which will not eat space in
> environment - why not?

POSIX says that it should be an environment variable accessable to all
programs.  But AFAIK, things like CDPATH are allowed to be internal
variables.
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Arkady V.Belousov
Hi!

27-Ноя-2006 12:57 [EMAIL PROTECTED] (Blair Campbell) wrote to
freedos-user@lists.sourceforge.net:

>>  Who says about "HELLO="? We discuss "PATH " and "PATH=".
>> PS: As I understand, this is another bug/feature, like "cd.." and "echo.".
BC> So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?

 Where you see this? Lester was just ask if this possible or not. No one
was discuss adding support for this (except that Eric suggest, that this
feature doesn't supported by current shells).

BC> And according to POSIX, %PWD% is supposed to be set to the current
BC> directory by CD.  Is anyone against adding these features?

 If this will be internal function/variable, which will not eat space in
environment - why not?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Blair Campbell
So who is for making HELLO=blah equal to SET HELLO=blah in FreeCOM?
And according to POSIX, %PWD% is supposed to be set to the current
directory by CD.  Is anyone against adding these features?

On 11/27/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote:
> Hi!
>
> 27-Ноя-2006 11:38 [EMAIL PROTECTED] (Blair Campbell) wrote to
> freedos-user@lists.sourceforge.net:
>
> BC> Well I don't understand why PATH=blah blah would be accepted but
> BC> HELLO=blah blah wouldn't work.
> >> >> L> PATH %DOSDIR%\BIN
> >> >> L> PATH=%DOSDIR%\BIN
> >>  Both are accepted by MS-command.com and FreeCom. Which other
> criteria
> >> for "correct" here you offer?
>
>  Who says about "HELLO="? We discuss "PATH " and "PATH=".
>
> PS: As I understand, this is another bug/feature, like "cd.." and "echo.".
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Arkady V.Belousov
Hi!

27-Ноя-2006 11:38 [EMAIL PROTECTED] (Blair Campbell) wrote to
freedos-user@lists.sourceforge.net:

BC> Well I don't understand why PATH=blah blah would be accepted but
BC> HELLO=blah blah wouldn't work.
>> >> L> PATH %DOSDIR%\BIN
>> >> L> PATH=%DOSDIR%\BIN
>>  Both are accepted by MS-command.com and FreeCom. Which other criteria
>> for "correct" here you offer?

 Who says about "HELLO="? We discuss "PATH " and "PATH=".

PS: As I understand, this is another bug/feature, like "cd.." and "echo.".

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Blair Campbell
Well I don't understand why PATH=blah blah would be accepted but
HELLO=blah blah wouldn't work.

On 11/27/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote:
> Hi!
>
> 27-Ноя-2006 11:16 [EMAIL PROTECTED] (Blair Campbell) wrote to
> freedos-user@lists.sourceforge.net:
>
> BC> both are not correct, as the second one would need to be prefixed with
> BC> SET to work correctly.
> >> L> PATH %DOSDIR%\BIN
> >> L> PATH=%DOSDIR%\BIN
> >>  Both.
>
>  Both are accepted by MS-command.com and FreeCom. Which other criteria
> for "correct" here you offer?
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Arkady V.Belousov
Hi!

27-Ноя-2006 11:16 [EMAIL PROTECTED] (Blair Campbell) wrote to
freedos-user@lists.sourceforge.net:

BC> both are not correct, as the second one would need to be prefixed with
BC> SET to work correctly.
>> L> PATH %DOSDIR%\BIN
>> L> PATH=%DOSDIR%\BIN
>>  Both.

 Both are accepted by MS-command.com and FreeCom. Which other criteria
for "correct" here you offer?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Blair Campbell
both are not correct, as the second one would need to be prefixed with
SET to work correctly.

On 11/27/06, Arkady V.Belousov <[EMAIL PROTECTED]> wrote:
> Hi!
>
> 26-Ноя-2006 04:25 [EMAIL PROTECTED] (Lester) wrote to
> freedos-user@lists.sourceforge.net:
>
> L> Ok, and now, which syntax is correct:
> L> PATH %DOSDIR%\BIN
> L> or
> L> PATH=%DOSDIR%\BIN
>
>  Both.
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Arkady V.Belousov
Hi!

26-Ноя-2006 04:25 [EMAIL PROTECTED] (Lester) wrote to
freedos-user@lists.sourceforge.net:

L> Ok, and now, which syntax is correct:
L> PATH %DOSDIR%\BIN
L> or
L> PATH=%DOSDIR%\BIN

 Both.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-27 Thread Lester
Here is Eric's comment (sent by private email). I decided to post it here 
because someone else might find it useful as well.

-
L: which version of the following commands in Fdauto.bat is correct?

Eric:
- version 1 is correct

- version 2: dos has no way to know that "temp" is not the name of a 
command

- version 3: could conceivably be supported, if it is defined that = 
signs must not be part of command names. However, no command.com that i 
know of does support this syntax yet

version #1:

SET DOSDIR=D:\FDOS
SET NLSDIR=%DOSDIR%\NLS
SET HELPPATH=%DOSDIR%\HELP
SET PATH=%DOSDIR%\BIN
SET TEMP=E:\TEMP
SET TMP=E:\TEMP
SET DIRCMD=/P /OG /A

version #2:

DOSDIR D:\FDOS
NLSDIR %DOSDIR%\NLS
HELPPATH %DOSDIR%\HELP
PATH %DOSDIR%\BIN
TEMP E:\TEMP
TMP E:\TEMP
DIRCMD /P /OG /A

version #3:

DOSDIR=D:\FDOS
NLSDIR=%DOSDIR%\NLS
HELPPATH=%DOSDIR%\HELP
PATH=%DOSDIR%\BIN
TEMP=E:\TEMP
TMP=E:\TEMP
DIRCMD=/P /OG /A

-


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-25 Thread Blair Campbell
Of course, just for the record, SET PATH=blah blah blah does exactly
the same thing and works just as well.

On 11/25/06, Lester <[EMAIL PROTECTED]> wrote:
> >> L: ok and now, which syntax is correct:
> >>
> >> PATH %DOSDIR%\BIN
> >>
> >> or
> >>
> >> PATH=%DOSDIR%\BIN
>
> > Blair: I can quote my previous response to answer that:
>
> PATH %DOSDIR%\BIN
>
> Thanks for clarification.
>
> Lester
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-25 Thread Lester
>> L: ok and now, which syntax is correct:
>>
>> PATH %DOSDIR%\BIN
>>
>> or
>>
>> PATH=%DOSDIR%\BIN

> Blair: I can quote my previous response to answer that:

PATH %DOSDIR%\BIN

Thanks for clarification.

Lester


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-25 Thread Blair Campbell
I can quote my previous response to answer that:
PATH %DOSDIR%\BIN;...

On 11/25/06, Lester <[EMAIL PROTECTED]> wrote:
> Thanks, everyone. Sorry that my original question wasn't very clear.
> Arkady somehow managed to get what I really meant. To clarify, the
> question should have been posted as:
>
> which version of the following commands in Fdauto.bat is correct?
>
> version #1:
>
> SET DOSDIR=D:\FDOS
> SET NLSDIR=%DOSDIR%\NLS
> SET HELPPATH=%DOSDIR%\HELP
> SET PATH=%DOSDIR%\BIN
> SET TEMP=E:\TEMP
> SET TMP=E:\TEMP
> SET DIRCMD=/P /OG /A
>
> version #2:
>
> DOSDIR D:\FDOS
> NLSDIR %DOSDIR%\NLS
> HELPPATH %DOSDIR%\HELP
> PATH %DOSDIR%\BIN
> TEMP E:\TEMP
> TMP E:\TEMP
> DIRCMD /P /OG /A
>
> version #3:
>
> DOSDIR=D:\FDOS
> NLSDIR=%DOSDIR%\NLS
> HELPPATH=%DOSDIR%\HELP
> PATH=%DOSDIR%\BIN
> TEMP=E:\TEMP
> TMP=E:\TEMP
> DIRCMD=/P /OG /A
>
> And here is Arkady's answer:
>
> > "SET" isn't required only for PROMPT and PATH.
>
> Ok, and now, which syntax is correct:
>
> PATH %DOSDIR%\BIN
>
> or
>
> PATH=%DOSDIR%\BIN
>
> Lester
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-25 Thread Lester
Thanks, everyone. Sorry that my original question wasn't very clear. 
Arkady somehow managed to get what I really meant. To clarify, the 
question should have been posted as:

which version of the following commands in Fdauto.bat is correct?

version #1:

SET DOSDIR=D:\FDOS
SET NLSDIR=%DOSDIR%\NLS
SET HELPPATH=%DOSDIR%\HELP
SET PATH=%DOSDIR%\BIN
SET TEMP=E:\TEMP
SET TMP=E:\TEMP
SET DIRCMD=/P /OG /A

version #2:

DOSDIR D:\FDOS
NLSDIR %DOSDIR%\NLS
HELPPATH %DOSDIR%\HELP
PATH %DOSDIR%\BIN
TEMP E:\TEMP
TMP E:\TEMP
DIRCMD /P /OG /A

version #3:

DOSDIR=D:\FDOS
NLSDIR=%DOSDIR%\NLS
HELPPATH=%DOSDIR%\HELP
PATH=%DOSDIR%\BIN
TEMP=E:\TEMP
TMP=E:\TEMP
DIRCMD=/P /OG /A

And here is Arkady's answer:

> "SET" isn't required only for PROMPT and PATH.

Ok, and now, which syntax is correct:

PATH %DOSDIR%\BIN

or

PATH=%DOSDIR%\BIN

Lester


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-25 Thread Arkady V.Belousov
Hi!

25-Ноя-2006 10:28 [EMAIL PROTECTED] (Lester) wrote to
freedos-user@lists.sourceforge.net:

L> In my Fdauto.bat I've always had SET command everywhere. Someone has just
L> pointed out that I could probably skip SET in most (all?) of the lines.

 "SET" isn't required only for PROMPT and PATH.

L> I have even come across a notion that in ms-dos "set was used to set
L> other environment variables/parameters but not the path".

 Wrong.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Set Command

2006-11-25 Thread Blair Campbell
Hi.  All of the environment variables that you use above are used in
FreeDOS apps, so depending on what you want out of FreeDOS you _do_
need those set lines.  DOSDIR is used for fdpkg to install new
packages, NLSDIR is used by kittenized apps to locate translated
messages, HELPPATH is used by HELP to locate its help files, PATH is
used to find utilities not in the current directory (obvious), TEMP
and TMP are used by a variety of apps FreeDOS and non-FreeDOS to make
temporary files, and DIRCMD is used by FreeCOM to specify options to
use for DIR every time it is run.  TMPPATH could even be in there as
well, because unix programs ported to DOS use this instead of TEMP or
TMP to create temporary files.

As for the PATH thing, in MSDOS SET PATH worked fine, but there was
also a PATH command which would just have the syntax of "PATH
C:\FDOS\BIN;...".  That just sets the environment variable PATH
exactly the same way as SET though.

On 11/25/06, Lester <[EMAIL PROTECTED]> wrote:
> In my Fdauto.bat I've always had SET command everywhere. Someone has just
> pointed out that I could probably skip SET in most (all?) of the lines.
> I have even come across a notion that in ms-dos "set was used to set
> other environment variables/parameters but not the path".
>
> Tnx, Lester
>
> --
> Fdauto.bat
>
> @ECHO OFF
> PROMPT $P$G
> SET DOSDIR=D:\FDOS
> SET NLSDIR=%DOSDIR%\NLS
> SET HELPPATH=%DOSDIR%\HELP
> SET PATH=%DOSDIR%\BIN
> SET TEMP=E:\TEMP
> SET TMP=E:\TEMP
> SET DIRCMD=/P /OG /A
> SRDISK.EXE 8192
> SHCDX33C /D:?CDRCACH$ /V /~+ /Q+
> CTMOUSE.EXE
> ECHO CuteMouse Driver Loaded
> FREE.EXE
> --
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freedos-user mailing list
> Freedos-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-user
>


-- 
Fall is my favorite season in Los Angeles, watching the birds change
color and fall from the trees.
   David Letterman (1947 - )

See ya

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


[Freedos-user] Set Command

2006-11-25 Thread Lester
In my Fdauto.bat I've always had SET command everywhere. Someone has just 
pointed out that I could probably skip SET in most (all?) of the lines. 
I have even come across a notion that in ms-dos "set was used to set 
other environment variables/parameters but not the path".

Tnx, Lester

--
Fdauto.bat

@ECHO OFF
PROMPT $P$G
SET DOSDIR=D:\FDOS
SET NLSDIR=%DOSDIR%\NLS
SET HELPPATH=%DOSDIR%\HELP
SET PATH=%DOSDIR%\BIN
SET TEMP=E:\TEMP
SET TMP=E:\TEMP
SET DIRCMD=/P /OG /A
SRDISK.EXE 8192
SHCDX33C /D:?CDRCACH$ /V /~+ /Q+
CTMOUSE.EXE
ECHO CuteMouse Driver Loaded
FREE.EXE
--


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user