delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/22/15:07:20

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
From: "Stephano Mariani" <sk DOT mail AT btinternet DOT com>
To: "'Bacon, Ray'" <ray DOT bacon AT missouri DOT edu>, <cygwin AT cygwin DOT com>
Subject: RE: Converting forward slashes to backward slashes
Date: Fri, 22 Feb 2002 20:06:24 -0000
Message-ID: <00c601c1bbdc$6813eca0$01000001@sknet01>
MIME-Version: 1.0
X-Priority: 1 (Highest)
X-MSMail-Priority: High
X-Mailer: Microsoft Outlook, Build 10.0.2616
In-Reply-To: <44D2ED0AC0121146BF01366481060EBE034D7789@umc-mail02.missouri.edu>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: High

alias spss="spss $(cygpath -w $(pwd))\\" or something to that effect

Stephano Mariani

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
Behalf Of Bacon, Ray
> Sent: Friday, 22 February 2002 7 58
> To: cygwin AT cygwin DOT com
> Subject: Converting forward slashes to backward slashes
> 
> I appologize in advance if there is an all too obvious answer to this
> question.
> 
> 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