The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
[csh] checking for specific character ranges in a variable userix Shell Programming and Scripting 5 05-11-2008 08:56 AM
ksh Checking if variable has 5 digits developncode UNIX for Dummies Questions & Answers 3 04-08-2008 04:57 PM
checking valid values in variable MizzGail Shell Programming and Scripting 3 10-23-2006 04:20 PM
checking a variable is within range Poison Ivy Shell Programming and Scripting 2 08-17-2006 06:33 AM
Script syntax checking bjornrud UNIX for Dummies Questions & Answers 3 10-22-2004 09:37 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-03-2007
BMetelsky BMetelsky is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 5
Eliminate variable checking in a script

RH Linux, $SHELL=/bin/ksh

I have a .profile which I source in as such --> . .profile

Whats happening is the variables are getting validated and generating errors.

for example

.profile
export foo=/to/the/moon

when I . .profile , I get

: not foundmyusername/.profile
or bad identifier

so the rest of my variables dont get set.

Is there a switch I can add to the top of the file ie

#!/bin/ksh -dontvaliddatemyvariables

thanks!
Bob
 

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0