delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/22/16:34:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <04cd01c1bbe7$96b04b20$f400a8c0@mchasecompaq>
From: "Michael A Chase" <mchase AT ix DOT netcom DOT com>
To: "Bacon, Ray" <ray DOT bacon AT missouri DOT edu>, <cygwin AT cygwin DOT com>
References: <44D2ED0AC0121146BF01366481060EBE034D7789 AT umc-mail02 DOT missouri DOT edu> <047101c1bbe1$73fcaf20$f400a8c0 AT mchasecompaq>
Subject: Re: Converting forward slashes to backward slashes
Date: Fri, 22 Feb 2002 13:12:19 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Woops.  I forgot that I cached a local copy of
http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html and its dependents.  Look
there instead of under /usr/doc/.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "Michael A Chase" <mchase AT ix DOT netcom DOT com>
To: "Bacon, Ray" <ray DOT bacon AT missouri DOT edu>; <cygwin AT cygwin DOT com>
Sent: Friday, February 22, 2002 12:32
Subject: Re: Converting forward slashes to backward slashes


> Under bash, a function would allow you more flexibility:
>
> # Call with file name with or without the .sps on the end
> function do_spss {
>    file=$(cygpath -a -w ${1%.srs})
>    spss -f "$file.sps" > $file.lst
> }
>
> This would also let you use relative Cygwin paths for the program file
name.
> There are several interesting utilities available under Cygwin to make
this
> sort of thing easier.  Look under /usr/doc/cygwin-ug-net/ for basic
> documentation.  Running the commands with --help is also useful.
> --
> Mac :})
> ** I normally forward private questions to the appropriate mail list. **
> Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
> Give a hobbit a fish and he eats fish for a day.
> Give a hobbit a ring and he eats fish for an age.
> ----- Original Message -----
> From: "Bacon, Ray" <ray DOT bacon AT missouri DOT edu>
> To: <cygwin AT cygwin DOT com>
> Sent: Friday, February 22, 2002 11:58
> Subject: Converting forward slashes to backward slashes
>
>
> We have installed a statistical programing language called SPSS within
> the  CYGWIN environment. Programs run in this language execute without
> any problems. However, the SPSS compiler isn't smart enough to
> recoginize that you are trying to execute a program from within the
> current directory. Therefore, on the flag that specifies the program
> to run, you have to specify the entire path to that program file.
> Fruthermore, it is necessary to use use \'s instead of /'s when
> specifing the file name.
>
> Example
>
> spss -f C:\cygwin\home\frogpond\programname.sps > programname.lst
>
> I have found a way using an alias to append the path of the current
> directory to the -f flag.
>
> i.e.
>
> alias spss 'spss -f C:/cygwin`pwd`/'
>
> Then 'theoritically' all a person would need to do is issue the
> following comand to run the program.
>
> spss programname.sps>programname.lst
>
> However as you may have noticed, my alias uses /'s instead of \'s for
> the path. This is due to the fact that the `pwd` command returns a
> path with /'s as seperators. This works great in dynamicly identifying
> the current path. However, SPSS does not consider it a valid path, it
> requires a \ style path.
>
> I am a new CYGWIN users. I have read that CYGWIN has some built-in
> functionality to convert /'s to \'s. However, that functionality is
> not passed through to a flag on an executable.
>
> Can anyone think of a way to append the current path to the file?
>
>
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019