[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange Scheme problem
From: |
David Kastrup |
Subject: |
Re: Strange Scheme problem |
Date: |
Wed, 18 Nov 2015 10:11:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Menu Jacques <address@hidden> writes:
> Hi Andrew,
>
> The definitions I use actually is:
>
> #(define comml (object->string (command-line)))
> #(define loc (+ (string-rindex comml #\space ) 2))
> #(define commllen (- (string-length comml) 2))
> #(define filen (substring comml loc commllen))
> #(define siz (object->string (stat:size (stat filen))))
>
> Need to analyze what happens in detail to loc and commllen when there
> are spaces in the directory name.
(command-line) returns the command line as a list of separate arguments
(including the file name). You mash this into a single line and strip
it into parts again by spaces to figure out the file name.
Why?
--
David Kastrup
- Strange Scheme problem, Menu Jacques, 2015/11/17
- Re: Strange Scheme problem, Gilles THIBAULT, 2015/11/17
- Re: Strange Scheme problem, Menu Jacques, 2015/11/17
- Re: Strange Scheme problem, Andrew Bernard, 2015/11/17
- Re: Strange Scheme problem, Menu Jacques, 2015/11/18
- Re: Strange Scheme problem,
David Kastrup <=
- Re: Strange Scheme problem, Menu Jacques, 2015/11/18
- Re: Strange Scheme problem, Andrew Bernard, 2015/11/18
- Re: Strange Scheme problem, Menu Jacques, 2015/11/18
- Re: Strange Scheme problem, Ralf Mattes, 2015/11/18
- Re: Strange Scheme problem, Andrew Bernard, 2015/11/18
- Re: Strange Scheme problem, David Kastrup, 2015/11/19
Re: Strange Scheme problem, Andrew Bernard, 2015/11/17