LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2021, 06:57 AM   #16
dilip_d21
LQ Newbie
 
Registered: Nov 2021
Posts: 14

Original Poster
Rep: Reputation: Disabled

my apologize for the inconvenience , since i use only linux bash i though it is ok , thanks
 
Old 12-13-2021, 08:02 AM   #17
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,167

Rep: Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393
$(release) is wrong. That will execute a command named release. You need ${release} instead. Or actually you can use it without any kind of paren/bracket as it was explained.

And again, do not forget to use shellcheck, that will help you to write correct and working code.
 
Old 12-13-2021, 08:20 AM   #18
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,688

Rep: Reputation: Disabled
No, it's not wrong in this case. Just a peculiarity of Azure Pipelines. That one is a macro syntax variable, not a regular shell variable. See Define variables and Set variables in scripts in Azure Pipelines docs.
 
Old 12-13-2021, 08:37 AM   #19
dilip_d21
LQ Newbie
 
Registered: Nov 2021
Posts: 14

Original Poster
Rep: Reputation: Disabled
yes that is right , that is how it works in Azure , thanks
 
Old 12-13-2021, 08:50 AM   #20
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,167

Rep: Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393Reputation: 7393
Quote:
Originally Posted by shruggy View Post
No, it's not wrong in this case. Just a peculiarity of Azure Pipelines. That one is a macro syntax variable, not a regular shell variable. See Define variables and Set variables in scripts in Azure Pipelines docs.
So it is not linux bash as it was written in post #16 ( ... I use only linux bash ...).
But an embedded bash script in a yaml file. Nice. In that case "$(release)" is the correct syntax, as it was already posted in #11.
 
Old 12-13-2021, 09:03 AM   #21
dilip_d21
LQ Newbie
 
Registered: Nov 2021
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks All for your time , incase i have not communicated well , apologize please ,thanks
 
  


Reply

Tags
linux, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Add leading zeroes that aren't really leading LXer Syndicated Linux News 0 09-13-2019 12:31 PM
LXer: Leading and trailing whitespace LXer Syndicated Linux News 0 06-28-2019 03:04 AM
[SOLVED] if [[ -n "$1" ]]; then FAIL FAIL FAIL rbees Programming 7 03-25-2015 02:39 PM
trim heading and trailing space George2 Programming 1 10-21-2007 03:07 AM
Trailing whitespaces ( space char) and Ncurses terminal refreshes bretzeltux Programming 0 03-02-2004 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration