Hello,
just a short addition to my previous post.
JD writes:
> I ran your the script used by Michael Welle, but changes
> #!/bin/csh
> to
> #!/bin/tcsh
>
> and it displayes the same problem:
>
> Cat /tmp/test-csh-goto
> #/bin/tcsh
this wrong shebang l
Hello,
JD writes:
> On 08/21/2017 01:16 AM, Michael Welle wrote:
>> Hallo,
>>
>> JD writes:
>>
>>> The manpage for the fedora csh describes the usage of goto,
>>> but it does not work.
>>> Anyone with insight on this?
>>>
>>&
Hallo,
JD writes:
> The manpage for the fedora csh describes the usage of goto,
> but it does not work.
> Anyone with insight on this?
>
> If you CAN make it work, please provide
> a skeleton of the script where the label
> is visible and the goto statement is visible :)
what does 'does not work
Hello,
Patrick O'Callaghan writes:
> On Sun, 2015-12-20 at 15:00 +0100, Joachim Backes wrote:
>> Remark: Working with aliases seems to be a bit sophisticated :-)
>
> Not really. IIRC aliases predate functions. They were first introduced
> in the C Shell (see https://en.wikipedia.org/wiki/Alias_(
Hello,
Michael Welle writes:
> Hello,
>
> Philip Brown writes:
>
>> same problem... not on my terminal
>>
>> bash-4.3$ x 1
>> PAR=1
>>
>> but I must say you explained "the why" very well regards the initial
>> empty parameter
>
Hello,
Philip Brown writes:
> same problem... not on my terminal
>
> bash-4.3$ x 1
> PAR=1
>
> but I must say you explained "the why" very well regards the initial
> empty parameter
by problem I mean the expectation that $1 has any meaning in this
context. It looks like it will work, but it will
Hello,
Philip Brown writes:
> i think that is a feature of echo
> if you want without the space you could use printf
>
> alias x='printf "PAR=%s\n" $1'
same problem as with the initial question. What value does the $1 have?
It is empty. alias does not expect any parameters, if that might be the
Hello,
Joachim Backes writes:
> Hi all,
>
> Running F23, and my shell is /bin/bash.
>
> My problem: suppose you define an alias:
>
> alias x='echo PAR=$1'
>
> Now call the alias by:
>
> x 1
>
> Output: PAR= 1
>
> My question: why do I get the blank before the "1"?
because you wrote it when formu