* [9fans] sam & filenames containing whitespace
@ 2008-10-15 12:25 Steve Simon
2008-10-22 12:53 ` Rudolf Sykora
2008-10-22 12:55 ` Rudolf Sykora
0 siblings, 2 replies; 5+ messages in thread
From: Steve Simon @ 2008-10-15 12:25 UTC (permalink / raw)
To: 9fans
Hi,
I am trying to work with files containing whitespace,
many programs in plan9 are happy with this but sam and B
don't appear to be (unless I have broken somthing).
I can fix the buglet in B (some string flattening) but
a cursory look at the sam source and it seems to support
delimiters in commands (e.g. B "file with spaces in it.txt").
however I cannot open files with whitespace in their names
even if it type them in in the sam command windows.
am I missing somthing or is this a real bug?
-Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] sam & filenames containing whitespace
2008-10-15 12:25 [9fans] sam & filenames containing whitespace Steve Simon
@ 2008-10-22 12:53 ` Rudolf Sykora
2008-10-22 12:55 ` Rudolf Sykora
1 sibling, 0 replies; 5+ messages in thread
From: Rudolf Sykora @ 2008-10-22 12:53 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
2008/10/15 Steve Simon <steve@quintile.net>:
> Hi,
>
> I am trying to work with files containing whitespace,
> many programs in plan9 are happy with this but sam and B
> don't appear to be (unless I have broken somthing).
>
> I can fix the buglet in B (some string flattening) but
> a cursory look at the sam source and it seems to support
> delimiters in commands (e.g. B "file with spaces in it.txt").
>
> however I cannot open files with whitespace in their names
> even if it type them in in the sam command windows.
>
> am I missing somthing or is this a real bug?
>
> -Steve
>
So does anybody know? I don't. :(
Ruda
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] sam & filenames containing whitespace
2008-10-15 12:25 [9fans] sam & filenames containing whitespace Steve Simon
2008-10-22 12:53 ` Rudolf Sykora
@ 2008-10-22 12:55 ` Rudolf Sykora
2008-10-22 15:09 ` Rob Pike
1 sibling, 1 reply; 5+ messages in thread
From: Rudolf Sykora @ 2008-10-22 12:55 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
2008/10/15 Steve Simon <steve@quintile.net>:
> Hi,
>
> I am trying to work with files containing whitespace,
> many programs in plan9 are happy with this but sam and B
> don't appear to be (unless I have broken somthing).
>
> I can fix the buglet in B (some string flattening) but
> a cursory look at the sam source and it seems to support
> delimiters in commands (e.g. B "file with spaces in it.txt").
>
> however I cannot open files with whitespace in their names
> even if it type them in in the sam command windows.
>
> am I missing somthing or is this a real bug?
>
> -Steve
>
So does anybody know? I don't. :(
Ruda
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] sam & filenames containing whitespace
2008-10-22 12:55 ` Rudolf Sykora
@ 2008-10-22 15:09 ` Rob Pike
2008-10-22 15:29 ` Gorka Guardiola
0 siblings, 1 reply; 5+ messages in thread
From: Rob Pike @ 2008-10-22 15:09 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Sam cannot handle file names with spaces. There is one way to
work around this that I can think of without renaming the file. Make
a new buffer with nothing in it. ("B " without the quotes is how you
do that.) Then
<cat 'a b'
edit
,>cat > 'a b'
Clunky but so be it. Sam comes from a system where spaces in
file names made no sense.
-rob
On Wed, Oct 22, 2008 at 5:55 AM, Rudolf Sykora <rudolf.sykora@gmail.com> wrote:
> 2008/10/15 Steve Simon <steve@quintile.net>:
>> Hi,
>>
>> I am trying to work with files containing whitespace,
>> many programs in plan9 are happy with this but sam and B
>> don't appear to be (unless I have broken somthing).
>>
>> I can fix the buglet in B (some string flattening) but
>> a cursory look at the sam source and it seems to support
>> delimiters in commands (e.g. B "file with spaces in it.txt").
>>
>> however I cannot open files with whitespace in their names
>> even if it type them in in the sam command windows.
>>
>> am I missing somthing or is this a real bug?
>>
>> -Steve
>>
>
> So does anybody know? I don't. :(
> Ruda
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] sam & filenames containing whitespace
2008-10-22 15:09 ` Rob Pike
@ 2008-10-22 15:29 ` Gorka Guardiola
0 siblings, 0 replies; 5+ messages in thread
From: Gorka Guardiola @ 2008-10-22 15:29 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On Wed, Oct 22, 2008 at 5:09 PM, Rob Pike <robpike@gmail.com> wrote:
> <cat 'a b'
> edit
> ,>cat > 'a b'
>
> Clunky but so be it. Sam comes from a system where spaces in
> file names made no sense.
>
> -rob
>
Another solution is to use trfs(4)
http://planb.lsub.org/magic/man2html/4/trfs
--
- curiosity sKilled the cat
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-22 15:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-15 12:25 [9fans] sam & filenames containing whitespace Steve Simon
2008-10-22 12:53 ` Rudolf Sykora
2008-10-22 12:55 ` Rudolf Sykora
2008-10-22 15:09 ` Rob Pike
2008-10-22 15:29 ` Gorka Guardiola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).