WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: shell queries...  (Read 2214 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
shell queries...
« 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?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: shell queries...
« Reply #1 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.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: shell queries...
« Reply #2 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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11639
Re: shell queries...
« Reply #3 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.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: shell queries...
« Reply #4 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.
Download a copy and keep it handy: Core book ;)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: shell queries...
« Reply #5 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.