* unix command
@ 2004-09-21 21:33 Claudia Neumann
2004-09-22 9:33 ` Bart Oldeman
0 siblings, 1 reply; 3+ messages in thread
From: Claudia Neumann @ 2004-09-21 21:33 UTC (permalink / raw)
To: linux-msdos
Hi folks,
DOSemu 1.2.2 runs nice with my DOS programs. But I need your advice with this
problem:
I want to unzip a zip-file in DOSemu using the command
unix unzip file.zip
This fails because unix changes to /home/user and leaves unzip looking for
file.zip in /home/user instead of /home/user/dosemu/freedos/tmp. How can I
change the behavior of the command "unix" so that it remains in the current
DOSemu directory?
cu
Claudia
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unix command
2004-09-21 21:33 unix command Claudia Neumann
@ 2004-09-22 9:33 ` Bart Oldeman
2004-09-22 11:13 ` Claudia Neumann
0 siblings, 1 reply; 3+ messages in thread
From: Bart Oldeman @ 2004-09-22 9:33 UTC (permalink / raw)
To: Claudia Neumann; +Cc: linux-msdos
On Tue, 21 Sep 2004, Claudia Neumann wrote:
> This fails because unix changes to /home/user
It doesn't change to there, it simply isn't aware of the current DOS
directory. /home/user would be the directory you were in when you started
DOSEMU.
> and leaves unzip looking for
> file.zip in /home/user instead of /home/user/dosemu/freedos/tmp. How can I
> change the behavior of the command "unix" so that it remains in the current
> DOSemu directory?
"unix" would have to do some funny tricks, borrowing from MFS to translate
the DOS dirname to a Linux dirname. It would not always work either -- how
about
unix ls c:foo d:bar
Because unix can't parse DOS command lines reliably.
That said, there exists a workaround, uchdir.
uchdir /home/user/dosemu/freedos/tmp
unix unzip file.zip
does the job.
Bart
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unix command
2004-09-22 9:33 ` Bart Oldeman
@ 2004-09-22 11:13 ` Claudia Neumann
0 siblings, 0 replies; 3+ messages in thread
From: Claudia Neumann @ 2004-09-22 11:13 UTC (permalink / raw)
To: linux-msdos
Am Mittwoch, 22. September 2004 11:33 schrieben Sie:
> "unix" would have to do some funny tricks, borrowing from MFS to translate
> the DOS dirname to a Linux dirname. It would not always work either -- how
> about
> unix ls c:foo d:bar
> Because unix can't parse DOS command lines reliably.
>
> That said, there exists a workaround, uchdir.
>
> uchdir /home/user/dosemu/freedos/tmp
> unix unzip file.zip
Mmh, my intention was a script, which could be used in several different
directories. uchdir wouldn't make a difference. Then I could say
unix unzip /home/user/dosemu/freedos/tmp/file.zip
-d /home/user/dosemu/freedos/tmp
Is there no way to tell unix the linux directory it is in at the moment?
unix pwd
gives /home/user
Certainly DOSemu knows the linux directory.
cu
Claudia
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-09-22 11:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-21 21:33 unix command Claudia Neumann
2004-09-22 9:33 ` Bart Oldeman
2004-09-22 11:13 ` Claudia Neumann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox