Fred Silsbee wrote:
>
> --- On Wed, 10/1/08, 최용주 <[EMAIL PROTECTED]> wrote:
>
>   
>> From: 최용주 <[EMAIL PROTECTED]>
>> Subject: RE: install the Korn SHELL program
>> To: "'Community assistance, encouragement, and advice for using Fedora.'" 
>> <[email protected]>
>> Date: Wednesday, October 1, 2008, 2:28 AM
>> I created the file on 'gedit'
>> Then change the mod for execution.
>> Chmod u+x filter
>>
>> And what is the 'dos2unix' filter.
>> I only know about dos2unix is to change the dos program.
>>
>> Yongjoo CHOI
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Ed
>> Greshko
>> Sent: Wednesday, October 01, 2008 10:47 AM
>> To: Community assistance, encouragement, and advice for
>> using Fedora.
>> Subject: Re: install the Korn SHELL program
>>
>> 최용주 wrote:
>>     
>>> Dear.
>>>
>>> I installed the ksh program using yum.
>>>
>>>       
>>>> yum install ksh
>>>>         
>>> Then executed the program as I made for test, but
>>>       
>> error echoed,
>>     
>>>> ./filter
>>>>         
>>> Bash : ./filter:/bin/ksh^M: bad interpreter: No such
>>>       
>> file or directory
>>     
>>>  
>>>
>>> What is the problem?
>>>
>>>       
>> How did your create the script "filter"?  Did you
>> create it on a windows
>> machine?  The "^M" at the end of the line seems
>> suspicious.
>>
>>
>> -- 
>> All Hell hadn't been let loose. It was merely Detritus.
>> But from a few
>> feet away you couldn't tell the difference. (The Fifth
>> Elephant)
>>
>> -- 
>> fedora-list mailing list
>> [email protected]
>> To unsubscribe:
>> https://www.redhat.com/mailman/listinfo/fedora-list
>> Guidelines:
>> http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>>
>>
>>     
>
> do:
> man dos2unix
>
> create a typical trial script so we are discussing something concrete
>
> before executing the script, you must enter the ksh by typing "ksh"
>   
That is not correct.....

When you create a script the first line in the script can indicate what
interpreter will be used.  For example:

#!/bin/sh

#!/bin/csh

#!/bin/zsh

Your terminal session need not be the same as the script's shell.

> and the ctrl-d to exit ksh or zsh
>
>
>   

-- 
fedora-list mailing list
[email protected]
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Reply via email to