Tiny Core Linux

General TC => General TC Talk => Topic started by: nitram on October 27, 2015, 10:10:09 PM

Title: shell queries...
Post by: nitram on October 27, 2015, 10:10:09 PM
Was playing around previously and maybe something messed up. Please confirm, is this correct for default TC?
tc@box:~/Desktop$ echo $0
sh
tc@box:~/Desktop$ echo $SHELL
/bin/sh

Inputing the following causes error, is this an issue with my shell configuration or a busybox limitation?
tc@box:~/Desktop$ touch seventy
tc@box:~/Desktop$ mkdir seventy
mkdir: can't create directory 'seventy': File exist

Looking at .ashrc aliases, this works:
alias ce='cd /etc/sysconfig/tcedir'

This doesn't:
alias d='dmenu_run &'

Is this 'd' alias no longer valid?

Edit: To clarify, i don't even know what dmenu_run is?
Title: Re: shell queries...
Post by: Rich on October 28, 2015, 12:11:22 AM
Hi nitram
Quote
Was playing around previously and maybe something messed up. Please confirm, is this correct for default TC?
tc@box:~/Desktop$ echo $0
sh
tc@box:~/Desktop$ echo $SHELL
/bin/sh
I get the same result.
Quote
Inputing the following causes error, is this an issue with my shell configuration or a busybox limitation?
tc@box:~/Desktop$ touch seventy
tc@box:~/Desktop$ mkdir seventy
mkdir: can't create directory 'seventy': File exist
Neither, it's an issue with what you are trying to do. The  touch  command created a file called  seventy. You can't
create a directory of the same name in the same directory.
Title: Re: shell queries...
Post by: nitram on October 28, 2015, 12:50:53 AM
Quote
I get the same result.
Thanks for confirming.
Quote
Neither, it's an issue with what you are trying to do. The  touch  command created a file called  seventy. You can't
create a directory of the same name in the same directory.
Hmmmph. Everything in Linux is a file...even if it's a directory!
Just booted a bash distribution, same thing.
Thought my file manager was broken :)

Any enlightenment with this: alias d='dmenu_run &' ?
Doesn't appear to be a bonafide TC executable, yet it's in default .ashrc.
Should it be removed from default TC?
tc@box:~$ dmenu_run &
tc@box:~$ sh: dmenu_run: not found
Title: Re: shell queries...
Post by: Rich on October 28, 2015, 12:56:43 AM
Hi nitram
Quote
Any enlightenment with this: alias d='dmenu_run &' ?
Doesn't appear to be a bonafide TC executable, yet it's in default .ashrc.
Should it be removed from default TC?
tc@box:~$ dmenu_run &
tc@box:~$ sh: dmenu_run: not found
That is probably a remnant from  dmenu.tcz  or  dmenu-mod.tcz.
Title: Re: shell queries...
Post by: Misalf on October 28, 2015, 01:40:48 AM
Or I gave you my .ashrc as I have script named dmenu-run, stolen from another distro and modified.
Title: Re: shell queries...
Post by: nitram on October 28, 2015, 03:25:18 AM
Thanks for the help guys, mystery solved :)  Misalf tutored me in compiling a while ago. I had no idea what i was doing and willy-nilly pasted a bunch of stuff into ashrc. Cleaned it up later, obviously not very well, didn't realize this wasn't a stock file entry.