9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: arisawa <arisawa@ar.aichi-u.ac.jp>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] rc: null list in concatenation
Date: Tue, 25 Nov 2014 17:30:17 +0900	[thread overview]
Message-ID: <DAFEF014-D6DE-4A57-BB09-DAF335018E5C@ar.aichi-u.ac.jp> (raw)
In-Reply-To: <81c18ae059da79eb550d650650fa88c4@india.com>


> 2014/11/25 15:56、trebol@india.com のメール:
> 
> a = `{ls file}^test; echo 'this part is not executed if file doesn''t exist'

probably your question is as follows:

maia% a = `{ls file}^test; echo 'this part is not executed if file doesn''t exist'
ls: file: 'file' directory entry not found
rc: null list in concatenation
maia% 

on the other hand,

maia% ls file;  echo 'this part is not executed if file doesn''t exist'
ls: file: 'file' directory entry not found
this part is not executed if file doesn't exist
maia% 

a similar  thing is:
maia% (aa bb)=aaaa; echo bbbb
rc: variable name not singleton!
maia% 

perhaps this is a feature.
rc stops execution if there is an error in grammar.




  reply	other threads:[~2014-11-25  8:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-25  4:24 trebol
2014-11-25  6:08 ` arisawa
2014-11-25  6:56   ` trebol
2014-11-25  8:30     ` arisawa [this message]
2014-11-25 10:00       ` Charles Forsyth
2014-11-25 19:37         ` trebol
     [not found] <fef8ab0af3b38f58c82f797482943532@india.com>
2014-11-25 20:44 ` trebol
2014-11-25 20:47 ` trebol
2014-11-26  6:34 trebol

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DAFEF014-D6DE-4A57-BB09-DAF335018E5C@ar.aichi-u.ac.jp \
    --to=arisawa@ar.aichi-u.ac.jp \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).