Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Assign expression to a variable

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 05-19-2017   -   Original Discussion by Loc
rovf rovf is offline
Registered User
Join Date: Jun 2011
Last Activity: 17 November 2017, 12:40 AM EST
Posts: 179
Thanks: 26
Thanked 38 Times in 33 Posts
Originally Posted by Don Cragun View Post
Hi rovf,
If, and only if, there is a file named in the directory in which you invoke the command
You are right! I was too much stuck into zsh (where you would get an error "no matches found", unless you explicitly override this), and did not remember that bash and ksh are different in this respect.

Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Assign regular expression change to only first two columns quincyjones Shell Programming and Scripting 7 12-20-2010 04:36 PM
Shell assign variable to another variable 3junior Shell Programming and Scripting 3 11-18-2010 11:20 PM
assign awk's variable to shell script's variable? tiger2000 Shell Programming and Scripting 4 04-13-2010 04:53 PM
Assign this to a variable.... ak835 Shell Programming and Scripting 5 10-29-2009 09:03 AM
assign a value to a variable Shivdatta Shell Programming and Scripting 10 01-17-2007 07:40 AM

All times are GMT -4. The time now is 06:34 AM.