curl - sys env vars in a curl statement

2016-08-08 Thread bruce
hey peeps!! Got a prob, and maybe I'm just tired. As far as I can tell, sys env vars should be double quoted >"< inside a curl. I've got the following couple of statements. The curls pretty much work except the last curl, where I can't be sure exactly what the data for the post is, as I can't dis

Re: curl - sys env vars in a curl statement

2016-08-08 Thread Cameron Simpson
On 08Aug2016 17:13, bruce wrote: Got a prob, and maybe I'm just tired. As far as I can tell, sys env vars should be double quoted >"< inside a curl. No. What you have is a shell syntax issue: the quoting of a string affects what the shell will do to it _before_ the command is issued. So:

Re: curl - sys env vars in a curl statement

2016-08-08 Thread Joe Zeff
On 08/08/2016 04:12 PM, Cameron Simpson wrote: >1aa.lwp on its own. The shell will open and trucate it, then close it, running no command. Thus, an empty file. No. What you will get is this: bash: laa.lwp: command not found What you need is this: touch laa.lwp -- users mailing list users

Re: curl - sys env vars in a curl statement

2016-08-08 Thread cs
On 08Aug2016 16:18, Joe Zeff wrote: On 08/08/2016 04:12 PM, Cameron Simpson wrote: >1aa.lwp on its own. The shell will open and trucate it, then close it, running no command. Thus, an empty file. No. What you will get is this: bash: laa.lwp: command not found What you need is this: touc

Re: curl - sys env vars in a curl statement

2016-08-08 Thread Joe Zeff
On 08/08/2016 04:32 PM, c...@zip.com.au wrote: On 08Aug2016 16:18, Joe Zeff wrote: On 08/08/2016 04:12 PM, Cameron Simpson wrote: >1aa.lwp on its own. The shell will open and trucate it, then close it, running no command. Thus, an empty file. No. What you will get is this: bash: laa.lwp:

Re: curl - sys env vars in a curl statement

2016-08-08 Thread cs
On 08Aug2016 16:36, Joe Zeff wrote: On 08/08/2016 04:32 PM, c...@zip.com.au wrote: On 08Aug2016 16:18, Joe Zeff wrote: On 08/08/2016 04:12 PM, Cameron Simpson wrote: >1aa.lwp on its own. The shell will open and trucate it, then close it, running no command. Thus, an empty file. No. What

Re: curl - sys env vars in a curl statement

2016-08-08 Thread Patrick O'Callaghan
On Tue, 2016-08-09 at 09:32 +1000, c...@zip.com.au wrote: > On 08Aug2016 16:18, Joe Zeff wrote: > > > > On 08/08/2016 04:12 PM, Cameron Simpson wrote: > > > > > > >1aa.lwp > > > > > > on its own. The shell will open and trucate it, then close it, running > > > no command. Thus, an empty file.