[Freedos-user] Long pathnames in freedos

2007-04-14 Thread Lee Jones
Hello all,

Can anyone tell me if it is possible to use a long path name in
freedos at all? The reason I'm trying to do this is I'm making a small
install of freedos onto a partition of my HD here. I'm trying to put
some of the programs, drivers, etc. into their own
directories/subdirectories and then using the freedos path command to
hook it all together, but my path is too long! Here's what it looks
like so far;

C:\fdos\root\base
C:\fdos\root\drv\usb
c:\fdos\root\drv\ansi
c:\fdos\root\drv\kybd
c:\fdos\root\drv\ansi
c:\fdos\root\drv\cdrom
c:\fdos\root\drv\memory
c:\fdos\root\drv\mouse
c:\fdos\root\drv\audio
c:\fdos\root\drv\video
c:\fdos\root\apps\devel\djgpp
c:\fdos\root\apps\devel\lua
c:\fdos\root\apps\cmpress
c:\fdos\root\apps\cdrw
c:\fdos\root\apps\jpeg
c:\fdos\root\apps\maths
c:\fdos\root\apps\www
c:\fdos\root\apps\gem\gemapps\gemsys

(normally this is all on 1 line and seperated by ; 's ) .

freedos' path can't take this x.x but I was wondering if a dos-based
version of BASH could? Unfortunatly I could only find an ancient
version of bash for dos, version 2.05 was the newest.

Thanks for any help

ljones

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freedos-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Long pathnames in freedos

2007-04-14 Thread Eric Auer

Hi Lee,

actually your PATH -can- be very long, but the length
of each line in your autoexec is limited. You could do sth like

set path=C:\fdos\root\base
set path=%path%;C:\fdos\root\drv\usb
set path=%path%;c:\fdos\root\drv\ansi

You would also have to tell command.com to reserve lots of
space for env vars (E option in config sys SHELL... line).

Plus of course the long path will also make searching for
binaries very slow. Remember that BASH stores a hashtable
of all binary paths found so far (sometimes forcing you to
type rehash when you rename executables), while command.com
just looks at all directories in the path each time.

A more efficient way would be to put the binaries in
fewer directories and/or put batch files there (or
alias definitions in autoexec) to point to where
you have your binaries now.

Eric

PS: I remastered fdbasecd to make a new 8 MB ISO which now
boots even on my PC. If anybody wants a copy, let me know.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freedos-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] Long pathnames in freedos

2007-04-14 Thread Lee Jones
On 4/14/07, Eric Auer [EMAIL PROTECTED] wrote:

 Hi Lee,

 actually your PATH -can- be very long, but the length
 of each line in your autoexec is limited. You could do sth like

 set path=C:\fdos\root\base
 set path=%path%;C:\fdos\root\drv\usb
 set path=%path%;c:\fdos\root\drv\ansi

 You would also have to tell command.com to reserve lots of
 space for env vars (E option in config sys SHELL... line).

 Plus of course the long path will also make searching for
 binaries very slow. Remember that BASH stores a hashtable
 of all binary paths found so far (sometimes forcing you to
 type rehash when you rename executables), while command.com
 just looks at all directories in the path each time.

 A more efficient way would be to put the binaries in
 fewer directories and/or put batch files there (or
 alias definitions in autoexec) to point to where
 you have your binaries now.

 Eric

 PS: I remastered fdbasecd to make a new 8 MB ISO which now
 boots even on my PC. If anybody wants a copy, let me know.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Freedos-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/freedos-user


It almost worked but I got a lot of this message;

Commandline longer than 125 characters

I looked at some of the options for command.com such as /U and /L (/E
worked) but I got an error saying Not implemented yet

x.x

ljones

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freedos-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-user